Skip to content

syscalls/kcmp03.c: Fix CLONE_IO failure on s390

Alexander Gordeev ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2syscalls/kcmp03.c: Extend clone_type type to unsigned longtestcases/kernel/syscalls/kcmp/kcmp03.c+1 -10 replies
2/2lib/cloner.c: Use __clone instead of clone for s390lib/cloner.c+5 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [LTP] [PATCH 0/2] syscalls/kcmp03.c: Fix CLONE_IO failure on s390

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(-)
Signature · 1 line
1.8.3.1