Re: [PATCH 1/1] stackleak: Disable ftrace for stackleak.c
From: Masami Hiramatsu
Date: Tue Nov 13 2018 - 13:21:49 EST
On Mon, 12 Nov 2018 12:21:48 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Mon, 12 Nov 2018 19:51:00 +0300
> Alexander Popov <alex.popov@xxxxxxxxx> wrote:
>
> > By the way, are there any other tracing/instrumentation mechanisms that should
> > be disabled?
>
> ftrace and kprobes are pretty much the only ones that currently do self
> modification of code all over the kernel. Kprobes even more so than
> ftrace.
Right, since kprobes uses int3 or sw breakpoint exception for hooking into
the code, it consumes stack much more.
Thank you,
--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>