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:
Szabolcs Nagy 2021-06-25 19:58:59 +01:00
parent 30639e79d3
commit 3101b96787

View File

@ -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