Skip to content

Commit 8f27008

Browse files
Masami Hiramatsufweisbec
authored andcommitted
kprobes: Fix to add __kprobes to notify_die
Add __kprobes to notify_die() because do_int3() calls notify_die() instead of atomic_notify_call_chain() which is already marked as __kprobes. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Ingo Molnar <mingo@elte.hu> LKML-Reference: <20090827172318.8246.53702.stgit@localhost.localdomain> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
1 parent 62c9295 commit 8f27008

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/notifier.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ EXPORT_SYMBOL(unregister_reboot_notifier);
558558

559559
static ATOMIC_NOTIFIER_HEAD(die_chain);
560560

561-
int notrace notify_die(enum die_val val, const char *str,
561+
int notrace __kprobes notify_die(enum die_val val, const char *str,
562562
struct pt_regs *regs, long err, int trap, int sig)
563563
{
564564
struct die_args args = {

0 commit comments

Comments
 (0)