kprobes: Remove BUG_ON from kprobes
Get series with b4
b4 am 153666112297.21306.4621579144717171778.stgit@devboxVersions newest first · linked by author and title
- v2 Latest5 patches 0 repliesNew
- v15 patches 2 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | kprobes: Remove meaningless BUG_ON from disarming processkernel/ | +0 | 0 replies | |
| 2/5 | kprobes: Remove meaningless BUG_ON from add_new_kprobekernel/ | +0 | 0 replies | |
| 3/5 | kprobes: Remove meaningless BUG_ON from reuse_unused_kprobekernel/ | +0 | 0 replies | |
| 4/5 | kprobes: Return error if fail to reuse kprobe instead of BUG_ONkernel/ | +20 | 0 replies | |
| 5/5 | kprobes: Don't call BUG_ON if there is a kprobe in use on free listkernel/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH -tip v2 0/5] kprobes: Remove BUG_ON from kprobes
Hi,
Here are v2 patches to remove BUG_ON from kprobes.
Since BUG_ON() kills the machine, it must not be used for debugging or assertion. These patches remove meaningless BUG_ON or replace it with return errors.
In this version, I updated 5/5 to use WARN_ON_ONCE() for unusual case, according to Ingo's comment.
Thank you,
---
Masami Hiramatsu (5):
kprobes: Remove meaningless BUG_ON from disarming process
kprobes: Remove meaningless BUG_ON from add_new_kprobe
kprobes: Remove meaningless BUG_ON from reuse_unused_kprobe
kprobes: Return error if fail to reuse kprobe instead of BUG_ON
kprobes: Don't call BUG_ON if there is a kprobe in use on free list
kernel/kprobes.c | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-)
--
Masami Hiramatsu (Linaro) <[email protected]>