Skip to content

uprobes: make register/unregister O(n)

Oleg Nesterov lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 8 repliesSuperseded

Changes from the cover letter

- do not try GFP_NOWAIT if it failed before and more != 0, this is pointless and wrong

- update the comments (thanks Peter)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3uprobes: rework register_for_each_vma() to make it O(n)kernel/events/uprobes.c+86 -1130 replies
2/3uprobes: change build_map_info() to try kmalloc(GFP_NOWAIT) firstkernel/events/uprobes.c+10 -00 replies
3/3uprobes: document uprobe_register() vs uprobe_mmap() racekernel/events/uprobes.c+28 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] uprobes: make register/unregister O(n)

Hello,

On top of "[PATCH 0/3] uprobes: misc minor changes".

Sorry for delay. When I tried to test these changes, I hit the bug report from bad_page(). However, it turns out this is another unrelated problem, hopefully I'll send the fix soon. In short, replace_page() is buggy.

Changes:

- do not try GFP_NOWAIT if it failed before and more != 0, this is pointless and wrong

- update the comments (thanks Peter)

Oleg.