public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] arm: align stack in clone [BZ 28020] Date: Mon, 28 Jun 2021 10:36:21 +0000 (GMT) [thread overview] Message-ID: <20210628103621.3EF993850413@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3101b967874fb7d54a23f75fe93c310143e64af6 commit 3101b967874fb7d54a23f75fe93c310143e64af6 Author: Szabolcs Nagy <szabolcs.nagy@arm.com> Date: Fri Jun 25 19:58:59 2021 +0100 arm: align stack in clone [BZ 28020] The arm PCS requires 8 byte aligned stack at function entry. Previously unaligned stack could crash the clone child. Fixes bug 28020. Diff: --- sysdeps/unix/sysv/linux/arm/clone.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/arm/clone.S b/sysdeps/unix/sysv/linux/arm/clone.S index 44eefee3fc..05596cb7a5 100644 --- a/sysdeps/unix/sysv/linux/arm/clone.S +++ b/sysdeps/unix/sysv/linux/arm/clone.S @@ -31,6 +31,8 @@ ENTRY(__clone) @ sanity check args cmp r0, #0 + @ align sp + and r1, r1, #-8 ite ne cmpne r1, #0 moveq r0, #-EINVAL
reply other threads:[~2021-06-28 10:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210628103621.3EF993850413@sourceware.org \ --to=nsz@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).