Skip to content

Commit 29ccb40

Browse files
committed
Merge tag 'asm-generic-fixes-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pull asm-generic fixes from Arnd Bergmann: "These are three important bug fixes for the cross-architecture tree, fixing a regression with the new syscall.tbl file, the inconsistent numbering for the new uretprobe syscall and a bug with iowrite64be on alpha" * tag 'asm-generic-fixes-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: syscalls: fix syscall macros for newfstat/newfstatat uretprobe: change syscall number, again alpha: fix ioread64be()/iowrite64be() helpers
2 parents 6b779f8 + 343416f commit 29ccb40

File tree

8 files changed

+11
-14
lines changed

8 files changed

+11
-14
lines changed

arch/alpha/include/asm/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,10 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
534534

535535
#define ioread16be(p) swab16(ioread16(p))
536536
#define ioread32be(p) swab32(ioread32(p))
537+
#define ioread64be(p) swab64(ioread64(p))
537538
#define iowrite16be(v,p) iowrite16(swab16(v), (p))
538539
#define iowrite32be(v,p) iowrite32(swab32(v), (p))
540+
#define iowrite64be(v,p) iowrite64(swab64(v), (p))
539541

540542
#define inb_p inb
541543
#define inw_p inw
@@ -634,8 +636,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
634636
*/
635637
#define ioread64 ioread64
636638
#define iowrite64 iowrite64
637-
#define ioread64be ioread64be
638-
#define iowrite64be iowrite64be
639639
#define ioread8_rep ioread8_rep
640640
#define ioread16_rep ioread16_rep
641641
#define ioread32_rep ioread32_rep

arch/arm64/kernel/Makefile.syscalls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
syscall_abis_32 +=
4-
syscall_abis_64 += renameat newstat rlimit memfd_secret
4+
syscall_abis_64 += renameat rlimit memfd_secret
55

66
syscalltbl = arch/arm64/tools/syscall_%.tbl
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
syscall_abis_64 += newstat
3+
# No special ABIs on loongarch so far
4+
syscall_abis_64 +=

arch/riscv/kernel/Makefile.syscalls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
syscall_abis_32 += riscv memfd_secret
4-
syscall_abis_64 += riscv newstat rlimit memfd_secret
4+
syscall_abis_64 += riscv rlimit memfd_secret

arch/x86/entry/syscalls/syscall_64.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
332 common statx sys_statx
345345
333 common io_pgetevents sys_io_pgetevents
346346
334 common rseq sys_rseq
347+
335 common uretprobe sys_uretprobe
347348
# don't use numbers 387 through 423, add new calls after the last
348349
# 'common' entry
349350
424 common pidfd_send_signal sys_pidfd_send_signal
@@ -385,7 +386,6 @@
385386
460 common lsm_set_self_attr sys_lsm_set_self_attr
386387
461 common lsm_list_modules sys_lsm_list_modules
387388
462 common mseal sys_mseal
388-
467 common uretprobe sys_uretprobe
389389

390390
#
391391
# Due to a historical design error, certain syscalls are numbered differently

include/uapi/asm-generic/unistd.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,8 @@ __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules)
841841
#define __NR_mseal 462
842842
__SYSCALL(__NR_mseal, sys_mseal)
843843

844-
#define __NR_uretprobe 463
845-
__SYSCALL(__NR_uretprobe, sys_uretprobe)
846-
847844
#undef __NR_syscalls
848-
#define __NR_syscalls 464
845+
#define __NR_syscalls 463
849846

850847
/*
851848
* 32 bit systems traditionally used different

scripts/syscall.tbl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
77 common tee sys_tee
9999
78 common readlinkat sys_readlinkat
100100
79 stat64 fstatat64 sys_fstatat64
101-
79 newstat fstatat sys_newfstatat
101+
79 64 newfstatat sys_newfstatat
102102
80 stat64 fstat64 sys_fstat64
103-
80 newstat fstat sys_newfstat
103+
80 64 newfstat sys_newfstat
104104
81 common sync sys_sync
105105
82 common fsync sys_fsync
106106
83 common fdatasync sys_fdatasync
@@ -402,4 +402,3 @@
402402
460 common lsm_set_self_attr sys_lsm_set_self_attr
403403
461 common lsm_list_modules sys_lsm_list_modules
404404
462 common mseal sys_mseal
405-
467 common uretprobe sys_uretprobe

tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void test_uretprobe_regs_change(void)
216216
}
217217

218218
#ifndef __NR_uretprobe
219-
#define __NR_uretprobe 467
219+
#define __NR_uretprobe 335
220220
#endif
221221

222222
__naked unsigned long uretprobe_syscall_call_1(void)

0 commit comments

Comments
 (0)