[GIT PULL] arm64 fixes for -rc5
Linus Torvalds
torvalds at linux-foundation.org
Fri Aug 6 11:40:33 PDT 2021
On Fri, Aug 6, 2021 at 6:53 AM Will Deacon <will at kernel.org> wrote:
>
> Please pull these arm64 fixes for -rc5. It's all pretty minor but the
> main fix is sorting out how we deal with return values from 32-bit system
> calls as audit expects error codes to be sign-extended to 64 bits
I've pulled this, but that change looks _really_ odd.
First you seem to intentionally *zero-extend* the error value when you
actually set it in pt_regs, and then you sign-extend them when reading
them.
So the rules seem entirely arbitrary: oen place says "upper 32 bits
need to be clear" and another place says "upper 32 bits need to be
sign-extended".
Why this insanity? Why not make the rule be that the upper 32 bits are
always just sign-extended?
Linus
More information about the linux-arm-kernel
mailing list