Commit 29ccb40f authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'asm-generic-fixes-6.11-1' of...

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
parents 6b779f8a 343416f0
...@@ -534,8 +534,10 @@ extern inline void writeq(u64 b, volatile void __iomem *addr) ...@@ -534,8 +534,10 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
#define ioread16be(p) swab16(ioread16(p)) #define ioread16be(p) swab16(ioread16(p))
#define ioread32be(p) swab32(ioread32(p)) #define ioread32be(p) swab32(ioread32(p))
#define ioread64be(p) swab64(ioread64(p))
#define iowrite16be(v,p) iowrite16(swab16(v), (p)) #define iowrite16be(v,p) iowrite16(swab16(v), (p))
#define iowrite32be(v,p) iowrite32(swab32(v), (p)) #define iowrite32be(v,p) iowrite32(swab32(v), (p))
#define iowrite64be(v,p) iowrite64(swab64(v), (p))
#define inb_p inb #define inb_p inb
#define inw_p inw #define inw_p inw
...@@ -634,8 +636,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count); ...@@ -634,8 +636,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
*/ */
#define ioread64 ioread64 #define ioread64 ioread64
#define iowrite64 iowrite64 #define iowrite64 iowrite64
#define ioread64be ioread64be
#define iowrite64be iowrite64be
#define ioread8_rep ioread8_rep #define ioread8_rep ioread8_rep
#define ioread16_rep ioread16_rep #define ioread16_rep ioread16_rep
#define ioread32_rep ioread32_rep #define ioread32_rep ioread32_rep
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
syscall_abis_32 += syscall_abis_32 +=
syscall_abis_64 += renameat newstat rlimit memfd_secret syscall_abis_64 += renameat rlimit memfd_secret
syscalltbl = arch/arm64/tools/syscall_%.tbl syscalltbl = arch/arm64/tools/syscall_%.tbl
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
syscall_abis_64 += newstat # No special ABIs on loongarch so far
syscall_abis_64 +=
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
syscall_abis_32 += riscv memfd_secret syscall_abis_32 += riscv memfd_secret
syscall_abis_64 += riscv newstat rlimit memfd_secret syscall_abis_64 += riscv rlimit memfd_secret
...@@ -344,6 +344,7 @@ ...@@ -344,6 +344,7 @@
332 common statx sys_statx 332 common statx sys_statx
333 common io_pgetevents sys_io_pgetevents 333 common io_pgetevents sys_io_pgetevents
334 common rseq sys_rseq 334 common rseq sys_rseq
335 common uretprobe sys_uretprobe
# don't use numbers 387 through 423, add new calls after the last # don't use numbers 387 through 423, add new calls after the last
# 'common' entry # 'common' entry
424 common pidfd_send_signal sys_pidfd_send_signal 424 common pidfd_send_signal sys_pidfd_send_signal
...@@ -385,7 +386,6 @@ ...@@ -385,7 +386,6 @@
460 common lsm_set_self_attr sys_lsm_set_self_attr 460 common lsm_set_self_attr sys_lsm_set_self_attr
461 common lsm_list_modules sys_lsm_list_modules 461 common lsm_list_modules sys_lsm_list_modules
462 common mseal sys_mseal 462 common mseal sys_mseal
467 common uretprobe sys_uretprobe
# #
# Due to a historical design error, certain syscalls are numbered differently # Due to a historical design error, certain syscalls are numbered differently
......
...@@ -841,11 +841,8 @@ __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules) ...@@ -841,11 +841,8 @@ __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules)
#define __NR_mseal 462 #define __NR_mseal 462
__SYSCALL(__NR_mseal, sys_mseal) __SYSCALL(__NR_mseal, sys_mseal)
#define __NR_uretprobe 463
__SYSCALL(__NR_uretprobe, sys_uretprobe)
#undef __NR_syscalls #undef __NR_syscalls
#define __NR_syscalls 464 #define __NR_syscalls 463
/* /*
* 32 bit systems traditionally used different * 32 bit systems traditionally used different
......
...@@ -98,9 +98,9 @@ ...@@ -98,9 +98,9 @@
77 common tee sys_tee 77 common tee sys_tee
78 common readlinkat sys_readlinkat 78 common readlinkat sys_readlinkat
79 stat64 fstatat64 sys_fstatat64 79 stat64 fstatat64 sys_fstatat64
79 newstat fstatat sys_newfstatat 79 64 newfstatat sys_newfstatat
80 stat64 fstat64 sys_fstat64 80 stat64 fstat64 sys_fstat64
80 newstat fstat sys_newfstat 80 64 newfstat sys_newfstat
81 common sync sys_sync 81 common sync sys_sync
82 common fsync sys_fsync 82 common fsync sys_fsync
83 common fdatasync sys_fdatasync 83 common fdatasync sys_fdatasync
...@@ -402,4 +402,3 @@ ...@@ -402,4 +402,3 @@
460 common lsm_set_self_attr sys_lsm_set_self_attr 460 common lsm_set_self_attr sys_lsm_set_self_attr
461 common lsm_list_modules sys_lsm_list_modules 461 common lsm_list_modules sys_lsm_list_modules
462 common mseal sys_mseal 462 common mseal sys_mseal
467 common uretprobe sys_uretprobe
...@@ -216,7 +216,7 @@ static void test_uretprobe_regs_change(void) ...@@ -216,7 +216,7 @@ static void test_uretprobe_regs_change(void)
} }
#ifndef __NR_uretprobe #ifndef __NR_uretprobe
#define __NR_uretprobe 467 #define __NR_uretprobe 335
#endif #endif
__naked unsigned long uretprobe_syscall_call_1(void) __naked unsigned long uretprobe_syscall_call_1(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment