From 99021516e98bad89d08d6254a7c9f58a0dfbeb87 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Oct 2021 13:53:27 +0200 Subject: sys/linux: add new futex/seccomp operations See https://elixir.bootlin.com/linux/v5.15-rc6/source/include/uapi/linux/futex.h#L11 And https://elixir.bootlin.com/linux/v5.15-rc6/source/include/uapi/linux/seccomp.h#L118 --- sys/linux/futex.txt | 2 +- sys/linux/futex.txt.const | 15 +++++++++++---- sys/linux/seccomp.txt | 2 +- sys/linux/seccomp.txt.const | 1 + 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/futex.txt b/sys/linux/futex.txt index 12627ecd9..eaf8885e3 100644 --- a/sys/linux/futex.txt +++ b/sys/linux/futex.txt @@ -17,4 +17,4 @@ robust_list { next ptr[in, robust_list, opt] } -futex_op = FUTEX_WAIT, FUTEX_WAIT_BITSET, FUTEX_WAKE, FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, FUTEX_WAIT_PRIVATE, FUTEX_WAKE_PRIVATE, FUTEX_WAIT_REQUEUE_PI_PRIVATE, FUTEX_CMP_REQUEUE_PI_PRIVATE +futex_op = FUTEX_WAIT, FUTEX_WAKE, FUTEX_FD, FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_LOCK_PI, FUTEX_UNLOCK_PI, FUTEX_TRYLOCK_PI, FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_WAIT_REQUEUE_PI, FUTEX_CMP_REQUEUE_PI, FUTEX_LOCK_PI2, FUTEX_PRIVATE_FLAG, FUTEX_CLOCK_REALTIME diff --git a/sys/linux/futex.txt.const b/sys/linux/futex.txt.const index ab6964d47..38ac16b39 100644 --- a/sys/linux/futex.txt.const +++ b/sys/linux/futex.txt.const @@ -1,14 +1,21 @@ # Code generated by syz-sysgen. DO NOT EDIT. arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x +FUTEX_CLOCK_REALTIME = 256 FUTEX_CMP_REQUEUE = 4 -FUTEX_CMP_REQUEUE_PI_PRIVATE = 140 +FUTEX_CMP_REQUEUE_PI = 12 +FUTEX_FD = 2 +FUTEX_LOCK_PI = 6 +FUTEX_LOCK_PI2 = 13 +FUTEX_PRIVATE_FLAG = 128 FUTEX_REQUEUE = 3 +FUTEX_TRYLOCK_PI = 8 +FUTEX_UNLOCK_PI = 7 FUTEX_WAIT = 0 FUTEX_WAIT_BITSET = 9 -FUTEX_WAIT_PRIVATE = 128 -FUTEX_WAIT_REQUEUE_PI_PRIVATE = 139 +FUTEX_WAIT_REQUEUE_PI = 11 FUTEX_WAKE = 1 -FUTEX_WAKE_PRIVATE = 129 +FUTEX_WAKE_BITSET = 10 +FUTEX_WAKE_OP = 5 __NR_futex = 98, 386:arm:240, amd64:202, mips64le:5194, ppc64le:221, s390x:238 __NR_get_robust_list = 100, 386:312, amd64:274, arm:339, mips64le:5269, ppc64le:299, s390x:305 __NR_set_robust_list = 99, 386:311, amd64:273, arm:338, mips64le:5268, ppc64le:300, s390x:304 diff --git a/sys/linux/seccomp.txt b/sys/linux/seccomp.txt index c007c0748..152333beb 100644 --- a/sys/linux/seccomp.txt +++ b/sys/linux/seccomp.txt @@ -58,7 +58,7 @@ seccomp_notif_addfd { seccomp_flags = 0, SECCOMP_FILTER_FLAG_TSYNC, SECCOMP_FILTER_FLAG_LOG, SECCOMP_FILTER_FLAG_SPEC_ALLOW seccomp_flags_listener = SECCOMP_FILTER_FLAG_NEW_LISTENER, SECCOMP_FILTER_FLAG_LOG_LISTENER, SECCOMP_FILTER_FLAG_SPEC_ALLOW_LISTENER -seccomp_addfd_flags = SECCOMP_ADDFD_FLAG_SETFD +seccomp_addfd_flags = SECCOMP_ADDFD_FLAG_SETFD, SECCOMP_ADDFD_FLAG_SEND seccomp_addfd_newfd_flags = O_CLOEXEC define SECCOMP_FILTER_FLAG_LOG_LISTENER SECCOMP_FILTER_FLAG_LOG | SECCOMP_FILTER_FLAG_NEW_LISTENER diff --git a/sys/linux/seccomp.txt.const b/sys/linux/seccomp.txt.const index 999e5e965..c6335f26f 100644 --- a/sys/linux/seccomp.txt.const +++ b/sys/linux/seccomp.txt.const @@ -1,6 +1,7 @@ # Code generated by syz-sysgen. DO NOT EDIT. arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x O_CLOEXEC = 524288 +SECCOMP_ADDFD_FLAG_SEND = 2 SECCOMP_ADDFD_FLAG_SETFD = 1 SECCOMP_FILTER_FLAG_LOG = 2 SECCOMP_FILTER_FLAG_LOG_LISTENER = 10 -- cgit mrf-deployment