[PATCH -tip v3 6/7] bpf: error-inject: x86: Fix unbalanced preempt-count for function override

2018-05-16 Thread Masami Hiramatsu
Fix unbalanced preempt-count for function override using kprobes on x86. Jprobe requires to keep preemption disabled and keep current kprobes until it recovers to original function entry. For this reason kprobe_int3_handler() makes preempt-count unbalanced when user handler returns !0. After

[PATCH -tip v3 6/7] bpf: error-inject: x86: Fix unbalanced preempt-count for function override

2018-05-16 Thread Masami Hiramatsu
Fix unbalanced preempt-count for function override using kprobes on x86. Jprobe requires to keep preemption disabled and keep current kprobes until it recovers to original function entry. For this reason kprobe_int3_handler() makes preempt-count unbalanced when user handler returns !0. After