Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

csky, hexagon: fix broken sys_sync_file_range

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>

+2
+1
arch/csky/include/uapi/asm/unistd.h
··· 6 6 #define __ARCH_WANT_SYS_CLONE3 7 7 #define __ARCH_WANT_SET_GET_RLIMIT 8 8 #define __ARCH_WANT_TIME32_SYSCALLS 9 + #define __ARCH_WANT_SYNC_FILE_RANGE2 9 10 #include <asm-generic/unistd.h> 10 11 11 12 #define __NR_set_thread_area (__NR_arch_specific_syscall + 0)
+1
arch/hexagon/include/uapi/asm/unistd.h
··· 36 36 #define __ARCH_WANT_SYS_VFORK 37 37 #define __ARCH_WANT_SYS_FORK 38 38 #define __ARCH_WANT_TIME32_SYSCALLS 39 + #define __ARCH_WANT_SYNC_FILE_RANGE2 39 40 40 41 #include <asm-generic/unistd.h>