diff options
author | 2021-01-03 01:35:30 +0000 | |
---|---|---|
committer | 2021-02-11 23:35:07 +1100 | |
commit | 57f48b4b74e720e88b6d8674ae5d3804a8d03915 (patch) | |
tree | 0200f303659efcbc60813909ee4af95b96f7f938 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | powerpc: use kernel endianness in MSR in 32-bit signal handler (diff) | |
download | linux-rng-57f48b4b74e720e88b6d8674ae5d3804a8d03915.tar.xz linux-rng-57f48b4b74e720e88b6d8674ae5d3804a8d03915.zip |
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 '')
0 files changed, 0 insertions, 0 deletions