mips: align stack in clone [BZ #28223]
authorXi Ruoyao <xry111@mengyan1223.wang>
Thu, 12 Aug 2021 20:31:59 +0000 (20:31 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 12 Aug 2021 20:31:59 +0000 (20:31 +0000)
commit1f51cd9a860ee45eee8a56fb2ba925267a2a7bfe
tree9b5f6e6de2fc456934a0c40ec0e0fb6bf4b9ea83
parent4cc79c217744743077bf7a0ec5e0a4318f1e6641
mips: align stack in clone [BZ #28223]

The MIPS O32 ABI requires 4 byte aligned stack, and the MIPS N64 and N32
ABI require 8 byte aligned stack.  Previously if the caller passed an
unaligned stack to clone the the child misbehaved.

Fixes bug 28223.
sysdeps/unix/sysv/linux/mips/clone.S