[Bug libc/31394] clone on sparc might fail with -EFAULT for no valid reason
adhemerval.zanella at linaro dot org
sourceware-bugzilla@sourceware.org
Sat Jan 17 13:47:28 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=31394
--- Comment #17 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to John Paul Adrian Glaubitz from comment #16)
> A patch has been posted on the Linux kernel mailing list which makes the
> workaround by Michael Karcher unnecessary:
>
> https://lore.kernel.org/all/c3f713a89dd406d094eae99ef95c108e779780c3.
> camel@physik.fu-berlin.de/T/#mb548b6e4555859fad108d12d3cc80c22bf3a70ba
I don't think we can remove the workaround because we still support old kernels
without this fix.
If the workaround adds performance overhead (which I think it would be
unlikely, clone/fork is a complex syscall); one possibility would to disable it
with a switch enabled by --enable-kernel=x.y.z.
Another possibility would you kernel advertise the fix for this issue through a
hwcap and on clone/clone3 we avoid the workaround if the flag is set.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list