diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2014-08-04 05:10:16 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-08-08 10:38:04 +0200 |
commit | f96f56780ca584930bb3a2769d73fd9a101bcbbe (patch) | |
tree | c3974ec34ef0e249e25819248d84b8ec2c80325c /kernel/capability.c | |
parent | Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-f96f56780ca584930bb3a2769d73fd9a101bcbbe.tar.xz linux-f96f56780ca584930bb3a2769d73fd9a101bcbbe.zip |
kprobes: Skip kretprobe hit in NMI context to avoid deadlock
Skip kretprobe hit in NMI context, because if an NMI happens
inside the critical section protected by kretprobe_table.lock
and another(or same) kretprobe hit, pre_kretprobe_handler
tries to lock kretprobe_table.lock again.
Normal interrupts have no problem because they are disabled
with the lock.
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Link: http://lkml.kernel.org/r/20140804031016.11433.65539.stgit@kbuild-fedora.novalocal
[ Minor edits for clarity. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/capability.c')
0 files changed, 0 insertions, 0 deletions