From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA0533857C77; Fri, 16 Feb 2024 18:46:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA0533857C77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708109199; bh=pDnvY2KeX5ZDpPQ6V5Q5LnOf2PGK7EG7G+3gamgSLrQ=; h=From:To:Subject:Date:From; b=u8Q3+dTcUft+5H2vnJ/vd9zefRLRsBnCyp7jW6kYr92K+WS2Kls9QXaNrbZO+MfL/ IGdtiNYB1Bilmz1H+h9NeFJ4+y1Ch24WflFYXqyN4NEa4LgpwBYb6lsm3lWz3wse/u jfAk0TbgPVO2wKO1UilIwx6DVt+0pko9sg7MGPJk= From: "sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de" To: glibc-bugs@sourceware.org Subject: [Bug libc/31394] New: clone on sparc might fail with -EFAULT for no valid reason Date: Fri, 16 Feb 2024 18:46:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31394 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=3D15373&action=3Ded= it 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 t= hat 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=