diff options
author | 2008-01-24 07:00:45 +0100 | |
---|---|---|
committer | 2008-01-24 08:01:09 -0800 | |
commit | fabe874a48de45b137f99b4ed3641e0413f465ce (patch) | |
tree | 815204d845875bd14f5623766b2ec5bc6f1fe00c /lib/parser.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 (diff) | |
download | wireguard-linux-fabe874a48de45b137f99b4ed3641e0413f465ce.tar.xz wireguard-linux-fabe874a48de45b137f99b4ed3641e0413f465ce.zip |
lockdep: fix kernel crash on module unload
Michael Wu noticed in his lkml post at
http://marc.info/?l=linux-kernel&m=119396182726091&w=2
that certain wireless drivers ended up having their name in module
memory, which would then crash the kernel on module unload.
The patch he proposed was a bit clumsy in that it increased the size of
a lockdep entry significantly; the patch below tries another approach,
it checks, on module teardown, if the name of a class is in module space
and then zaps the class. This is very similar to what we already do
with keys that are in module space.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions