Skip to content

RFC uprobes: register/unregister can race with fork

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2brw_mutex: big read-write mutexinclude/linux/brw_mutex.h lib/Makefile lib/brw_mutex.c+90 -199 replies
2/2uprobes: Use brw_mutex to fix register/unregister vs dup_mmap() raceinclude/linux/uprobes.h kernel/events/uprobes.c kernel/fork.c+33 -31 reply

Reviews trailers per patch

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

PatchSrikar DronamrajuPaul E. McKenney
1/2R-b R-b
2/2A-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 [RFC PATCH 0/2] uprobes: register/unregister can race with fork

Hello.

Well. The very fact this series adds the new locking primitive probably means we should try to find another fix. And yes, it is possible to fix this differently, afaics. But this will need more complications, I think.

So please review. As for 1/2:

- I really hope paulmck/peterz will tell me if it is correct or not

- The naming sucks, and I agree with any suggestions

- Probably this code should be compiled only if CONFIG_UPRPOBES

Oleg.