Re: [PATCHv2 perf/core] uprobes: Harden uretprobe syscall trampoline check
From: Oleg Nesterov
Date: Tue Feb 11 2025 - 12:00:49 EST
On 02/11, Alexei Starovoitov wrote:
>
> > > +#define UPROBE_NO_TRAMPOLINE_VADDR ((unsigned long)-1)
>
> If you respin anyway maybe use ~0UL instead?
> In the above and in
> uprobe_get_trampoline_vaddr(),
> since
>
> unsigned long trampoline_vaddr = -1;
... or -1ul in both cases.
I agree, UPROBE_NO_TRAMPOLINE_VADDR has a single user, looks
a bit strange...
Oleg.