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

tools headers UAPI: Sync files changed by the memfd_secret new syscall

To pick the changes in this cset:

7bb7f2ac24a028b2 ("arch, mm: wire up memfd_secret system call where relevant")

That silences these perf build warnings and add support for those new
syscalls in tools such as 'perf trace'.

For instance, this is now possible:

# perf trace -v -e memfd_secret
event qualifier tracepoint filter: (common_pid != 13375 && common_pid != 3713) && (id == 447)
^C#

That is the filter expression attached to the raw_syscalls:sys_{enter,exit}
tracepoints.

$ grep memfd_secret tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
447 common memfd_secret sys_memfd_secret
$

This addresses these perf build warnings:

Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/unistd.h' differs from latest version at 'arch/arm64/include/uapi/asm/unistd.h'
diff -u tools/arch/arm64/include/uapi/asm/unistd.h arch/arm64/include/uapi/asm/unistd.h
Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h'
diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h
Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'
diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+8 -1
+1
tools/arch/arm64/include/uapi/asm/unistd.h
··· 20 20 #define __ARCH_WANT_SET_GET_RLIMIT 21 21 #define __ARCH_WANT_TIME32_SYSCALLS 22 22 #define __ARCH_WANT_SYS_CLONE3 23 + #define __ARCH_WANT_MEMFD_SECRET 23 24 24 25 #include <asm-generic/unistd.h>
+6 -1
tools/include/uapi/asm-generic/unistd.h
··· 873 873 #define __NR_landlock_restrict_self 446 874 874 __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self) 875 875 876 + #ifdef __ARCH_WANT_MEMFD_SECRET 877 + #define __NR_memfd_secret 447 878 + __SYSCALL(__NR_memfd_secret, sys_memfd_secret) 879 + #endif 880 + 876 881 #undef __NR_syscalls 877 - #define __NR_syscalls 447 882 + #define __NR_syscalls 448 878 883 879 884 /* 880 885 * 32 bit systems traditionally used different
+1
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
··· 368 368 444 common landlock_create_ruleset sys_landlock_create_ruleset 369 369 445 common landlock_add_rule sys_landlock_add_rule 370 370 446 common landlock_restrict_self sys_landlock_restrict_self 371 + 447 common memfd_secret sys_memfd_secret 371 372 372 373 # 373 374 # Due to a historical design error, certain syscalls are numbered differently