Re: [PATCH -tip ] [Bugfix] x86/kprobes: Fix build errors and blacklist context_track_user

Frederic Weisbecker
2014-06-16T15:52:20Z

On Sat, Jun 14, 2014 at 06:47:12AM +0000, Masami Hiramatsu wrote:
> This reverts commit ecd50f714c421c759354632dd00f70c718c95b10
> since it causes build errors with CONFIG_CONTEXT_TRACKING and
> that has been made from misunderstandings; context_track_user_*()
> don't involve much in interrupt context, it just returns
> if in_interrupt() is true.
>
> Instead of changing the do_debug/int3(), this just adds
> context_track_user_*() to kprobes blacklist, since those are
> still can be called right before kprobes handles int3 and debug
> exceptions, and probing those will cause infinit loop.
>
> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
> Reported-by: Frederic Weisbecker <fweisbec@gmail.com>

Thanks a lot!

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>