Re: [PATCH v5 05/27] arm64: Use daifflag_restore after bp_hardening
From: Catalin Marinas
Date: Wed Oct 03 2018 - 11:12:48 EST
On Tue, Aug 28, 2018 at 04:51:15PM +0100, Julien Thierry wrote:
> For EL0 entries requiring bp_hardening, daif status is kept at
> DAIF_PROCCTX_NOIRQ until after hardening has been done. Then interrupts
> are enabled through local_irq_enable().
>
> Before using local_irq_* functions, daifflags should be properly restored
> to a state where IRQs are enabled.
>
> Enable IRQs by restoring DAIF_PROCCTX state after bp hardening.
>
> Signed-off-by: Julien Thierry <julien.thierry@xxxxxxx>
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: Will Deacon <will.deacon@xxxxxxx>
> Cc: Mark Rutland <mark.rutland@xxxxxxx>
> Cc: James Morse <james.morse@xxxxxxx>
Queued for 4.20. Thanks.
--
Catalin