All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] syscalls/kcmp03.c: Fix CLONE_IO failure on s390
@ 2020-05-08 13:09 Alexander Gordeev
  2020-05-08 13:09 ` [LTP] [PATCH 1/2] syscalls/kcmp03.c: Extend clone_type type to unsigned long Alexander Gordeev
  2020-05-08 13:09 ` [LTP] [PATCH 2/2] lib/cloner.c: Use __clone instead of clone for s390 Alexander Gordeev
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Gordeev @ 2020-05-08 13:09 UTC (permalink / raw)
  To: ltp

Hi all,

This series fixes the CLONE_IO flag test on s390:

	kcmp03.c:82: FAIL: clone() Failed: EBADF (9)

The reason for the failure is CLONE_IO flag is sign-
extended to unsigned long and CLONE_INTO_CGROUP gets
set unintentionally. The kernel does its job well and
fails the syscall.

The fix is probably wrong, as the right solution needs to
accomodate all archs. I however, post it as a short-term
solution that might work for other archs as well.

Thanks!

Alexander Gordeev (2):
  syscalls/kcmp03.c: Extend clone_type type to unsigned long
  lib/cloner.c: Use __clone instead of clone for s390

 lib/cloner.c                            | 5 +++++
 testcases/kernel/syscalls/kcmp/kcmp03.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2020-05-11  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 13:09 [LTP] [PATCH 0/2] syscalls/kcmp03.c: Fix CLONE_IO failure on s390 Alexander Gordeev
2020-05-08 13:09 ` [LTP] [PATCH 1/2] syscalls/kcmp03.c: Extend clone_type type to unsigned long Alexander Gordeev
2020-05-08 13:09 ` [LTP] [PATCH 2/2] lib/cloner.c: Use __clone instead of clone for s390 Alexander Gordeev
2020-05-08 14:20   ` Jan Stancek
2020-05-11  8:33     ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.