Re: [PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-09-26 Thread Abdellatif El Khlifi
On Tue, Aug 16, 2022 at 01:48:31PM +0200, Jens Wiklander wrote: > On Mon, Aug 1, 2022 at 7:21 PM Abdellatif El Khlifi > wrote: > > > > set to zero the x0-x17 registers > > > > As per the SMCCC v1.2 spec, unused result and scratch registers can leak > > information after an SMC call. We can

Re: [PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-08-16 Thread Jens Wiklander
On Mon, Aug 1, 2022 at 7:21 PM Abdellatif El Khlifi wrote: > > set to zero the x0-x17 registers > > As per the SMCCC v1.2 spec, unused result and scratch registers can leak > information after an SMC call. We can mitigate against this risk by > returning zero in each register. > > Signed-off-by:

[PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-08-01 Thread Abdellatif El Khlifi
set to zero the x0-x17 registers As per the SMCCC v1.2 spec, unused result and scratch registers can leak information after an SMC call. We can mitigate against this risk by returning zero in each register. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens