diff options
author | Will Springer <skirmisher@protonmail.com> | 2021-01-03 01:35:30 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-02-11 23:35:07 +1100 |
commit | 57f48b4b74e720e88b6d8674ae5d3804a8d03915 (patch) | |
tree | 0200f303659efcbc60813909ee4af95b96f7f938 /arch/powerpc/kernel/entry_32.S | |
parent | caccf2ac5c5d085cd35043027b3eb93c4ffead07 (diff) |
powerpc/compat_sys: swap hi/lo parts of 64-bit syscall args in LE mode
Swap upper/lower 32 bits for 64-bit compat syscalls, conditioned on
endianness. This is modeled after the same functionality in
arch/mips/kernel/linux32.c.
This fixes compat_sys on ppc64le, when called by 32-bit little-endian
processes.
Tested with `file /bin/bash` (pread64) and `truncate -s 5G test`
(ftruncate64).
Signed-off-by: Will Springer <skirmisher@protonmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/2765111.e9J7NaK4W3@sheen
Diffstat (limited to 'arch/powerpc/kernel/entry_32.S')
0 files changed, 0 insertions, 0 deletions