Re: [PATCH -tip v8 02/13] kprobes: treewide: Replace arch_deref_entry_point() with dereference_symbol_descriptor()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Ingo Molnar <mingo@xxxxxxxxxx>
- Subject: Re: [PATCH -tip v8 02/13] kprobes: treewide: Replace arch_deref_entry_point() with dereference_symbol_descriptor()
- From: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
- Date: Mon, 5 Jul 2021 21:03:36 +0900
- Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>, Josh Poimboeuf <jpoimboe@xxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, Daniel Xu <dxu@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, bpf@xxxxxxxxxxxxxxx, kuba@xxxxxxxxxx, mingo@xxxxxxxxxx, ast@xxxxxxxxxx, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, kernel-team@xxxxxx, yhs@xxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Abhishek Sagar <sagar.abhishek@xxxxxxxxx>, Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx>
- In-reply-to: <YOK5OV0zdjvrsqju@gmail.com>
- References: <162399992186.506599.8457763707951687195.stgit@devnote2> <162399994018.506599.10332627573727646767.stgit@devnote2> <YOK5OV0zdjvrsqju@gmail.com>
On Mon, 5 Jul 2021 09:48:09 +0200
Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> * Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
>
> > Replace arch_deref_entry_point() with dereference_symbol_descriptor()
> > because those are doing same thing.
> >
> > Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> > Tested-by: Andrii Nakryik <andrii@xxxxxxxxxx>
>
> A better changelog:
>
> ~15 years ago kprobes grew the 'arch_deref_entry_point()' __weak function:
>
> 3d7e33825d87: ("jprobes: make jprobes a little safer for users")
>
> But this is just open-coded dereference_symbol_descriptor() in essence, and
> its obscure nature was causing bugs.
>
> Just use the real thing.
OK. BTW, I couldn't find actual bugs from it. What about this?
"its obscure nature was causing problems in the past."
Thank you,
>
> Thanks,
>
> Ingo
--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]