[LTP] [PATCH v2] tst_clone: Fix child detection on sparc
Anders Roxell
anders.roxell@linaro.org
Wed Sep 30 21:42:12 CEST 2026
On Wed, 30 Sept 2026 at 15:53, Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Anders,
>
> > 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...
>
> Thanks for info.
>
>
>
> > > 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.
>
> FYI there is v2 from Andrea, your testing is highly appreciated (although the
> might be some additional changes to script which generates it.
>
> https://patchwork.kernel.org/project/ltp/list/?series=1176684&state=*
>
> > > 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...
>
> Yeah, it should be probably merged. I'm sorry that we did not make it to this
> LTP release (Cyril is tagging today). Could you please send v3, which address
> agent issues?
Yes I will rework the patch, send it out shortly.
Cheers,
Anders
More information about the ltp
mailing list