mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-01 13:17:19 +08:00
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.
This commit is contained in:
parent
30639e79d3
commit
3101b96787
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user