Skip to content

Commit 9c8ad7a

Browse files
dhowellsAl Viro
authored andcommitted
uapi, x86: Fix the syscall numbering of the mount API syscalls [ver #2]
Fix the syscall numbering of the mount API syscalls so that the numbers match between i386 and x86_64 and that they're in the common numbering scheme space. Fixes: a07b200 ("vfs: syscall: Add open_tree(2) to reference or clone a mount") Fixes: 2db154b ("vfs: syscall: Add move_mount(2) to move mounts around") Fixes: 24dcb3d ("vfs: syscall: Add fsopen() to prepare for superblock creation") Fixes: ecdab15 ("vfs: syscall: Add fsconfig() for configuring and managing a context") Fixes: 93766fb ("vfs: syscall: Add fsmount() to create a mount for a superblock") Fixes: cf3cba4 ("vfs: syscall: Add fspick() to select a superblock for reconfiguration") Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 1cdc415 commit 9c8ad7a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

0 commit comments

Comments
 (0)