Skip to content

Commit dce4910

Browse files
surenbaghdasaryantorvalds
authored andcommitted
mm: wire up syscall process_mrelease
Split off from prev patch in the series that implements the syscall. Link: https://lkml.kernel.org/r/20210809185259.405936-2-surenb@google.com Signed-off-by: Suren Baghdasaryan <surenb@google.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Christian Brauner <christian.brauner@ubuntu.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: David Hildenbrand <david@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Florian Weimer <fweimer@redhat.com> Cc: Jan Engelhardt <jengelh@inai.de> Cc: Jann Horn <jannh@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Rik van Riel <riel@surriel.com> Cc: Roman Gushchin <guro@fb.com> Cc: Shakeel Butt <shakeelb@google.com> Cc: Tim Murray <timmurray@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 884a7e5 commit dce4910

File tree

21 files changed

+38
-2
lines changed

21 files changed

+38
-2
lines changed

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,3 +486,5 @@
486486
554 common landlock_create_ruleset sys_landlock_create_ruleset
487487
555 common landlock_add_rule sys_landlock_add_rule
488488
556 common landlock_restrict_self sys_landlock_restrict_self
489+
# 557 reserved for memfd_secret
490+
558 common process_mrelease sys_process_mrelease

arch/arm/tools/syscall.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,3 +460,5 @@
460460
444 common landlock_create_ruleset sys_landlock_create_ruleset
461461
445 common landlock_add_rule sys_landlock_add_rule
462462
446 common landlock_restrict_self sys_landlock_restrict_self
463+
# 447 reserved for memfd_secret
464+
448 common process_mrelease sys_process_mrelease

arch/arm64/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
3939
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
4040

41-
#define __NR_compat_syscalls 447
41+
#define __NR_compat_syscalls 449
4242
#endif
4343

4444
#define __ARCH_WANT_SYS_CLONE

arch/arm64/include/asm/unistd32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,8 @@ __SYSCALL(__NR_landlock_create_ruleset, sys_landlock_create_ruleset)
901901
__SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule)
902902
#define __NR_landlock_restrict_self 446
903903
__SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self)
904+
#define __NR_process_mrelease 448
905+
__SYSCALL(__NR_process_mrelease, sys_process_mrelease)
904906

905907
/*
906908
* Please add new compat syscalls above this comment and update

arch/ia64/kernel/syscalls/syscall.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,5 @@
367367
444 common landlock_create_ruleset sys_landlock_create_ruleset
368368
445 common landlock_add_rule sys_landlock_add_rule
369369
446 common landlock_restrict_self sys_landlock_restrict_self
370+
# 447 reserved for memfd_secret
371+
448 common process_mrelease sys_process_mrelease

arch/m68k/kernel/syscalls/syscall.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,3 +446,5 @@
446446
444 common landlock_create_ruleset sys_landlock_create_ruleset
447447
445 common landlock_add_rule sys_landlock_add_rule
448448
446 common landlock_restrict_self sys_landlock_restrict_self
449+
# 447 reserved for memfd_secret
450+
448 common process_mrelease sys_process_mrelease

arch/microblaze/kernel/syscalls/syscall.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,3 +452,5 @@
452452
444 common landlock_create_ruleset sys_landlock_create_ruleset
453453
445 common landlock_add_rule sys_landlock_add_rule
454454
446 common landlock_restrict_self sys_landlock_restrict_self
455+
# 447 reserved for memfd_secret
456+
448 common process_mrelease sys_process_mrelease

arch/mips/kernel/syscalls/syscall_n32.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,5 @@
385385
444 n32 landlock_create_ruleset sys_landlock_create_ruleset
386386
445 n32 landlock_add_rule sys_landlock_add_rule
387387
446 n32 landlock_restrict_self sys_landlock_restrict_self
388+
# 447 reserved for memfd_secret
389+
448 n32 process_mrelease sys_process_mrelease

arch/mips/kernel/syscalls/syscall_n64.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,5 @@
361361
444 n64 landlock_create_ruleset sys_landlock_create_ruleset
362362
445 n64 landlock_add_rule sys_landlock_add_rule
363363
446 n64 landlock_restrict_self sys_landlock_restrict_self
364+
# 447 reserved for memfd_secret
365+
448 n64 process_mrelease sys_process_mrelease

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,5 @@
434434
444 o32 landlock_create_ruleset sys_landlock_create_ruleset
435435
445 o32 landlock_add_rule sys_landlock_add_rule
436436
446 o32 landlock_restrict_self sys_landlock_restrict_self
437+
# 447 reserved for memfd_secret
438+
448 o32 process_mrelease sys_process_mrelease

0 commit comments

Comments
 (0)