Add missing syscall nrs. This updates the QEMU syscall tables to more recent Linux kernels.
PATCH 1/1 Add missing syscall nrs. This updates the QEMU syscall tables to more recent Linux kernels.
This change covers arm, aarch64, mips. Others to follow?
The change was prompted by QEMU warning about a syscall 384 (get_random()) with Debian armhf binaries (ARMv7).
--- linux-user/aarch64/syscall_nr.h | 13 +++++++++++++ linux-user/arm/syscall_nr.h | 12 ++++++++++++ linux-user/mips/syscall_nr.h | 12 ++++++++++++ 3 files changed, 37 insertions(+)
linux-user/aarch64/syscall_nr.h +13 -0
@@ -262,6 +262,19 @@#define TARGET_NR_process_vm_writev 271#define TARGET_NR_kcmp 272#define TARGET_NR_finit_module 273 + +#define TARGET_NR_sched_setattr 274 +#define TARGET_NR_sched_getattr 275 +#define TARGET_NR_renameat2 276 +#define TARGET_NR_seccomp 277 +#define TARGET_NR_getrandom 278 +#define TARGET_NR_memfd_create 279 +#define TARGET_NR_bpf 280 +#define TARGET_NR_execveat 281 +#define TARGET_NR_userfaultfd 282 +#define TARGET_NR_membarrier 283 +#define TARGET_NR_mlock2 284 +#define TARGET_NR_open 1024#define TARGET_NR_link 1025#define TARGET_NR_unlink 1026
linux-user/arm/syscall_nr.h +12 -0
@@ -384,3 +384,15 @@#define TARGET_NR_process_vm_writev (377)#define TARGET_NR_kcmp (378)#define TARGET_NR_finit_module (379) + +#define TARGET_NR_sched_setattr (380) +#define TARGET_NR_sched_getattr (381) +#define TARGET_NR_renameat2 (382) +#define TARGET_NR_seccomp (383) +#define TARGET_NR_getrandom (384) +#define TARGET_NR_memfd_create (385) +#define TARGET_NR_bpf (386) +#define TARGET_NR_execveat (387) +#define TARGET_NR_userfaultfd (388) +#define TARGET_NR_membarrier (389) +#define TARGET_NR_mlock2 (390)
linux-user/mips/syscall_nr.h +12 -0
@@ -351,3 +351,15 @@#define TARGET_NR_process_vm_writev (TARGET_NR_Linux + 346)#define TARGET_NR_kcmp (TARGET_NR_Linux + 347)#define TARGET_NR_finit_module (TARGET_NR_Linux + 348) + +#define TARGET_NR_sched_setattr (TARGET_NR_Linux + 349) +#define TARGET_NR_sched_getattr (TARGET_NR_Linux + 350) +#define TARGET_NR_renameat2 (TARGET_NR_Linux + 351) +#define TARGET_NR_seccomp (TARGET_NR_Linux + 352) +#define TARGET_NR_getrandom (TARGET_NR_Linux + 353) +#define TARGET_NR_memfd_create (TARGET_NR_Linux + 354) +#define TARGET_NR_bpf (TARGET_NR_Linux + 355) +#define TARGET_NR_execveat (TARGET_NR_Linux + 356) +#define TARGET_NR_userfaultfd (TARGET_NR_Linux + 357) +#define TARGET_NR_membarrier (TARGET_NR_Linux + 358) +#define TARGET_NR_mlock2 (TARGET_NR_Linux + 359)
Signature · 1 line
2.6.4
Quoted 3 lines · Johan Ouwerkerk
This change covers arm, aarch64, mips. Others to follow?
The change was prompted by QEMU warning about a syscall 384 (
get_random()) with Debian armhf binaries (ARMv7).
It would be nice if whoever applies this patch could fix the overlong lines in the commit message.
Quoted 6 lines
Signed-off-by Johan Ouwerkerk <[email protected]>--- linux-user/aarch64/syscall_nr.h | 13 +++++++++++++ linux-user/arm/syscall_nr.h | 12 ++++++++++++ linux-user/mips/syscall_nr.h | 12 ++++++++++++ 3 files changed, 37 insertions(+)
No 64-bit mips to go with the 32-bit change?
Anyway, for the changes in this patch:
thanks
-- PMM
Michael Tokarev
AppliedQuoted 3 lines · Johan Ouwerkerk
This change covers arm, aarch64, mips. Others to follow?
The change was prompted by QEMU warning about a syscall 384 (
get_random()) with Debian armhf binaries (ARMv7).
Applied to -trivial after word-wrapping the commit message and trimming subject line a bit. Thanks!
/mjt