WSL2-Linux-Kernel/arch/csky
Arnd Bergmann 574afeec2f 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>
2024-07-05 09:14:48 +02:00
..
abiv1 csky: Fix function name in csky_alignment() and die() 2023-02-01 08:27:21 +01:00
abiv2 csky: Fixup compile error 2021-02-27 22:04:14 +08:00
boot
configs
include csky, hexagon: fix broken sys_sync_file_range 2024-07-05 09:14:48 +02:00
kernel kprobes: treewide: Cleanup the error messages for kprobes 2023-02-22 12:57:00 +01:00
lib csky: use generic strncpy/strnlen from_user 2021-07-23 14:40:01 +02:00
mm exit: Add and use make_task_dead. 2023-02-01 08:27:20 +01:00
Kbuild kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild 2021-05-26 23:10:37 +09:00
Kconfig csky: Make HAVE_TCM depend on !COMPILE_TEST 2021-10-16 07:20:12 +08:00
Kconfig.debug
Kconfig.platforms
Makefile