summaryrefslogtreecommitdiffstats
path: root/crypto/authenc.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-08-29 15:02:36 +0200
committerIngo Molnar <mingo@kernel.org>2020-09-08 11:52:35 +0200
commite03b4a084ea6b0a18b0e874baec439e69090c168 (patch)
tree7648ae43bbe8a8f8ea2f1cd716043d1a1f04bb6a /crypto/authenc.c
parentsparc: kprobes: Use generic kretprobe trampoline handler (diff)
downloadlinux-e03b4a084ea6b0a18b0e874baec439e69090c168.tar.xz
linux-e03b4a084ea6b0a18b0e874baec439e69090c168.zip
kprobes: Remove NMI context check
The in_nmi() check in pre_handler_kretprobe() is meant to avoid recursion, and blindly assumes that anything NMI is recursive. However, since commit: 9b38cc704e84 ("kretprobe: Prevent triggering kretprobe from within kprobe_flush_task") there is a better way to detect and avoid actual recursion. By setting a dummy kprobe, any actual exceptions will terminate early (by trying to handle the dummy kprobe), and recursion will not happen. Employ this to avoid the kretprobe_table_lock() recursion, replacing the over-eager in_nmi() check. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/159870615628.1229682.6087311596892125907.stgit@devnote2
Diffstat (limited to 'crypto/authenc.c')
0 files changed, 0 insertions, 0 deletions