summaryrefslogtreecommitdiffstats
path: root/scripts/headers_install.pl
diff options
context:
space:
mode:
authorRusty Russell2010-08-05 20:59:08 +0200
committerRusty Russell2010-08-05 05:29:08 +0200
commit511ca6ae43fbe0a7c9e0b50ad275f7ef24ef3b58 (patch)
tree596d11de1a99dfce758465de009a97ccdb7da011 /scripts/headers_install.pl
parentmodule: kallsyms functions take struct load_info (diff)
downloadkernel-qcow2-linux-511ca6ae43fbe0a7c9e0b50ad275f7ef24ef3b58.tar.gz
kernel-qcow2-linux-511ca6ae43fbe0a7c9e0b50ad275f7ef24ef3b58.tar.xz
kernel-qcow2-linux-511ca6ae43fbe0a7c9e0b50ad275f7ef24ef3b58.zip
module: fix crash in get_ksymbol() when oopsing in module init
Andrew had the sole pleasure of tickling this bug in linux-next; when we set up "info->strtab" it's pointing into the temporary copy of the module. For most uses that is fine, but kallsyms keeps a pointer around during module load (inside mod->strtab). If we oops for some reason inside a module's init function, kallsyms will use the mod->strtab pointer into the now-freed temporary module copy. (Later oopses work fine: after init we overwrite mod->strtab to point to a compacted core-only strtab). Reported-by: Andrew "Grumpy" Morton <akpm@linux-foundation.org> Signed-off-by: Rusty "Buggy" Russell <rusty@rustcorp.com.au> Tested-by: Andrew "Happy" Morton <akpm@linux-foundation.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts/headers_install.pl')
0 files changed, 0 insertions, 0 deletions