Re: [PATCH] arm64: Make sure SPsel is always set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 26, 2017 at 03:57:16PM +0100, Will Deacon wrote:
> From: Marc Zyngier <marc.zyngier@xxxxxxx>
> 
> When the kernel is entered at EL2 on an ARMv8.0 system, we construct
> the EL1 pstate and make sure this uses the the EL1 stack pointer
> (we perform an exception return to EL1h).
> 
> But if the kernel is either entered at EL1 or stays at EL2 (because
> we're on a VHE-capable system), we fail to set SPsel, and use whatever
> stack selection the higher exception level has choosen for us.
> 
> Let's not take any chance, and make sure that SPsel is set to one
> before we decide the mode we're going to run in.
> 
> Cc: <stable@xxxxxxxxxxxxxxx>
> Acked-by: Mark Rutland <mark.rutland@xxxxxxx>
> Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx>
> Signed-off-by: Will Deacon <will.deacon@xxxxxxx>

Queued for 4.14-rc3. Thanks.

-- 
Catalin



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]