[PATCH v2 11/14] powerpc/64s: Clear/restore caller gprs in syscall interrupt/return

Christophe Leroy christophe.leroy at csgroup.eu
Fri Aug 12 01:39:58 AEST 2022



Le 11/08/2022 à 17:13, Segher Boessenkool a écrit :
> Hi!
> 
> On Mon, Jul 25, 2022 at 04:31:11PM +1000, Rohan McLure wrote:
>> +	/*
>> +	 * Zero user registers to prevent influencing speculative execution
>> +	 * state of kernel code.
>> +	 */
>> +	NULLIFY_GPRS(5, 12)
>> +	NULLIFY_NVGPRS()
> 
> "Nullify" means "invalidate", which is not what this does or is for :-(
> 

Would "Zeroise" be more appropriate ?

Christophe


More information about the Linuxppc-dev mailing list