From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4EB373858D35; Mon, 19 Feb 2024 14:58:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EB373858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708354738; bh=/K8LqnhfGs56agu00CfDeYHuzAD++o23QDQpnF+DlME=; h=From:To:Subject:Date:From; b=sv2F4/f1ywVO0Dvb4Utl1b/G7ZhsF009L+hyX2GeAGiZj9WjXPOQWCBvmUpo2ghBG s6KG8X7bCP/mqbAe6sopfMqRs7qvOsUV3X1j54rwZyjhmV+KqeLyGUkvq/J6RvSZaO 5On16UDe74ywdqZ0aWgE7icYby9msnOcZMaO8zl8= From: "jakub at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/31402] New: clone (NULL, NULL, ...) clobbers %r7 register on s390{,x} Date: Mon, 19 Feb 2024 14:58:57 +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.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at redhat dot com X-Bugzilla-Status: NEW 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 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=3D31402 Bug ID: 31402 Summary: clone (NULL, NULL, ...) clobbers %r7 register on s390{,x} Product: glibc Version: 2.40 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: jakub at redhat dot com CC: drepper.fsp at gmail dot com Target Milestone: --- Initially filed in https://gcc.gnu.org/PR113991, but it looks like a glibc = bug to me. vsftpd for some strange reason does: int ret =3D clone(NULL, NULL, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL); My reading of glibc sources is that this results always in -1/EINVAL without invoking the syscall. Anyway, since https://sourceware.org/git/?p=3Dglibc.git;a=3Dcommit;h=3De57d8fc97b90127de4= ed3e3a9cdf663667580935 if the first or second clone argument is NULL, it will return -1/EINVAL, but clobber the call-saved %r7 register. I think error: label should either lm{,g} %r6,%7 or l{,g} %r7. --=20 You are receiving this mail because: You are on the CC list for the bug.=