authorgravatar for dev@sgregoratto.meStephen Gregoratto <dev@sgregoratto.me> 2024-01-15 11:31:34+11:00
committergravatar for dev@sgregoratto.meStephen Gregoratto <dev@sgregoratto.me> 2024-01-15 20:05:03+11:00
logcca021c211f5d962c2999becaf12ccc7499ccb1f
treeb6c95be93b7228ad37ec2851d928e7bf97e83238
parent32e88251e48d9f4a412b08acbd04d5694ec91e19

Linux: Update syscalls for the 6.7 release

This release adds the rest of the futex2[1] syscalls, along with shadow stack[2] support for more architectures. [1]: https://lwn.net/Articles/940944/ [2]: https://lwn.net/Articles/926649/

1 files changed, 39 insertions(+), 0 deletions(-)

lib/std/os/linux/syscalls.zig+39
......@@ -444,6 +444,10 @@ pub const X86 = enum(usize) {
444444 set_mempolicy_home_node = 450,
445445 cachestat = 451,
446446 fchmodat2 = 452,
447 map_shadow_stack = 453,
448 futex_wake = 454,
449 futex_wait = 455,
450 futex_requeue = 456,
447451};
448452
449453pub const X64 = enum(usize) {
......@@ -812,6 +816,9 @@ pub const X64 = enum(usize) {
812816 cachestat = 451,
813817 fchmodat2 = 452,
814818 map_shadow_stack = 453,
819 futex_wake = 454,
820 futex_wait = 455,
821 futex_requeue = 456,
815822};
816823
817824pub const Arm = enum(usize) {
......@@ -1222,6 +1229,10 @@ pub const Arm = enum(usize) {
12221229 set_mempolicy_home_node = 450,
12231230 cachestat = 451,
12241231 fchmodat2 = 452,
1232 map_shadow_stack = 453,
1233 futex_wake = 454,
1234 futex_wait = 455,
1235 futex_requeue = 456,
12251236
12261237 breakpoint = arm_base + 1,
12271238 cacheflush = arm_base + 2,
......@@ -1616,6 +1627,10 @@ pub const Sparc64 = enum(usize) {
16161627 set_mempolicy_home_node = 450,
16171628 cachestat = 451,
16181629 fchmodat2 = 452,
1630 map_shadow_stack = 453,
1631 futex_wake = 454,
1632 futex_wait = 455,
1633 futex_requeue = 456,
16191634};
16201635
16211636pub const Mips = enum(usize) {
......@@ -2041,6 +2056,10 @@ pub const Mips = enum(usize) {
20412056 set_mempolicy_home_node = Linux + 450,
20422057 cachestat = Linux + 451,
20432058 fchmodat2 = Linux + 452,
2059 map_shadow_stack = Linux + 453,
2060 futex_wake = Linux + 454,
2061 futex_wait = Linux + 455,
2062 futex_requeue = Linux + 456,
20442063};
20452064
20462065pub const Mips64 = enum(usize) {
......@@ -2402,6 +2421,10 @@ pub const Mips64 = enum(usize) {
24022421 set_mempolicy_home_node = Linux + 450,
24032422 cachestat = Linux + 451,
24042423 fchmodat2 = Linux + 452,
2424 map_shadow_stack = Linux + 453,
2425 futex_wake = Linux + 454,
2426 futex_wait = Linux + 455,
2427 futex_requeue = Linux + 456,
24052428};
24062429
24072430pub const PowerPC = enum(usize) {
......@@ -2838,6 +2861,10 @@ pub const PowerPC = enum(usize) {
28382861 set_mempolicy_home_node = 450,
28392862 cachestat = 451,
28402863 fchmodat2 = 452,
2864 map_shadow_stack = 453,
2865 futex_wake = 454,
2866 futex_wait = 455,
2867 futex_requeue = 456,
28412868};
28422869
28432870pub const PowerPC64 = enum(usize) {
......@@ -3246,6 +3273,10 @@ pub const PowerPC64 = enum(usize) {
32463273 set_mempolicy_home_node = 450,
32473274 cachestat = 451,
32483275 fchmodat2 = 452,
3276 map_shadow_stack = 453,
3277 futex_wake = 454,
3278 futex_wait = 455,
3279 futex_requeue = 456,
32493280};
32503281
32513282pub const Arm64 = enum(usize) {
......@@ -3557,6 +3588,10 @@ pub const Arm64 = enum(usize) {
35573588 set_mempolicy_home_node = 450,
35583589 cachestat = 451,
35593590 fchmodat2 = 452,
3591 map_shadow_stack = 453,
3592 futex_wake = 454,
3593 futex_wait = 455,
3594 futex_requeue = 456,
35603595};
35613596
35623597pub const RiscV64 = enum(usize) {
......@@ -3869,6 +3904,10 @@ pub const RiscV64 = enum(usize) {
38693904 set_mempolicy_home_node = 450,
38703905 cachestat = 451,
38713906 fchmodat2 = 452,
3907 map_shadow_stack = 453,
3908 futex_wake = 454,
3909 futex_wait = 455,
3910 futex_requeue = 456,
38723911
38733912 riscv_flush_icache = arch_specific_syscall + 15,
38743913};