Hi, Here are 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. 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) <mhira...@kernel.org>