lkml.org 
[lkml]   [2009]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/24] kprobes: Fix to add __kprobes to notify_die
    Date
    From: Masami Hiramatsu <mhiramat@redhat.com>

    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>
    ---
    kernel/notifier.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/notifier.c b/kernel/notifier.c
    index 61d5aa5..acd24e7 100644
    --- a/kernel/notifier.c
    +++ b/kernel/notifier.c
    @@ -558,7 +558,7 @@ EXPORT_SYMBOL(unregister_reboot_notifier);

    static ATOMIC_NOTIFIER_HEAD(die_chain);

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


    \
     
     \ /
      Last update: 2009-09-22 21:47    [W:0.023 / U:34.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site