Re: [PATCH v1 8/8] x86/entry/clearregs: Clear registers for 32bit kernel
From: Andy Lutomirski
Date: Tue Jan 09 2018 - 20:24:44 EST
> On Jan 9, 2018, at 5:03 PM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
>
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> On a 32bit kernel clearing registers is much simpler than
> on 64bit. The arguments for syscalls are initially passed
> to a C function through the stack, so there's no need
> to figure out how many arguments to clear.
Why are we even trying to improve the situation on 32-bit? Unless someone actually tries to implement PTI, this seems useless.