arch-mm-wire-up-memfd_secret-system-call-where-relevant.patch removed from -mm tree
The patch titled
Subject: arch, mm: wire up memfd_secret system call where relevant
has been removed from the -mm tree. Its filename was
arch-mm-wire-up-memfd_secret-system-call-where-relevant.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: arch, mm: wire up memfd_secret system call where relevant
Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86.
Signed-off-by Mike Rapoport <[email protected]>
Acked-by Palmer Dabbelt <[email protected]>
Acked-by Arnd Bergmann <[email protected]>
Acked-by Catalin Marinas <[email protected]>
Acked-by James Bottomley <[email protected]>
Cc Alexander Viro <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Christopher Lameter <[email protected]>
Cc Dan Williams <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Elena Reshetova <[email protected]>
Cc Hagen Paul Pfeifer <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc James Bottomley <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Michael Kerrisk <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rick Edgecombe <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tycho Andersen <[email protected]>
Cc Will Deacon <[email protected]>
Cc kernel test robot <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/arm64/include/uapi/asm/unistd.h | 1 + arch/riscv/include/asm/unistd.h | 1 + arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/entry/syscalls/syscall_64.tbl | 1 + include/linux/syscalls.h | 1 + include/uapi/asm-generic/unistd.h | 7 ++++++- scripts/checksyscalls.sh | 4 ++++ 7 files changed, 15 insertions(+), 1 deletion(-)
arch/arm64/include/uapi/asm/unistd.h renamed from arch/arm64/include/uapi/asm/unistd.h~arch-mm-wire-up-memfd_secret-system-call-where-relevant +1 -0
@@ -20,5 +20,6 @@#define __ARCH_WANT_SET_GET_RLIMIT#define __ARCH_WANT_TIME32_SYSCALLS#define __ARCH_WANT_SYS_CLONE3 +#define __ARCH_WANT_MEMFD_SECRET#include <asm-generic/unistd.h>
arch/riscv/include/asm/unistd.h renamed from arch/riscv/include/asm/unistd.h~arch-mm-wire-up-memfd_secret-system-call-where-relevant +1 -0
@@ -9,6 +9,7 @@*/ #define __ARCH_WANT_SYS_CLONE +#define __ARCH_WANT_MEMFD_SECRET#include <uapi/asm/unistd.h>
arch/x86/entry/syscalls/syscall_32.tbl renamed from arch/x86/entry/syscalls/syscall_32.tbl~arch-mm-wire-up-memfd_secret-system-call-where-relevant +1 -0
@@ -451,3 +451,4 @@ 444 i386 landlock_create_ruleset sys_landlock_create_ruleset 445 i386 landlock_add_rule sys_landlock_add_rule 446 i386 landlock_restrict_self sys_landlock_restrict_self +447 i386 memfd_secret sys_memfd_secret
arch/x86/entry/syscalls/syscall_64.tbl renamed from arch/x86/entry/syscalls/syscall_64.tbl~arch-mm-wire-up-memfd_secret-system-call-where-relevant +1 -0
@@ -368,6 +368,7 @@ 444 common landlock_create_ruleset sys_landlock_create_ruleset 445 common landlock_add_rule sys_landlock_add_rule 446 common landlock_restrict_self sys_landlock_restrict_self +447 common memfd_secret sys_memfd_secret # # Due to a historical design error, certain syscalls are numbered differently
include/linux/syscalls.h renamed from include/linux/syscalls.h~arch-mm-wire-up-memfd_secret-system-call-where-relevant +1 -0
@@ -1050,6 +1050,7 @@ asmlinkage long sys_landlock_create_ruleasmlinkage long sys_landlock_add_rule (int ruleset_fd,enum landlock_rule_type rule_type,const void __user *rule_attr,__u32 flags);asmlinkage long sys_landlock_restrict_self (int ruleset_fd,__u32 flags); +asmlinkage long sys_memfd_secret (unsigned int flags);/* * Architecture-specific system calls
include/uapi/asm-generic/unistd.h renamed from include/uapi/asm-generic/unistd.h~arch-mm-wire-up-memfd_secret-system-call-where-relevant +6 -1
@@ -873,8 +873,13 @@ __SYSCALL(__NR_landlock_add_rule, sys_la#define __NR_landlock_restrict_self 446 __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self) +#ifdef __ARCH_WANT_MEMFD_SECRET +#define __NR_memfd_secret 447 +__SYSCALL(__NR_memfd_secret, sys_memfd_secret) +#endif +#undef __NR_syscalls -#define __NR_syscalls 447 +#define __NR_syscalls 448/* * 32 bit systems traditionally used different
scripts/checksyscalls.sh renamed from scripts/checksyscalls.sh~arch-mm-wire-up-memfd_secret-system-call-where-relevant +4 -0
@@ -40,6 +40,10 @@ cat << EOF #define __IGNORE_setrlimit /* setrlimit */ #endif +#ifndef __ARCH_WANT_MEMFD_SECRET +#define __IGNORE_memfd_secret +#endif + /* Missing flags argument */ #define __IGNORE_renameat /* renameat2 */
_
Patches currently in -mm which might be from [email protected] are