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/[email protected] Signed-off-by: Suren Baghdasaryan <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: David Rientjes <[email protected]> Cc: Florian Weimer <[email protected]> Cc: Jan Engelhardt <[email protected]> Cc: Jann Horn <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Tim Murray <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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)