[PATCH v2 0/5] uprobes: misc cleanups/simplifications

Oleg Nesterov posted 5 patches 1 year, 6 months ago
There is a newer version of this series
include/linux/uprobes.h     | 22 +++++------
kernel/events/uprobes.c     | 96 +++++++++++++++++----------------------------
kernel/trace/bpf_trace.c    | 25 ++++++------
kernel/trace/trace_uprobe.c | 31 ++++++---------
4 files changed, 69 insertions(+), 105 deletions(-)
[PATCH v2 0/5] uprobes: misc cleanups/simplifications
Posted by Oleg Nesterov 1 year, 6 months ago
Peter, I don't think these changes can really complicate your ongoing work.
But again, if you are going to send the next version "soon" I can rebase
these cleanups on top of it.

Andrii, I dared to preserve your acks, all the changes are simple.

Changes since v1:

	- update the comment in register_for_each_vma()
	- remove the now unused "struct path *" arg from bpf_uprobe_unregister()
	- forward-declare struct uprobe in include/linux/uprobes.h
	- kernel-doc fixes/updates
	- fix use-after free in uprobe_unregister(). See "TODO:" in 5/5.

Oleg.
---

 include/linux/uprobes.h     | 22 +++++------
 kernel/events/uprobes.c     | 96 +++++++++++++++++----------------------------
 kernel/trace/bpf_trace.c    | 25 ++++++------
 kernel/trace/trace_uprobe.c | 31 ++++++---------
 4 files changed, 69 insertions(+), 105 deletions(-)
Re: [PATCH v2 0/5] uprobes: misc cleanups/simplifications
Posted by Jiri Olsa 1 year, 6 months ago
On Mon, Jul 29, 2024 at 03:44:44PM +0200, Oleg Nesterov wrote:
> Peter, I don't think these changes can really complicate your ongoing work.
> But again, if you are going to send the next version "soon" I can rebase
> these cleanups on top of it.
> 
> Andrii, I dared to preserve your acks, all the changes are simple.
> 
> Changes since v1:
> 
> 	- update the comment in register_for_each_vma()
> 	- remove the now unused "struct path *" arg from bpf_uprobe_unregister()
> 	- forward-declare struct uprobe in include/linux/uprobes.h
> 	- kernel-doc fixes/updates
> 	- fix use-after free in uprobe_unregister(). See "TODO:" in 5/5.

lgtm

Reviewed-by: Jiri Olsa <jolsa@kernel.org>

thanks,
jirka

> 
> Oleg.
> ---
> 
>  include/linux/uprobes.h     | 22 +++++------
>  kernel/events/uprobes.c     | 96 +++++++++++++++++----------------------------
>  kernel/trace/bpf_trace.c    | 25 ++++++------
>  kernel/trace/trace_uprobe.c | 31 ++++++---------
>  4 files changed, 69 insertions(+), 105 deletions(-)
>