Re: [PATCH v3 1/7] x86: refactor kprobes_fault() like kprobe_exceptions_notify()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 22:14:15 +0200 Jann Horn wrote: > This is an extension of commit b506a9d08bae ("x86: code clarification patch > to Kprobes arch code"). As that commit explains, even though > kprobe_running() can't be called with preemption enabled, you don't have to > disable preemption - if

[PATCH v3 1/7] x86: refactor kprobes_fault() like kprobe_exceptions_notify()

2018-08-28 Thread Jann Horn
This is an extension of commit b506a9d08bae ("x86: code clarification patch to Kprobes arch code"). As that commit explains, even though kprobe_running() can't be called with preemption enabled, you don't have to disable preemption - if preemption is on, you can't be in a kprobe. Also, use X86_TRA