[RFC PATCH 0/1] Fix handling semctl on x86-32 kernels

From: Maxim Zhukov
Date: Sun May 15 2022 - 16:01:30 EST


I'm not sure about this patch. Maybe there is a better way to solve this problem:
all libc sends with cmd IPC_64 flag[1][2][3], but x86-32 kernel does not have compat
syscall layer to handle correctly semctl command.

[1]: https://elixir.bootlin.com/uclibc-ng/v1.0.40/source/libc/misc/sysvipc/sem.c#L58
[2]: https://elixir.bootlin.com/musl/v1.2.3/source/src/ipc/semctl.c#L48 -> https://elixir.bootlin.com/musl/v1.2.3/source/src/ipc/ipc.h#L22
[3]: https://elixir.bootlin.com/glibc/glibc-2.35/source/sysdeps/unix/sysv/linux/semctl.c#L124

Maxim Zhukov (1):
ipc, sem: fix backward compatibility with x86-32 kernels

ipc/sem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.36.1