On Thu, May 21, 2026 at 5:44 AM Jiri Olsa <[email protected]> wrote:
>
> Removing struct uprobe_trampoline object and it's tracking code,
> because it's not needed. We can do same thing directly on top of
> struct vm_area_struct objects.
>
> This makes the code simpler and allows easy propagation of the
> trampoline vma object into child process in following change.
>
> Note the original code called destroy_uprobe_trampoline if the
> optimiation failed, but it only freed the struct uprobe_trampoline
> object, not the vma.
>
> Signed-off-by: Jiri Olsa <[email protected]>
> ---
>  arch/x86/kernel/uprobes.c | 102 ++++++++------------------------------
>  include/linux/uprobes.h   |   5 --
>  kernel/events/uprobes.c   |  10 ----
>  kernel/fork.c             |   1 -
>  4 files changed, 20 insertions(+), 98 deletions(-)
>

nice cleanup

Acked-by: Andrii Nakryiko <[email protected]>


[...]

Reply via email to