Re: KASAN_INLINE && patchable-function-entry

From: Steven Rostedt
Date: Thu Nov 21 2019 - 14:27:41 EST


On Thu, 21 Nov 2019 18:36:32 +0000
Mark Rutland <mark.rutland@xxxxxxx> wrote:

> As a heads-up to the ftrace folk, I think it's possible to work around
> this specific issue in the kernel by allowing the arch code to filter
> out call sites at init time (probably in ftrace_init_nop()), but I
> haven't put that together yet.

If you need to make some code invisible to ftrace at init time, it can
be possible by setting the dyn_ftrace rec flag to DISABLED, but this
can be cleared, which we would need a way to keep it from being
cleared, which shouldn't be too hard.

Is that what you would be looking for?

-- Steve