Re: [PATCH 1/2 v3] ftrace: don't allow IPMODIFY without proper compiler support

From: Steven Rostedt
Date: Fri Jan 16 2015 - 11:53:14 EST


On Fri, 16 Jan 2015 17:41:58 +0100 (CET)
Jiri Kosina <jkosina@xxxxxxx> wrote:

> On Fri, 16 Jan 2015, Steven Rostedt wrote:
>
> > Instead, make live kernel patching fail to load if fentry isn't
> > supported. IOW, instead of ftrace_ipmodify_supported, have a
> > live_kernel_patching_supported that could be based on fentry being used
> > or not.
>
> I can live with that, we are handling non-fentry case ourselves already.
>
> You expressed that you would accept such patch for ftrace in a past, so I

Right, but then I thought about it more :-)

I had a lot of time thinking about things like this while debugging
the dance between function graph and jprobes.

> thought I'll move it out from livepatching to ftrace. But if you don't
> want it now, that's not a big issue, and handling the possible fallout
> stays the responsibility of ftrace_ops "owner".
>

Exactly!

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/