The branch stable/14 has been updated by dchagin:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4d46ca65501370869230f04d9b78484799dee5f5

commit 4d46ca65501370869230f04d9b78484799dee5f5
Author:     Dmitry Chagin <dcha...@freebsd.org>
AuthorDate: 2023-09-25 09:24:58 +0000
Commit:     Dmitry Chagin <dcha...@freebsd.org>
CommitDate: 2023-10-02 05:44:53 +0000

    linux(4): Update syscalls.master to 6.5
    
    MFC after:              1 week
    
    (cherry picked from commit 0a16d3d14db67c89ee08f954c670ec4f447a7ab5)
---
 sys/amd64/linux/linux_dummy_machdep.c |  2 ++
 sys/amd64/linux/syscalls.master       | 53 ++++++++++++++++++++++++++++++++--
 sys/amd64/linux32/syscalls.master     | 54 ++++++++++++++++++++++++++++++++---
 sys/arm64/linux/syscalls.master       | 53 ++++++++++++++++++++++++++++++++--
 sys/compat/linux/linux_dummy.c        | 35 ++++++++++++++++++-----
 sys/i386/linux/syscalls.master        | 54 ++++++++++++++++++++++++++++++++---
 6 files changed, 231 insertions(+), 20 deletions(-)

diff --git a/sys/amd64/linux/linux_dummy_machdep.c 
b/sys/amd64/linux/linux_dummy_machdep.c
index 4737386cb7f7..759586d9f1fc 100644
--- a/sys/amd64/linux/linux_dummy_machdep.c
+++ b/sys/amd64/linux/linux_dummy_machdep.c
@@ -66,3 +66,5 @@ DUMMY(readahead);
 DUMMY(restart_syscall);
 /* Linux 3.15: */
 DUMMY(kexec_file_load);
+/* Linux 6.6: */
+DUMMY(map_shadow_stack);
diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master
index 88caaa49367b..437066d1655b 100644
--- a/sys/amd64/linux/syscalls.master
+++ b/sys/amd64/linux/syscalls.master
@@ -2059,7 +2059,7 @@
                    uint32_t sig
                );
        }
-; Linux 5.0:
+; Linux 5.1:
 335-423        AUE_NULL        UNIMPL  nosys
 424    AUE_NULL        STD {
                int linux_pidfd_send_signal(
@@ -2078,6 +2078,7 @@
 427    AUE_NULL        STD {
                int linux_io_uring_register(void);
        }
+; Linux 5.2:
 428    AUE_NULL                STD {
                int linux_open_tree(void);
        }
@@ -2096,6 +2097,7 @@
 433    AUE_NULL                STD {
                int linux_fspick(void);
        }
+; Linux 5.3:
 434    AUE_NULL                STD {
                int linux_pidfd_open(void);
        }
@@ -2105,6 +2107,7 @@
                    l_size_t usize
                );
        }
+; Linux 5.9:
 436    AUE_CLOSERANGE  STD {
                int linux_close_range(
                    l_uint first,
@@ -2112,12 +2115,14 @@
                    l_uint flags
                );
        }
+; Linux 5.6:
 437    AUE_NULL                STD {
                int linux_openat2(void);
        }
 438    AUE_NULL                STD {
                int linux_pidfd_getfd(void);
        }
+; Linux 5.8:
 439    AUE_NULL                STD {
                int linux_faccessat2(
                    l_int dfd,
@@ -2126,9 +2131,11 @@
                    l_int flags
                );
        }
+; Linux 5.10:
 440    AUE_NULL                STD {
                int linux_process_madvise(void);
        }
+; Linux 5.11:
 441    AUE_NULL                STD {
                int linux_epoll_pwait2(
                    l_int epfd,
@@ -2139,9 +2146,51 @@
                    l_size_t sigsetsize
                );
        }
+; Linux 5.12:
 442    AUE_NULL                STD {
                int linux_mount_setattr(void);
        }
+; Linux 5.14:
+443    AUE_NULL                STD {
+               int linux_quotactl_fd(void);
+       }
+; Linux 5.13:
+444    AUE_NULL                STD {
+               int linux_landlock_create_ruleset(void);
+       }
+445    AUE_NULL                STD {
+               int linux_landlock_add_rule(void);
+       }
+446    AUE_NULL                STD {
+               int linux_landlock_restrict_self(void);
+       }
+; Linux 5.14:
+447    AUE_NULL                STD {
+               int linux_memfd_secret(void);
+       }
+; Linux 5.15:
+448    AUE_NULL                STD {
+               int linux_process_mrelease(void);
+       }
+; Linux 5.16:
+449    AUE_NULL                STD {
+               int linux_futex_waitv(void);
+       }
+; Linux 5.17:
+450    AUE_NULL                STD {
+               int linux_set_mempolicy_home_node(void);
+       }
+; Linux 6.5:
+451    AUE_NULL                STD {
+               int linux_cachestat(void);
+       }
+; Linux 6.6:
+452    AUE_NULL                STD {
+               int linux_fchmodat2(void);
+       }
+453    AUE_NULL                STD {
+               int linux_map_shadow_stack(void);
+       }
 ; please, keep this line at the end.
-443    AUE_NULL        UNIMPL  nosys
+454    AUE_NULL        UNIMPL  nosys
 ; vim: syntax=off
diff --git a/sys/amd64/linux32/syscalls.master 
b/sys/amd64/linux32/syscalls.master
index 679eda14202a..32ed678fe0c6 100644
--- a/sys/amd64/linux32/syscalls.master
+++ b/sys/amd64/linux32/syscalls.master
@@ -2281,6 +2281,7 @@
                    uint32_t sig
                );
        }
+; Linux 5.1:
 387-392        AUE_NULL        UNIMPL  nosys
 393    AUE_NULL        STD {
                int linux_semget(
@@ -2353,7 +2354,6 @@
                    struct l_msqid_ds *buf
                );
        }
-; Linux 5.0:
 403    AUE_NULL        STD {
                int linux_clock_gettime64(
                    clockid_t which,
@@ -2506,6 +2506,7 @@
 427    AUE_NULL        STD {
                int linux_io_uring_register(void);
        }
+; Linux 5.2:
 428    AUE_NULL                STD {
                int linux_open_tree(void);
        }
@@ -2524,6 +2525,7 @@
 433    AUE_NULL                STD {
                int linux_fspick(void);
        }
+; Linux 5.3:
 434    AUE_NULL                STD {
                int linux_pidfd_open(void);
        }
@@ -2533,6 +2535,7 @@
                    l_size_t usize
                );
        }
+; Linux 5.9:
 436    AUE_CLOSERANGE  STD {
                int linux_close_range(
                    l_uint first,
@@ -2540,12 +2543,14 @@
                    l_uint flags
                );
        }
+; Linux 5.6:
 437    AUE_NULL                STD {
                int linux_openat2(void);
        }
 438    AUE_NULL                STD {
                int linux_pidfd_getfd(void);
        }
+; Linux 5.8:
 439    AUE_NULL                STD {
                int linux_faccessat2(
                    l_int dfd,
@@ -2554,9 +2559,11 @@
                    l_int flags
                );
        }
+; Linux 5.10:
 440    AUE_NULL                STD {
                int linux_process_madvise(void);
        }
+; Linux 5.11:
 441    AUE_NULL                STD {
                int linux_epoll_pwait2_64(
                    l_int epfd,
@@ -2567,9 +2574,48 @@
                    l_size_t sigsetsize
                );
        }
+; Linux 5.12:
 442    AUE_NULL                STD {
                int linux_mount_setattr(void);
        }
-; please, keep this line at the end.
-443    AUE_NULL        UNIMPL  nosys
-; vim: syntax=off
+; Linux 5.14:
+443    AUE_NULL                STD {
+               int linux_quotactl_fd(void);
+       }
+; Linux 5.13:
+444    AUE_NULL                STD {
+               int linux_landlock_create_ruleset(void);
+       }
+445    AUE_NULL                STD {
+               int linux_landlock_add_rule(void);
+       }
+446    AUE_NULL                STD {
+               int linux_landlock_restrict_self(void);
+       }
+; Linux 5.14:
+447    AUE_NULL                STD {
+               int linux_memfd_secret(void);
+       }
+; Linux 5.15:
+448    AUE_NULL                STD {
+               int linux_process_mrelease(void);
+       }
+; Linux 5.16:
+449    AUE_NULL                STD {
+               int linux_futex_waitv(void);
+       }
+; Linux 5.17:
+450    AUE_NULL                STD {
+               int linux_set_mempolicy_home_node(void);
+       }
+; Linux 6.5:
+451    AUE_NULL                STD {
+               int linux_cachestat(void);
+       }
+; Linux 6.6:
+452    AUE_NULL                STD {
+               int linux_fchmodat2(void);
+       }
+ ; please, keep this line at the end.
+453    AUE_NULL        UNIMPL  nosys
+ ; vim: syntax=off
diff --git a/sys/arm64/linux/syscalls.master b/sys/arm64/linux/syscalls.master
index daaeeef1acc2..9ba548359c46 100644
--- a/sys/arm64/linux/syscalls.master
+++ b/sys/arm64/linux/syscalls.master
@@ -1736,6 +1736,7 @@
 294    AUE_NULL                STD {
                int linux_kexec_file_load(void);
        }
+; Linux 5.1:
 295-423        AUE_NULL        UNIMPL  unimpl_md_syscall
 424    AUE_NULL        STD {
                int linux_pidfd_send_signal(
@@ -1754,6 +1755,7 @@
 427    AUE_NULL        STD {
                int linux_io_uring_register(void);
        }
+; Linux 5.2:
 428    AUE_NULL                STD {
                int linux_open_tree(void);
        }
@@ -1772,6 +1774,7 @@
 433    AUE_NULL                STD {
                int linux_fspick(void);
        }
+; Linux 5.3:
 434    AUE_NULL                STD {
                int linux_pidfd_open(void);
        }
@@ -1781,6 +1784,7 @@
                    l_size_t usize
                );
        }
+; Linux 5.9:
 436    AUE_CLOSERANGE  STD {
                int linux_close_range(
                    l_uint first,
@@ -1788,12 +1792,14 @@
                    l_uint flags
                );
        }
+; Linux 5.6:
 437    AUE_NULL                STD {
                int linux_openat2(void);
        }
 438    AUE_NULL                STD {
                int linux_pidfd_getfd(void);
        }
+; Linux 5.8:
 439    AUE_NULL                STD {
                int linux_faccessat2(
                    l_int dfd,
@@ -1802,9 +1808,11 @@
                    l_int flags
                );
        }
+; Linux 5.10:
 440    AUE_NULL                STD {
                int linux_process_madvise(void);
        }
+; Linux 5.11:
 441    AUE_NULL                STD {
                int linux_epoll_pwait2(
                    l_int epfd,
@@ -1815,9 +1823,48 @@
                    l_size_t sigsetsize
                );
        }
+; Linux 5.12:
 442    AUE_NULL                STD {
                int linux_mount_setattr(void);
        }
-; please, keep this line at the end.
-443    AUE_NULL        UNIMPL  nosys
-; vim: syntax=off
+; Linux 5.14:
+443    AUE_NULL                STD {
+               int linux_quotactl_fd(void);
+       }
+; Linux 5.13:
+444    AUE_NULL                STD {
+               int linux_landlock_create_ruleset(void);
+       }
+445    AUE_NULL                STD {
+               int linux_landlock_add_rule(void);
+       }
+446    AUE_NULL                STD {
+               int linux_landlock_restrict_self(void);
+       }
+; Linux 5.14:
+447    AUE_NULL                STD {
+               int linux_memfd_secret(void);
+       }
+; Linux 5.15:
+448    AUE_NULL                STD {
+               int linux_process_mrelease(void);
+       }
+; Linux 5.16:
+449    AUE_NULL                STD {
+               int linux_futex_waitv(void);
+       }
+; Linux 5.17:
+450    AUE_NULL                STD {
+               int linux_set_mempolicy_home_node(void);
+       }
+; Linux 6.5:
+451    AUE_NULL                STD {
+               int linux_cachestat(void);
+       }
+; Linux 6.6:
+452    AUE_NULL                STD {
+               int linux_fchmodat2(void);
+       }
+ ; please, keep this line at the end.
+453    AUE_NULL        UNIMPL  nosys
+ ; vim: syntax=off
diff --git a/sys/compat/linux/linux_dummy.c b/sys/compat/linux/linux_dummy.c
index 4fdab6daab48..35d6debe0da9 100644
--- a/sys/compat/linux/linux_dummy.c
+++ b/sys/compat/linux/linux_dummy.c
@@ -123,21 +123,42 @@ DUMMY(pwritev2);
 DUMMY(pkey_mprotect);
 DUMMY(pkey_alloc);
 DUMMY(pkey_free);
+/* Linux 4.18: */
+DUMMY(io_pgetevents);
+/* Linux 5.1: */
+DUMMY(pidfd_send_signal);
+DUMMY(io_uring_setup);
+DUMMY(io_uring_enter);
+DUMMY(io_uring_register);
+/* Linux 5.2: */
 DUMMY(open_tree);
 DUMMY(move_mount);
 DUMMY(fsopen);
 DUMMY(fsconfig);
 DUMMY(fsmount);
 DUMMY(fspick);
+/* Linux 5.3: */
 DUMMY(pidfd_open);
+/* Linux 5.6: */
 DUMMY(openat2);
 DUMMY(pidfd_getfd);
+/* Linux 5.10: */
 DUMMY(process_madvise);
+/* Linux 5.12: */
 DUMMY(mount_setattr);
-/* Linux 4.18: */
-DUMMY(io_pgetevents);
-/* Linux 5.0: */
-DUMMY(pidfd_send_signal);
-DUMMY(io_uring_setup);
-DUMMY(io_uring_enter);
-DUMMY(io_uring_register);
+/* Linux 5.13: */
+DUMMY(landlock_create_ruleset);
+DUMMY(landlock_add_rule);
+DUMMY(landlock_restrict_self);
+/* Linux 5.14: */
+DUMMY(memfd_secret);
+DUMMY(quotactl_fd);
+/* Linux 5.15: */
+DUMMY(process_mrelease);
+/* Linux 5.16: */
+DUMMY(futex_waitv);
+DUMMY(set_mempolicy_home_node);
+/* Linux 6.5: */
+DUMMY(cachestat);
+/* Linux 6.6: */
+DUMMY(fchmodat2);
diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master
index 6144deeb31ab..3f37cc2fc485 100644
--- a/sys/i386/linux/syscalls.master
+++ b/sys/i386/linux/syscalls.master
@@ -2293,6 +2293,7 @@
                    uint32_t sig
                );
        }
+; Linux 5.1:
 387-392        AUE_NULL        UNIMPL  nosys
 393    AUE_NULL        STD {
                int linux_semget(
@@ -2365,7 +2366,6 @@
                    struct l_msqid_ds *buf
                );
        }
-; Linux 5.0:
 403    AUE_NULL        STD {
                int linux_clock_gettime64(
                    clockid_t which,
@@ -2518,6 +2518,7 @@
 427    AUE_NULL        STD {
                int linux_io_uring_register(void);
        }
+; Linux 5.2:
 428    AUE_NULL                STD {
                int linux_open_tree(void);
        }
@@ -2536,6 +2537,7 @@
 433    AUE_NULL                STD {
                int linux_fspick(void);
        }
+; Linux 5.3:
 434    AUE_NULL                STD {
                int linux_pidfd_open(void);
        }
@@ -2545,6 +2547,7 @@
                    l_size_t usize
                );
        }
+; Linux 5.9:
 436    AUE_CLOSERANGE  STD {
                int linux_close_range(
                    l_uint first,
@@ -2552,12 +2555,14 @@
                    l_uint flags
                );
        }
+; Linux 5.6:
 437    AUE_NULL                STD {
                int linux_openat2(void);
        }
 438    AUE_NULL                STD {
                int linux_pidfd_getfd(void);
        }
+; Linux 5.8:
 439    AUE_NULL                STD {
                int linux_faccessat2(
                    l_int dfd,
@@ -2566,9 +2571,11 @@
                    l_int flags
                );
        }
+; Linux 5.10:
 440    AUE_NULL                STD {
                int linux_process_madvise(void);
        }
+; Linux 5.11:
 441    AUE_NULL                STD {
                int linux_epoll_pwait2_64(
                    l_int epfd,
@@ -2579,9 +2586,48 @@
                    l_size_t sigsetsize
                );
        }
+; Linux 5.12:
 442    AUE_NULL                STD {
                int linux_mount_setattr(void);
        }
-; please, keep this line at the end.
-443    AUE_NULL        UNIMPL  nosys
-; vim: syntax=off
+; Linux 5.14:
+443    AUE_NULL                STD {
+               int linux_quotactl_fd(void);
+       }
+; Linux 5.13:
+444    AUE_NULL                STD {
+               int linux_landlock_create_ruleset(void);
+       }
+445    AUE_NULL                STD {
+               int linux_landlock_add_rule(void);
+       }
+446    AUE_NULL                STD {
+               int linux_landlock_restrict_self(void);
+       }
+; Linux 5.14:
+447    AUE_NULL                STD {
+               int linux_memfd_secret(void);
+       }
+; Linux 5.15:
+448    AUE_NULL                STD {
+               int linux_process_mrelease(void);
+       }
+; Linux 5.16:
+449    AUE_NULL                STD {
+               int linux_futex_waitv(void);
+       }
+; Linux 5.17:
+450    AUE_NULL                STD {
+               int linux_set_mempolicy_home_node(void);
+       }
+; Linux 6.5:
+451    AUE_NULL                STD {
+               int linux_cachestat(void);
+       }
+; Linux 6.6:
+452    AUE_NULL                STD {
+               int linux_fchmodat2(void);
+       }
+ ; please, keep this line at the end.
+453    AUE_NULL        UNIMPL  nosys
+ ; vim: syntax=off

Reply via email to