public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] arm: align stack in clone [BZ 28020]
@ 2021-06-28 10:36 Szabolcs Nagy
0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2021-06-28 10:36 UTC (permalink / raw)
To: glibc-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-28 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 10:36 [glibc] arm: align stack in clone [BZ 28020] Szabolcs Nagy
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).