Re: [PATCH V2] x86/ftrace: Make sure that ftrace trampolines are not RWX

From: Steven Rostedt
Date: Fri May 26 2017 - 09:58:53 EST


On Fri, 26 May 2017 15:50:38 +0200 (CEST)
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:


> That's very early boot, right? So interrupts have to be disabled.
>
> So this wants to be:
>
> BUG_ON(irqs_disabled() && !early_boot_irqs_disabled);
>

I was thinking the same thing. I'll add a patch and retest.

Thanks!

-- Steve