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

Maxim Zhukov posted 1 patch 3 years, 11 months ago
ipc/sem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[RFC PATCH 0/1] Fix handling semctl on x86-32 kernels
Posted by Maxim Zhukov 3 years, 11 months ago
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