linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] Fix handling semctl on x86-32 kernels
@ 2022-05-15 20:01 Maxim Zhukov
  2022-05-15 20:01 ` [RFC PATCH 1/1] ipc, sem: fix backward compatibility with " Maxim Zhukov
  0 siblings, 1 reply; 5+ messages in thread
From: Maxim Zhukov @ 2022-05-15 20:01 UTC (permalink / raw)
  To: chi.minghao, varad.gautam, arnd
  Cc: akpm, shakeelb, vasily.averin, manfred, dbueso, linux-kernel,
	Maxim Zhukov

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-16 22:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15 20:01 [RFC PATCH 0/1] Fix handling semctl on x86-32 kernels Maxim Zhukov
2022-05-15 20:01 ` [RFC PATCH 1/1] ipc, sem: fix backward compatibility with " Maxim Zhukov
2022-05-16 21:06   ` Andrew Morton
2022-05-16 22:07     ` Arnd Bergmann
2022-05-16 22:00   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).