diff options
author | Masami Hiramatsu <[email protected]> | 2008-11-12 13:26:51 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-11-12 17:17:16 -0800 |
commit | a189d0350f387786b1fb5a5d19e3a5ab0bc0cceb (patch) | |
tree | d6133d035e0d23a8271f12204e53338f8f343351 /net/lapb/lapb_in.c | |
parent | 3b1b3f6e57064aa8f91c290fe51cda4c74642902 (diff) |
kprobes: disable preempt for module_text_address() and kernel_text_address()
__register_kprobe() can be preempted after checking probing address but
before module_text_address() or try_module_get(), and in this interval
the module can be unloaded. In that case, try_module_get(probed_mod)
will access to invalid address, or kprobe will probe invalid address.
This patch uses preempt_disable() to protect it and uses
__module_text_address() and __kernel_text_address().
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Hiroshi Shimamoto <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions