diff options
author | Ism Hong <ism.hong@gmail.com> | 2025-01-06 19:52:27 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2025-01-11 12:55:47 +0100 |
commit | bc7584e009c39375294794f7ca751a6b2622c425 (patch) | |
tree | dcf6cecda80df56afb1c6d682e00a0380c5036c7 /net/lapb/lapb_timer.c | |
parent | 42a39e4aa59a10aa4afdc14194f3ee63d2db94e1 (diff) | |
download | linux-bc7584e009c39375294794f7ca751a6b2622c425.tar.gz linux-bc7584e009c39375294794f7ca751a6b2622c425.tar.bz2 linux-bc7584e009c39375294794f7ca751a6b2622c425.zip |
mips: fix shmctl/semctl/msgctl syscall for o32
The commit 275f22148e87 ("ipc: rename old-style shmctl/semctl/msgctl
syscalls") switched various architectures to use sys_old_*ctl() with
ipc_parse_version, including mips n32/n64. However, for mips o32, commit
0d6040d46817 ("arch: add split IPC system calls where needed") added
separate IPC syscalls without properly using the old-style handlers.
This causes applications using uClibc-ng to fail with -EINVAL when
calling semctl/shmctl/msgctl with IPC_64 flag, as uClibc-ng uses the
syscall numbers from kernel headers to determine whether to use the IPC
multiplexer or split syscalls. In contrast, glibc is unaffected as it
uses a unified feature test macro __ASSUME_DIRECT_SYSVIPC_SYSCALLS
(disabled for mips-o32) to make this decision.
Fix this by switching the o32 ABI entries for semctl, shmctl and msgctl
to use the old-style handlers, matching the behavior of other
architectures and fixing compatibility with uClibc-ng.
Signed-off-by: Ism Hong <ism.hong@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions