summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDavid Wang <00107082@163.com>2025-05-20 00:38:23 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-05-25 00:53:47 -0700
commit221fcbf77578826fad8f4bfa0530b5b55bf9676a (patch)
tree8c69ca7c4cacf9648eeee72a4ba8ba383ba55368 /scripts/gdb/linux/utils.py
parent07c9214c790e66d49cf12c316f648dcd208c4145 (diff)
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/20250519163823.7540-1-00107082@163.com Fixes: 0db6f8d7820a ("alloc_tag: load module tags into separate contiguous memory") Closes: https://lore.kernel.org/all/20250516131246.6244-1-00107082@163.com/ Signed-off-by: David Wang <00107082@163.com> Acked-by: Suren Baghdasaryan <surenb@google.com> Cc: Petr Pavlu <petr.pavlu@suse.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions