lkml.org 
[lkml]   [2021]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -tip v8 03/13] kprobes: treewide: Remove trampoline_address from kretprobe_trampoline_handler()

    * Masami Hiramatsu <mhiramat@kernel.org> wrote:

    > Remove trampoline_address from kretprobe_trampoline_handler().
    > Instead of passing the address, kretprobe_trampoline_handler()
    > can use new kretprobe_trampoline_addr().
    >
    > Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
    > Tested-by: Andrii Nakryik <andrii@kernel.org>

    A better changelog:

    The __kretprobe_trampoline_handler() callback, called from low level
    arch kprobes methods, has the 'trampoline_address' parameter, which is
    entirely superfluous as it basically just replicates:

    dereference_kernel_function_descriptor(kretprobe_trampoline)

    In fact we had bugs in arch code where it wasn't replicated correctly.

    So remove this superfluous parameter and use kretprobe_trampoline_addr()
    instead.

    Thanks,

    Ingo

    \
     
     \ /
      Last update: 2021-07-05 09:51    [W:4.037 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site