public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/31402] New: clone (NULL, NULL, ...) clobbers %r7 register on s390{,x}
@ 2024-02-19 14:58 jakub at redhat dot com
  2024-02-19 14:59 ` [Bug libc/31402] " jakub at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at redhat dot com @ 2024-02-19 14:58 UTC (permalink / raw)
  To: glibc-bugs

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

            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 = 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=glibc.git;a=commit;h=e57d8fc97b90127de4ed3e3a9cdf663667580935
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.

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

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

end of thread, other threads:[~2024-02-27 10:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19 14:58 [Bug libc/31402] New: clone (NULL, NULL, ...) clobbers %r7 register on s390{,x} jakub at redhat dot com
2024-02-19 14:59 ` [Bug libc/31402] " jakub at redhat dot com
2024-02-19 15:12 ` schwab@linux-m68k.org
2024-02-19 16:30 ` sam at gentoo dot org
2024-02-20  6:50 ` stli at linux dot ibm.com
2024-02-21 21:59 ` carlos at redhat dot com
2024-02-26 12:45 ` stli at linux dot ibm.com
2024-02-27 10:16 ` stli at linux dot ibm.com

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).