[LTP] [PATCH v2] tst_clone: Fix child detection on sparc
Anders Roxell
anders.roxell@linaro.org
Wed Sep 30 14:16:32 CEST 2026
On Tue, 29 Sept 2026 at 16:22, Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Anders,
>
> > On sparc the clone syscall does not return 0 in the child. It returns
> > the parent pid, so the child thinks it is the parent.
>
> So, somebody still test sparc :). Before applying a workaround few questions.
>
> I suppose this is because we did not updated our syscalls numbers.
Yes, clone3 was missing...
>
>
> I send a patch which regenerated syscall numbers to have clone3 on sparc (both
> 32 and 64 bit) v7.0:
>
> $ include/lapi/syscalls/generate_arch.sh ../linux
>
> Can you please verify it works with clone3()? It was added this year in v7.0 in
> 2153b2e8917b7 ("sparc: Add architecture support for clone3")
Yes, it works. I tested on sparc64 in QEMU with a v7.3-rc4 kernel and
a buildroot
rootfs with LTP 20260529 + your patch only. All 94 fs_bind tests pass.
>
> Do we care about the past?
That's a good question, I think we do, because of the LTS kernels...
We run the latest LTP on the LTS kernels...
Cheers,
Anders
More information about the ltp
mailing list