Skip to content

Commit bf8a9a4

Browse files
committed
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs mount updates from Al Viro: "Propagation of new syscalls to other architectures + cosmetic change from Christian (fscontext didn't follow the convention for anon inode names)" * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: uapi: Wire up the mount API syscalls on non-x86 arches [ver #2] uapi, x86: Fix the syscall numbering of the mount API syscalls [ver #2] uapi, fsopen: use square brackets around "fscontext" [ver #2]
2 parents a6a4b66 + d8076bd commit bf8a9a4

File tree

20 files changed

+123
-15
lines changed

20 files changed

+123
-15
lines changed

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,3 +467,9 @@
467467
535 common io_uring_setup sys_io_uring_setup
468468
536 common io_uring_enter sys_io_uring_enter
469469
537 common io_uring_register sys_io_uring_register
470+
538 common open_tree sys_open_tree
471+
539 common move_mount sys_move_mount
472+
540 common fsopen sys_fsopen
473+
541 common fsconfig sys_fsconfig
474+
542 common fsmount sys_fsmount
475+
543 common fspick sys_fspick

arch/arm/tools/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,9 @@
441441
425 common io_uring_setup sys_io_uring_setup
442442
426 common io_uring_enter sys_io_uring_enter
443443
427 common io_uring_register sys_io_uring_register
444+
428 common open_tree sys_open_tree
445+
429 common move_mount sys_move_mount
446+
430 common fsopen sys_fsopen
447+
431 common fsconfig sys_fsconfig
448+
432 common fsmount sys_fsmount
449+
433 common fspick sys_fspick

arch/arm64/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
4545
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
4646

47-
#define __NR_compat_syscalls 428
47+
#define __NR_compat_syscalls 434
4848
#endif
4949

5050
#define __ARCH_WANT_SYS_CLONE

arch/arm64/include/asm/unistd32.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,18 @@ __SYSCALL(__NR_io_uring_setup, sys_io_uring_setup)
874874
__SYSCALL(__NR_io_uring_enter, sys_io_uring_enter)
875875
#define __NR_io_uring_register 427
876876
__SYSCALL(__NR_io_uring_register, sys_io_uring_register)
877+
#define __NR_open_tree 428
878+
__SYSCALL(__NR_open_tree, sys_open_tree)
879+
#define __NR_move_mount 429
880+
__SYSCALL(__NR_move_mount, sys_move_mount)
881+
#define __NR_fsopen 430
882+
__SYSCALL(__NR_fsopen, sys_fsopen)
883+
#define __NR_fsconfig 431
884+
__SYSCALL(__NR_fsconfig, sys_fsconfig)
885+
#define __NR_fsmount 432
886+
__SYSCALL(__NR_fsmount, sys_fsmount)
887+
#define __NR_fspick 433
888+
__SYSCALL(__NR_fspick, sys_fspick)
877889

878890
/*
879891
* Please add new compat syscalls above this comment and update

arch/ia64/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,9 @@
348348
425 common io_uring_setup sys_io_uring_setup
349349
426 common io_uring_enter sys_io_uring_enter
350350
427 common io_uring_register sys_io_uring_register
351+
428 common open_tree sys_open_tree
352+
429 common move_mount sys_move_mount
353+
430 common fsopen sys_fsopen
354+
431 common fsconfig sys_fsconfig
355+
432 common fsmount sys_fsmount
356+
433 common fspick sys_fspick

arch/m68k/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,3 +427,9 @@
427427
425 common io_uring_setup sys_io_uring_setup
428428
426 common io_uring_enter sys_io_uring_enter
429429
427 common io_uring_register sys_io_uring_register
430+
428 common open_tree sys_open_tree
431+
429 common move_mount sys_move_mount
432+
430 common fsopen sys_fsopen
433+
431 common fsconfig sys_fsconfig
434+
432 common fsmount sys_fsmount
435+
433 common fspick sys_fspick

arch/microblaze/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,3 +433,9 @@
433433
425 common io_uring_setup sys_io_uring_setup
434434
426 common io_uring_enter sys_io_uring_enter
435435
427 common io_uring_register sys_io_uring_register
436+
428 common open_tree sys_open_tree
437+
429 common move_mount sys_move_mount
438+
430 common fsopen sys_fsopen
439+
431 common fsconfig sys_fsconfig
440+
432 common fsmount sys_fsmount
441+
433 common fspick sys_fspick

arch/mips/kernel/syscalls/syscall_n32.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,9 @@
366366
425 n32 io_uring_setup sys_io_uring_setup
367367
426 n32 io_uring_enter sys_io_uring_enter
368368
427 n32 io_uring_register sys_io_uring_register
369+
428 n32 open_tree sys_open_tree
370+
429 n32 move_mount sys_move_mount
371+
430 n32 fsopen sys_fsopen
372+
431 n32 fsconfig sys_fsconfig
373+
432 n32 fsmount sys_fsmount
374+
433 n32 fspick sys_fspick

arch/mips/kernel/syscalls/syscall_n64.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,9 @@
342342
425 n64 io_uring_setup sys_io_uring_setup
343343
426 n64 io_uring_enter sys_io_uring_enter
344344
427 n64 io_uring_register sys_io_uring_register
345+
428 n64 open_tree sys_open_tree
346+
429 n64 move_mount sys_move_mount
347+
430 n64 fsopen sys_fsopen
348+
431 n64 fsconfig sys_fsconfig
349+
432 n64 fsmount sys_fsmount
350+
433 n64 fspick sys_fspick

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,9 @@
415415
425 o32 io_uring_setup sys_io_uring_setup
416416
426 o32 io_uring_enter sys_io_uring_enter
417417
427 o32 io_uring_register sys_io_uring_register
418+
428 o32 open_tree sys_open_tree
419+
429 o32 move_mount sys_move_mount
420+
430 o32 fsopen sys_fsopen
421+
431 o32 fsconfig sys_fsconfig
422+
432 o32 fsmount sys_fsmount
423+
433 o32 fspick sys_fspick

arch/parisc/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,3 +424,9 @@
424424
425 common io_uring_setup sys_io_uring_setup
425425
426 common io_uring_enter sys_io_uring_enter
426426
427 common io_uring_register sys_io_uring_register
427+
428 common open_tree sys_open_tree
428+
429 common move_mount sys_move_mount
429+
430 common fsopen sys_fsopen
430+
431 common fsconfig sys_fsconfig
431+
432 common fsmount sys_fsmount
432+
433 common fspick sys_fspick

arch/powerpc/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,9 @@
509509
425 common io_uring_setup sys_io_uring_setup
510510
426 common io_uring_enter sys_io_uring_enter
511511
427 common io_uring_register sys_io_uring_register
512+
428 common open_tree sys_open_tree
513+
429 common move_mount sys_move_mount
514+
430 common fsopen sys_fsopen
515+
431 common fsconfig sys_fsconfig
516+
432 common fsmount sys_fsmount
517+
433 common fspick sys_fspick

arch/s390/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,9 @@
430430
425 common io_uring_setup sys_io_uring_setup sys_io_uring_setup
431431
426 common io_uring_enter sys_io_uring_enter sys_io_uring_enter
432432
427 common io_uring_register sys_io_uring_register sys_io_uring_register
433+
428 common open_tree sys_open_tree sys_open_tree
434+
429 common move_mount sys_move_mount sys_move_mount
435+
430 common fsopen sys_fsopen sys_fsopen
436+
431 common fsconfig sys_fsconfig sys_fsconfig
437+
432 common fsmount sys_fsmount sys_fsmount
438+
433 common fspick sys_fspick sys_fspick

arch/sh/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,9 @@
430430
425 common io_uring_setup sys_io_uring_setup
431431
426 common io_uring_enter sys_io_uring_enter
432432
427 common io_uring_register sys_io_uring_register
433+
428 common open_tree sys_open_tree
434+
429 common move_mount sys_move_mount
435+
430 common fsopen sys_fsopen
436+
431 common fsconfig sys_fsconfig
437+
432 common fsmount sys_fsmount
438+
433 common fspick sys_fspick

arch/sparc/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,3 +473,9 @@
473473
425 common io_uring_setup sys_io_uring_setup
474474
426 common io_uring_enter sys_io_uring_enter
475475
427 common io_uring_register sys_io_uring_register
476+
428 common open_tree sys_open_tree
477+
429 common move_mount sys_move_mount
478+
430 common fsopen sys_fsopen
479+
431 common fsconfig sys_fsconfig
480+
432 common fsmount sys_fsmount
481+
433 common fspick sys_fspick

arch/x86/entry/syscalls/syscall_32.tbl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,6 @@
398398
384 i386 arch_prctl sys_arch_prctl __ia32_compat_sys_arch_prctl
399399
385 i386 io_pgetevents sys_io_pgetevents_time32 __ia32_compat_sys_io_pgetevents
400400
386 i386 rseq sys_rseq __ia32_sys_rseq
401-
387 i386 open_tree sys_open_tree __ia32_sys_open_tree
402-
388 i386 move_mount sys_move_mount __ia32_sys_move_mount
403-
389 i386 fsopen sys_fsopen __ia32_sys_fsopen
404-
390 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig
405-
391 i386 fsmount sys_fsmount __ia32_sys_fsmount
406-
392 i386 fspick sys_fspick __ia32_sys_fspick
407401
393 i386 semget sys_semget __ia32_sys_semget
408402
394 i386 semctl sys_semctl __ia32_compat_sys_semctl
409403
395 i386 shmget sys_shmget __ia32_sys_shmget
@@ -438,3 +432,9 @@
438432
425 i386 io_uring_setup sys_io_uring_setup __ia32_sys_io_uring_setup
439433
426 i386 io_uring_enter sys_io_uring_enter __ia32_sys_io_uring_enter
440434
427 i386 io_uring_register sys_io_uring_register __ia32_sys_io_uring_register
435+
428 i386 open_tree sys_open_tree __ia32_sys_open_tree
436+
429 i386 move_mount sys_move_mount __ia32_sys_move_mount
437+
430 i386 fsopen sys_fsopen __ia32_sys_fsopen
438+
431 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig
439+
432 i386 fsmount sys_fsmount __ia32_sys_fsmount
440+
433 i386 fspick sys_fspick __ia32_sys_fspick

arch/x86/entry/syscalls/syscall_64.tbl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,18 +343,18 @@
343343
332 common statx __x64_sys_statx
344344
333 common io_pgetevents __x64_sys_io_pgetevents
345345
334 common rseq __x64_sys_rseq
346-
335 common open_tree __x64_sys_open_tree
347-
336 common move_mount __x64_sys_move_mount
348-
337 common fsopen __x64_sys_fsopen
349-
338 common fsconfig __x64_sys_fsconfig
350-
339 common fsmount __x64_sys_fsmount
351-
340 common fspick __x64_sys_fspick
352346
# don't use numbers 387 through 423, add new calls after the last
353347
# 'common' entry
354348
424 common pidfd_send_signal __x64_sys_pidfd_send_signal
355349
425 common io_uring_setup __x64_sys_io_uring_setup
356350
426 common io_uring_enter __x64_sys_io_uring_enter
357351
427 common io_uring_register __x64_sys_io_uring_register
352+
428 common open_tree __x64_sys_open_tree
353+
429 common move_mount __x64_sys_move_mount
354+
430 common fsopen __x64_sys_fsopen
355+
431 common fsconfig __x64_sys_fsconfig
356+
432 common fsmount __x64_sys_fsmount
357+
433 common fspick __x64_sys_fspick
358358

359359
#
360360
# x32-specific system call numbers start at 512 to avoid cache impact

arch/xtensa/kernel/syscalls/syscall.tbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,3 +398,9 @@
398398
425 common io_uring_setup sys_io_uring_setup
399399
426 common io_uring_enter sys_io_uring_enter
400400
427 common io_uring_register sys_io_uring_register
401+
428 common open_tree sys_open_tree
402+
429 common move_mount sys_move_mount
403+
430 common fsopen sys_fsopen
404+
431 common fsconfig sys_fsconfig
405+
432 common fsmount sys_fsmount
406+
433 common fspick sys_fspick

fs/fsopen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags)
9292
{
9393
int fd;
9494

95-
fd = anon_inode_getfd("fscontext", &fscontext_fops, fc,
95+
fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc,
9696
O_RDWR | o_flags);
9797
if (fd < 0)
9898
put_fs_context(fc);

include/uapi/asm-generic/unistd.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,21 @@ __SYSCALL(__NR_io_uring_setup, sys_io_uring_setup)
832832
__SYSCALL(__NR_io_uring_enter, sys_io_uring_enter)
833833
#define __NR_io_uring_register 427
834834
__SYSCALL(__NR_io_uring_register, sys_io_uring_register)
835+
#define __NR_open_tree 428
836+
__SYSCALL(__NR_open_tree, sys_open_tree)
837+
#define __NR_move_mount 429
838+
__SYSCALL(__NR_move_mount, sys_move_mount)
839+
#define __NR_fsopen 430
840+
__SYSCALL(__NR_fsopen, sys_fsopen)
841+
#define __NR_fsconfig 431
842+
__SYSCALL(__NR_fsconfig, sys_fsconfig)
843+
#define __NR_fsmount 432
844+
__SYSCALL(__NR_fsmount, sys_fsmount)
845+
#define __NR_fspick 433
846+
__SYSCALL(__NR_fspick, sys_fspick)
835847

836848
#undef __NR_syscalls
837-
#define __NR_syscalls 428
849+
#define __NR_syscalls 434
838850

839851
/*
840852
* 32 bit systems traditionally used different

0 commit comments

Comments
 (0)