]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
csky, hexagon: fix broken sys_sync_file_range
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Jun 2024 07:54:20 +0000 (09:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:08:31 +0000 (09:08 +0200)
commit672d065b232ece3e8a27784c1e0905beecdc4168
tree7a3db6d53328b54264774fae03bb3df2ba8965bd
parented581989d7ea9df6f8646beba2341e32cd49a1f9
csky, hexagon: fix broken sys_sync_file_range

commit 3339b99ef6fe38dac43b534cba3a8a0e29fb2eff upstream.

Both of these architectures require u64 function arguments to be
passed in even/odd pairs of registers or stack slots, which in case of
sync_file_range would result in a seven-argument system call that is
not currently possible. The system call is therefore incompatible with
all existing binaries.

While it would be possible to implement support for seven arguments
like on mips, it seems better to use a six-argument version, either
with the normal argument order but misaligned as on most architectures
or with the reordered sync_file_range2() calling conventions as on
arm and powerpc.

Cc: stable@vger.kernel.org
Acked-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/csky/include/uapi/asm/unistd.h
arch/hexagon/include/uapi/asm/unistd.h