Skip to content
Snippets Groups Projects
Select Git revision
  • main
1 result

2022

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Prashanth Nageshappa authored and Linus Torvalds committed
    register_kprobe() aborts if the address of the new request falls in a
    prohibited area (such as ftrace pouch, __kprobes annotated functions,
    non-kernel text addresses, jump label text).  We however don't return the
    right error on this abort, resulting in a silent failure - incorrect
    adding/reporting of kprobes ('perf probe do_fork+18' or 'perf probe
    mcount' for instance).
    
    In V2 we are incorporating Masami Hiramatsu's  feedback.
    
    This patch fixes it by returning -EINVAL upon failure.
    
    While we are here, rename the label used for exit to be more appropriate.
    
    Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@in.ibm.com>
    Signed-off-by: default avatarPrashanth K Nageshappa <prashanth@linux.vnet.ibm.com>
    Acked-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Cc: Jason Baron <jbaron@redhat.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f986a499
    History
    Name Last commit Last update
    ..