From: Masami Hiramatsu Date: Mon, 4 Aug 2014 03:10:16 +0000 (+0000) Subject: kprobes: Skip kretprobe hit in NMI context to avoid deadlock X-Git-Tag: omap-for-v3.17/fixes-against-rc2~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96f56780ca584930bb3a2769d73fd9a101bcbbe;p=pandora-kernel.git 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 Acked-by: Ananth N Mavinakayanahalli Cc: David S. Miller Link: http://lkml.kernel.org/r/20140804031016.11433.65539.stgit@kbuild-fedora.novalocal [ Minor edits for clarity. ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed