mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-06 11:41:02 +03: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)
|
ENTRY(__clone)
|
||||||
@ sanity check args
|
@ sanity check args
|
||||||
cmp r0, #0
|
cmp r0, #0
|
||||||
|
@ align sp
|
||||||
|
and r1, r1, #-8
|
||||||
ite ne
|
ite ne
|
||||||
cmpne r1, #0
|
cmpne r1, #0
|
||||||
moveq r0, #-EINVAL
|
moveq r0, #-EINVAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user