Skip to content

Commit fd66ad6

Browse files
committed
Merge tag 'seccomp-v5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull seccomp fixes from Kees Cook: - Fix typo in user notification documentation (Rodrigo Campos) - Fix userspace counter report when using TSYNC (Hsuan-Chi Kuo, Wiktor Garbacz) * tag 'seccomp-v5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: seccomp: Fix setting loaded filter count during TSYNC Documentation: seccomp: Fix typo in user notification
2 parents 761c6d7 + b4d8a58 commit fd66ad6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/userspace-api/seccomp_filter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Userspace can also add file descriptors to the notifying process via
263263
``ioctl(SECCOMP_IOCTL_NOTIF_ADDFD)``. The ``id`` member of
264264
``struct seccomp_notif_addfd`` should be the same ``id`` as in
265265
``struct seccomp_notif``. The ``newfd_flags`` flag may be used to set flags
266-
like O_EXEC on the file descriptor in the notifying process. If the supervisor
266+
like O_CLOEXEC on the file descriptor in the notifying process. If the supervisor
267267
wants to inject the file descriptor with a specific number, the
268268
``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
269269
the specific number to use. If that file descriptor is already open in the

kernel/seccomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static inline void seccomp_sync_threads(unsigned long flags)
602602
smp_store_release(&thread->seccomp.filter,
603603
caller->seccomp.filter);
604604
atomic_set(&thread->seccomp.filter_count,
605-
atomic_read(&thread->seccomp.filter_count));
605+
atomic_read(&caller->seccomp.filter_count));
606606

607607
/*
608608
* Don't let an unprivileged task work around

0 commit comments

Comments
 (0)