summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-04-30 07:53:48 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 20:20:35 +0200
commit99e729bd40fb3272fa4b0140839d5e957b58588a (patch)
tree95ce93c001ab5b06fbdd378eb79ec0a81fe392dc /sound
parentia64: drop marked broken DISCONTIGMEM and VIRTUAL_MEM_MAP (diff)
downloadlinux-99e729bd40fb3272fa4b0140839d5e957b58588a.tar.xz
linux-99e729bd40fb3272fa4b0140839d5e957b58588a.zip
ia64: module: fix symbolizer crash on fdescr
Noticed failure as a crash on ia64 when tried to symbolize all backtraces collected by page_owner=on: $ cat /sys/kernel/debug/page_owner <oops> CPU: 1 PID: 2074 Comm: cat Not tainted 5.12.0-rc4 #226 Hardware name: hp server rx3600, BIOS 04.03 04/08/2008 ip is at dereference_module_function_descriptor+0x41/0x100 Crash happens at dereference_module_function_descriptor() due to use-after-free when dereferencing ".opd" section header. All section headers are already freed after module is laoded successfully. To keep symbolizer working the change stores ".opd" address and size after module is relocated to a new place and before section headers are discarded. To make similar errors less obscure module_finalize() now zeroes out all variables relevant to module loading only. Link: https://lkml.kernel.org/r/20210403074803.3309096-1-slyfox@gentoo.org Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions