public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/31394] New: clone on sparc might fail with -EFAULT for no valid reason
@ 2024-02-16 18:46 sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
  2024-02-16 18:52 ` [Bug libc/31394] " sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de @ 2024-02-16 18:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=31394

            Bug ID: 31394
           Summary: clone on sparc might fail with -EFAULT for no valid
                    reason
           Product: glibc
           Version: 2.38
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 15373
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15373&action=edit
issue reproducing program.

There seems to be a bug in the sparc and sparc64 linux kernel that results in
spurious -EFAULT errors from clone if %sp is referring to a stack address that
is not (yet) part of the program stack, as the stack is laziliy allocated.

I wrote a reproducer program to demonstrate the the presence of the issue, see
the attached file "more_clone_attack.c". As the reproducing script assumes the
stack bias of 0x7ff, it likely won't work as is on sparc32.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-02-23 12:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16 18:46 [Bug libc/31394] New: clone on sparc might fail with -EFAULT for no valid reason sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
2024-02-16 18:52 ` [Bug libc/31394] " sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
2024-02-16 18:52 ` sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
2024-02-16 20:14 ` glaubitz at physik dot fu-berlin.de
2024-02-23 11:54 ` adhemerval.zanella at linaro dot org
2024-02-23 12:03 ` glaubitz at physik dot fu-berlin.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).