diff options
| author | David Wang <[email protected]> | 2025-05-19 16:38:23 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-25 07:53:47 +0000 |
| commit | 221fcbf77578826fad8f4bfa0530b5b55bf9676a (patch) | |
| tree | 8c69ca7c4cacf9648eeee72a4ba8ba383ba55368 /lib/alloc_tag.c | |
| parent | mm/cma: make detection of highmem_start more robust (diff) | |
| download | kernel-221fcbf77578826fad8f4bfa0530b5b55bf9676a.tar.gz kernel-221fcbf77578826fad8f4bfa0530b5b55bf9676a.zip | |
module: release codetag section when module load fails
When module load fails after memory for codetag section is ready, codetag
section memory will not be properly released. This causes memory leak,
and if next module load happens to get the same module address, codetag
may pick the uninitialized section when manipulating tags during module
unload, and leads to "unable to handle page fault" BUG.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 0db6f8d7820a ("alloc_tag: load module tags into separate contiguous memory")
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: David Wang <[email protected]>
Acked-by: Suren Baghdasaryan <[email protected]>
Cc: Petr Pavlu <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions
