Re: [PATCH v2] x86/mm: Do not verify W^X at boot up on ftrace trampolines

From: Linus Torvalds
Date: Mon Oct 24 2022 - 21:03:15 EST


On Mon, Oct 24, 2022 at 3:25 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>
>
> Adding on the kernel command line "ftrace=function" triggered:

This one I *really* detest.

If we have to have a special case, make it just be the simple
"system_state == SYSTEM_BOOTING", don't make it even nastier.

Special cases are bad. Making them these kinds of "this is
super-magical and special" is even worse.

Linus