Skip to content

uprobes: teach uprobes to clear MMF_HAS_UPROBES

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3uprobes: uprobes_treelock should not disable irqskernel/events/uprobes.c+8 -131 reply
2/3uprobes: introduce MMF_RECALC_UPROBESinclude/linux/sched.h kernel/events/uprobes.c+37 -51 reply
3/3uprobes: teach find_active_uprobe() to clear MMF_HAS_UPROBESkernel/events/uprobes.c+22 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSrikar Dronamraju
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] uprobes: teach uprobes to clear MMF_HAS_UPROBES

Hello.

On top of "kill uprobes_state->count, add MMF_HAS_UPROBES" series.

Once again, I am not sure we really need this (except 1/3). Perhaps we could remove uprobe_munmap() instead and forget about the false-positive MMF_HAS_UPROBES's.

OTOH, imho it looks a bit more clean this way. Please comment.

diffstat reports the code bloat, but note that the previous series removed more code.

Oleg.

 include/linux/sched.h   |    3 +-
 kernel/events/uprobes.c |   82 +++++++++++++++++++++++++++++++++++++----------
 2 files changed, 67 insertions(+), 18 deletions(-)