linux/include
Alexey Dobriyan 9d65cb4a17 Fix race between cat /proc/*/wchan and rmmod et al
kallsyms_lookup() can go iterating over modules list unprotected which is OK
for emergency situations (oops), but not OK for regular stuff like
/proc/*/wchan.

Introduce lookup_symbol_name()/lookup_module_symbol_name() which copy symbol
name into caller-supplied buffer or return -ERANGE.  All copying is done with
module_mutex held, so...

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:08 -07:00
..
acpi PNPACPI sets pnpdev->dev.archdata 2007-05-08 11:15:08 -07:00
asm-alpha move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-arm kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-arm26 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-avr32 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-blackfin blackfin architecture 2007-05-07 12:12:58 -07:00
asm-cris move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-frv move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-generic move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-h8300 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-i386 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-ia64 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-m32r move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-m68k move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-m68knommu move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-mips kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-parisc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-powerpc kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-ppc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-s390 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-sh kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-sh64 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-sparc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-sparc64 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-um move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-v850 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-x86_64 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-xtensa move die notifier handling to common code 2007-05-08 11:15:04 -07:00
crypto
keys
linux Fix race between cat /proc/*/wchan and rmmod et al 2007-05-08 11:15:08 -07:00
math-emu Delete unused header file math-emu/extended.h 2007-05-08 11:15:05 -07:00
media
mtd
net [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
pcmcia add new_id to PCMCIA drivers 2007-05-07 12:12:50 -07:00
rdma Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2007-05-07 12:18:21 -07:00
rxrpc
scsi
sound
video
Kbuild