forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'seccomp-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/kees/linux Pull seccomp updates from Kees Cook: "The major change here is finally gaining seccomp constant-action bitmaps, which internally reduces the seccomp overhead for many real-world syscall filters to O(1), as discussed at Plumbers this year. - Improve seccomp performance via constant-action bitmaps (YiFei Zhu & Kees Cook) - Fix bogus __user annotations (Jann Horn) - Add missed CONFIG for improved selftest coverage (Mickaël Salaün)" * tag 'seccomp-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: selftests/seccomp: Update kernel config seccomp: Remove bogus __user annotations seccomp/cache: Report cache data through /proc/pid/seccomp_cache xtensa: Enable seccomp architecture tracking sh: Enable seccomp architecture tracking s390: Enable seccomp architecture tracking riscv: Enable seccomp architecture tracking powerpc: Enable seccomp architecture tracking parisc: Enable seccomp architecture tracking csky: Enable seccomp architecture tracking arm: Enable seccomp architecture tracking arm64: Enable seccomp architecture tracking selftests/seccomp: Compare bitmap vs filter overhead x86: Enable seccomp architecture tracking seccomp/cache: Add "emulator" to check if filter is constant allow seccomp/cache: Lookup syscall allowlist bitmap for fast path
- Loading branch information
Showing
21 changed files
with
590 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _ASM_SECCOMP_H | ||
#define _ASM_SECCOMP_H | ||
|
||
#include <asm-generic/seccomp.h> | ||
|
||
#define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARM | ||
#define SECCOMP_ARCH_NATIVE_NR NR_syscalls | ||
#define SECCOMP_ARCH_NATIVE_NAME "arm" | ||
|
||
#endif /* _ASM_SECCOMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _ASM_SECCOMP_H | ||
#define _ASM_SECCOMP_H | ||
|
||
#include <asm-generic/seccomp.h> | ||
|
||
#define SECCOMP_ARCH_NATIVE AUDIT_ARCH_CSKY | ||
#define SECCOMP_ARCH_NATIVE_NR NR_syscalls | ||
#define SECCOMP_ARCH_NATIVE_NAME "csky" | ||
|
||
#endif /* _ASM_SECCOMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _ASM_SECCOMP_H | ||
#define _ASM_SECCOMP_H | ||
|
||
#include <asm-generic/seccomp.h> | ||
|
||
#ifdef CONFIG_64BIT | ||
# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64 | ||
# define SECCOMP_ARCH_NATIVE_NR NR_syscalls | ||
# define SECCOMP_ARCH_NATIVE_NAME "parisc64" | ||
# ifdef CONFIG_COMPAT | ||
# define SECCOMP_ARCH_COMPAT AUDIT_ARCH_PARISC | ||
# define SECCOMP_ARCH_COMPAT_NR NR_syscalls | ||
# define SECCOMP_ARCH_COMPAT_NAME "parisc" | ||
# endif | ||
#else /* !CONFIG_64BIT */ | ||
# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC | ||
# define SECCOMP_ARCH_NATIVE_NR NR_syscalls | ||
# define SECCOMP_ARCH_NATIVE_NAME "parisc" | ||
#endif | ||
|
||
#endif /* _ASM_SECCOMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _ASM_SECCOMP_H | ||
#define _ASM_SECCOMP_H | ||
|
||
#include <asm-generic/seccomp.h> | ||
|
||
#define SECCOMP_ARCH_NATIVE AUDIT_ARCH_XTENSA | ||
#define SECCOMP_ARCH_NATIVE_NR NR_syscalls | ||
#define SECCOMP_ARCH_NATIVE_NAME "xtensa" | ||
|
||
#endif /* _ASM_SECCOMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.