diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-06-25 19:58:59 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-06-28 11:35:44 +0100 |
commit | 3101b967874fb7d54a23f75fe93c310143e64af6 (patch) | |
tree | f53cb054992f3e1703f74b0626d8ccb4534861df /sysdeps/unix/sysv/linux | |
parent | 30639e79d3370243ee5ef3a029204a4c71e15856 (diff) | |
download | glibc-3101b967874fb7d54a23f75fe93c310143e64af6.tar glibc-3101b967874fb7d54a23f75fe93c310143e64af6.tar.gz glibc-3101b967874fb7d54a23f75fe93c310143e64af6.tar.bz2 glibc-3101b967874fb7d54a23f75fe93c310143e64af6.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/arm/clone.S | 2 |
1 files changed, 2 insertions, 0 deletions
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 |