From 78ae61d86cd502df5f757ba4ba5cf5304aad55d2 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 15 May 2020 11:44:46 +0200 Subject: [PATCH] syscall_numbers: handle ia64 syscall numbers correctly They are offset by 1024. Signed-off-by: Christian Brauner --- src/lxc/syscall_numbers.h | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/lxc/syscall_numbers.h b/src/lxc/syscall_numbers.h index e7a9dd9a4..c4be407a4 100644 --- a/src/lxc/syscall_numbers.h +++ b/src/lxc/syscall_numbers.h @@ -40,7 +40,7 @@ #elif defined __sparc__ #define __NR_keyctl 283 #elif defined __ia64__ - #define __NR_keyctl 249 + #define __NR_keyctl (249 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_keyctl 4282 @@ -112,7 +112,7 @@ #elif defined __sparc__ #define __NR_pivot_root 146 #elif defined __ia64__ - #define __NR_pivot_root 183 + #define __NR_pivot_root (183 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_pivot_root 4216 @@ -147,7 +147,7 @@ #elif defined __sparc__ #define __NR_setns 337 #elif defined __ia64__ - #define __NR_setns 306 + #define __NR_setns (306 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_setns 4344 @@ -182,7 +182,7 @@ #elif defined __sparc__ #define __NR_sethostname 88 #elif defined __ia64__ - #define __NR_sethostname 59 + #define __NR_sethostname (59 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_sethostname 474 @@ -217,7 +217,7 @@ #elif defined __sparc__ #define __NR_signalfd 311 #elif defined __ia64__ - #define __NR_signalfd 283 + #define __NR_signalfd (283 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_signalfd 4317 @@ -252,7 +252,7 @@ #elif defined __sparc__ #define __NR_signalfd4 317 #elif defined __ia64__ - #define __NR_signalfd4 289 + #define __NR_signalfd4 (289 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_signalfd4 4324 @@ -287,7 +287,7 @@ #elif defined __sparc__ #define __NR_unshare 299 #elif defined __ia64__ - #define __NR_unshare 272 + #define __NR_unshare (272 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_unshare 4303 @@ -322,7 +322,7 @@ #elif defined __sparc__ #define __NR_bpf 349 #elif defined __ia64__ - #define __NR_bpf 317 + #define __NR_bpf (317 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_bpf 4355 @@ -357,7 +357,7 @@ #elif defined __sparc__ #define __NR_faccessat 296 #elif defined __ia64__ - #define __NR_faccessat 269 + #define __NR_faccessat (269 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_faccessat 4300 @@ -387,6 +387,8 @@ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #define __NR_pidfd_send_signal 5424 #endif + #elif defined __ia64__ + #define __NR_pidfd_send_signal (424 + 1024) #else #define __NR_pidfd_send_signal 424 #endif @@ -410,7 +412,7 @@ #elif defined __sparc__ #define __NR_seccomp 346 #elif defined __ia64__ - #define __NR_seccomp 329 + #define __NR_seccomp (329 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_seccomp 4352 @@ -445,7 +447,7 @@ #elif defined __sparc__ #define __NR_gettid 143 #elif defined __ia64__ - #define __NR_gettid 81 + #define __NR_gettid (81 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_gettid 4222 @@ -484,7 +486,7 @@ #elif defined __sparc__ #define __NR_execveat 350 #elif defined __ia64__ - #define __NR_execveat 318 + #define __NR_execveat (318 + 1024) #elif defined _MIPS_SIM #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ #define __NR_execveat 4356 @@ -514,6 +516,8 @@ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #define __NR_move_mount 5429 #endif + #elif defined __ia64__ + #define __NR_move_mount (428 + 1024) #else #define __NR_move_mount 429 #endif @@ -532,6 +536,8 @@ #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ #define __NR_open_tree 5428 #endif + #elif defined __ia64__ + #define __NR_open_tree (428 + 1024) #else #define __NR_open_tree 428 #endif -- 2.47.2