Skip to content

Commit b3206ad

Browse files
committed
arch: Update the internal syscall tables to Linux v5.8-rc7
Most architectures had minor changes (faccessat2, openat2, pidfd_getfd), but a significant number of changes were made to parisc since it went so long without being checked by arch-syscall-validate. Signed-off-by: Tom Hromatka <[email protected]> Acked-by: Paul Moore <[email protected]>
1 parent c0a6e6f commit b3206ad

13 files changed

+98
-59
lines changed

src/arch-aarch64-syscalls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "arch.h"
2727
#include "arch-aarch64.h"
2828

29-
/* NOTE: based on Linux v5.4-rc4 */
29+
/* NOTE: based on Linux v5.8-rc7 */
3030
const struct arch_syscall_def aarch64_syscall_table[] = { \
3131
{ "_llseek", __PNR__llseek },
3232
{ "_newselect", __PNR__newselect },
@@ -92,6 +92,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
9292
{ "exit", 93 },
9393
{ "exit_group", 94 },
9494
{ "faccessat", 48 },
95+
{ "faccessat2", 439 },
9596
{ "fadvise64", 223 },
9697
{ "fadvise64_64", __PNR_fadvise64_64 },
9798
{ "fallocate", 47 },
@@ -266,12 +267,14 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
266267
{ "open_by_handle_at", 265 },
267268
{ "open_tree", 428 },
268269
{ "openat", 56 },
270+
{ "openat2", 437 },
269271
{ "pause", __PNR_pause },
270272
{ "pciconfig_iobase", __PNR_pciconfig_iobase },
271273
{ "pciconfig_read", __PNR_pciconfig_read },
272274
{ "pciconfig_write", __PNR_pciconfig_write },
273275
{ "perf_event_open", 241 },
274276
{ "personality", 92 },
277+
{ "pidfd_getfd", 438 },
275278
{ "pidfd_open", 434 },
276279
{ "pidfd_send_signal", 424 },
277280
{ "pipe", __PNR_pipe },

src/arch-arm-syscalls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define __SCMP_NR_BASE __SCMP_NR_OABI_SYSCALL_BASE
3838
#endif
3939

40-
/* NOTE: based on Linux v5.4-rc4 */
40+
/* NOTE: based on Linux v5.8-rc7 */
4141
const struct arch_syscall_def arm_syscall_table[] = { \
4242
/* NOTE: arm_sync_file_range() and sync_file_range2() share values */
4343
{ "_llseek", (__SCMP_NR_BASE + 140) },
@@ -104,6 +104,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \
104104
{ "exit", (__SCMP_NR_BASE + 1) },
105105
{ "exit_group", (__SCMP_NR_BASE + 248) },
106106
{ "faccessat", (__SCMP_NR_BASE + 334) },
107+
{ "faccessat2", (__SCMP_NR_BASE + 439) },
107108
{ "fadvise64", __PNR_fadvise64 },
108109
{ "fadvise64_64", __PNR_fadvise64_64 },
109110
{ "fallocate", (__SCMP_NR_BASE + 352) },
@@ -278,12 +279,14 @@ const struct arch_syscall_def arm_syscall_table[] = { \
278279
{ "open_by_handle_at", (__SCMP_NR_BASE + 371) },
279280
{ "open_tree", (__SCMP_NR_BASE + 428) },
280281
{ "openat", (__SCMP_NR_BASE + 322) },
282+
{ "openat2", (__SCMP_NR_BASE + 437) },
281283
{ "pause", (__SCMP_NR_BASE + 29) },
282284
{ "pciconfig_iobase", (__SCMP_NR_BASE + 271) },
283285
{ "pciconfig_read", (__SCMP_NR_BASE + 272) },
284286
{ "pciconfig_write", (__SCMP_NR_BASE + 273) },
285287
{ "perf_event_open", (__SCMP_NR_BASE + 364) },
286288
{ "personality", (__SCMP_NR_BASE + 136) },
289+
{ "pidfd_getfd", (__SCMP_NR_BASE + 438) },
287290
{ "pidfd_open", (__SCMP_NR_BASE + 434) },
288291
{ "pidfd_send_signal", (__SCMP_NR_BASE + 424) },
289292
{ "pipe", (__SCMP_NR_BASE + 42) },

src/arch-mips-syscalls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* O32 ABI */
3131
#define __SCMP_NR_BASE 4000
3232

33-
/* NOTE: based on Linux v5.4-rc4 */
33+
/* NOTE: based on Linux v5.8-rc7 */
3434
const struct arch_syscall_def mips_syscall_table[] = { \
3535
{ "_llseek", (__SCMP_NR_BASE + 140) },
3636
{ "_newselect", (__SCMP_NR_BASE + 142) },
@@ -96,6 +96,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
9696
{ "exit", (__SCMP_NR_BASE + 1) },
9797
{ "exit_group", (__SCMP_NR_BASE + 246) },
9898
{ "faccessat", (__SCMP_NR_BASE + 300) },
99+
{ "faccessat2", (__SCMP_NR_BASE + 439) },
99100
{ "fadvise64", __SCMP_NR_BASE + 254 },
100101
{ "fadvise64_64", __PNR_fadvise64_64 },
101102
{ "fallocate", (__SCMP_NR_BASE + 320) },
@@ -270,12 +271,14 @@ const struct arch_syscall_def mips_syscall_table[] = { \
270271
{ "open_by_handle_at", (__SCMP_NR_BASE + 340) },
271272
{ "open_tree", (__SCMP_NR_BASE + 428) },
272273
{ "openat", (__SCMP_NR_BASE + 288) },
274+
{ "openat2", (__SCMP_NR_BASE + 437) },
273275
{ "pause", (__SCMP_NR_BASE + 29) },
274276
{ "pciconfig_iobase", __PNR_pciconfig_iobase },
275277
{ "pciconfig_read", __PNR_pciconfig_read },
276278
{ "pciconfig_write", __PNR_pciconfig_write },
277279
{ "perf_event_open", (__SCMP_NR_BASE + 333) },
278280
{ "personality", (__SCMP_NR_BASE + 136) },
281+
{ "pidfd_getfd", (__SCMP_NR_BASE + 438) },
279282
{ "pidfd_open", (__SCMP_NR_BASE + 434) },
280283
{ "pidfd_send_signal", (__SCMP_NR_BASE + 424) },
281284
{ "pipe", (__SCMP_NR_BASE + 42) },

src/arch-mips64-syscalls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* 64 ABI */
3131
#define __SCMP_NR_BASE 5000
3232

33-
/* NOTE: based on Linux v5.4-rc4 */
33+
/* NOTE: based on Linux v5.8-rc7 */
3434
const struct arch_syscall_def mips64_syscall_table[] = { \
3535
{ "_llseek", __PNR__llseek },
3636
{ "_newselect", (__SCMP_NR_BASE + 22) },
@@ -96,6 +96,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
9696
{ "exit", (__SCMP_NR_BASE + 58) },
9797
{ "exit_group", (__SCMP_NR_BASE + 205) },
9898
{ "faccessat", (__SCMP_NR_BASE + 259) },
99+
{ "faccessat2", (__SCMP_NR_BASE + 439) },
99100
{ "fadvise64", (__SCMP_NR_BASE + 215) },
100101
{ "fadvise64_64", __PNR_fadvise64_64 },
101102
{ "fallocate", (__SCMP_NR_BASE + 279) },
@@ -270,12 +271,14 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
270271
{ "open_by_handle_at", (__SCMP_NR_BASE + 299) },
271272
{ "open_tree", (__SCMP_NR_BASE + 428) },
272273
{ "openat", (__SCMP_NR_BASE + 247) },
274+
{ "openat2", (__SCMP_NR_BASE + 437) },
273275
{ "pause", (__SCMP_NR_BASE + 33) },
274276
{ "pciconfig_iobase", __PNR_pciconfig_iobase },
275277
{ "pciconfig_read", __PNR_pciconfig_read },
276278
{ "pciconfig_write", __PNR_pciconfig_write },
277279
{ "perf_event_open", (__SCMP_NR_BASE + 292) },
278280
{ "personality", (__SCMP_NR_BASE + 132) },
281+
{ "pidfd_getfd", (__SCMP_NR_BASE + 438) },
279282
{ "pidfd_open", (__SCMP_NR_BASE + 434) },
280283
{ "pidfd_send_signal", (__SCMP_NR_BASE + 424) },
281284
{ "pipe", (__SCMP_NR_BASE + 21) },

src/arch-mips64n32-syscalls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* N32 ABI */
3131
#define __SCMP_NR_BASE 6000
3232

33-
/* NOTE: based on Linux v5.4-rc4 */
33+
/* NOTE: based on Linux v5.8-rc7 */
3434
const struct arch_syscall_def mips64n32_syscall_table[] = { \
3535
{ "_llseek", __PNR__llseek },
3636
{ "_newselect", (__SCMP_NR_BASE + 22) },
@@ -96,6 +96,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
9696
{ "exit", (__SCMP_NR_BASE + 58) },
9797
{ "exit_group", (__SCMP_NR_BASE + 205) },
9898
{ "faccessat", (__SCMP_NR_BASE + 263) },
99+
{ "faccessat2", (__SCMP_NR_BASE + 439) },
99100
{ "fadvise64", (__SCMP_NR_BASE + 216) },
100101
{ "fadvise64_64", __PNR_fadvise64_64 },
101102
{ "fallocate", (__SCMP_NR_BASE + 283) },
@@ -270,12 +271,14 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
270271
{ "open_by_handle_at", (__SCMP_NR_BASE + 304) },
271272
{ "open_tree", (__SCMP_NR_BASE + 428) },
272273
{ "openat", (__SCMP_NR_BASE + 251) },
274+
{ "openat2", (__SCMP_NR_BASE + 437) },
273275
{ "pause", (__SCMP_NR_BASE + 33) },
274276
{ "pciconfig_iobase", __PNR_pciconfig_iobase },
275277
{ "pciconfig_read", __PNR_pciconfig_read },
276278
{ "pciconfig_write", __PNR_pciconfig_write },
277279
{ "perf_event_open", (__SCMP_NR_BASE + 296) },
278280
{ "personality", (__SCMP_NR_BASE + 132) },
281+
{ "pidfd_getfd", (__SCMP_NR_BASE + 438) },
279282
{ "pidfd_open", (__SCMP_NR_BASE + 434) },
280283
{ "pidfd_send_signal", (__SCMP_NR_BASE + 424) },
281284
{ "pipe", (__SCMP_NR_BASE + 21) },

0 commit comments

Comments
 (0)