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

arm64: unistd32.h: wire up missing syscalls for compat tasks

We're missing entries for mlock2, copy_file_range, preadv2 and pwritev2
in our compat syscall table, so hook them up. Only the last two need
compat wrappers.

Signed-off-by: Will Deacon <will.deacon@arm.com>

+9 -1
+1 -1
arch/arm64/include/asm/unistd.h
··· 44 44 #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) 45 45 #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) 46 46 47 - #define __NR_compat_syscalls 390 47 + #define __NR_compat_syscalls 394 48 48 #endif 49 49 50 50 #define __ARCH_WANT_SYS_CLONE
+8
arch/arm64/include/asm/unistd32.h
··· 801 801 __SYSCALL(__NR_userfaultfd, sys_userfaultfd) 802 802 #define __NR_membarrier 389 803 803 __SYSCALL(__NR_membarrier, sys_membarrier) 804 + #define __NR_mlock2 390 805 + __SYSCALL(__NR_mlock2, sys_mlock2) 806 + #define __NR_copy_file_range 391 807 + __SYSCALL(__NR_copy_file_range, sys_copy_file_range) 808 + #define __NR_preadv2 392 809 + __SYSCALL(__NR_preadv2, compat_sys_preadv2) 810 + #define __NR_pwritev2 393 811 + __SYSCALL(__NR_pwritev2, compat_sys_pwritev2) 804 812 805 813 /* 806 814 * Please add new compat syscalls above this comment and update