mips archs: fix runaway execution if start fn passed to clone returns
authorSegev Finer <segev208@gmail.com>
Wed, 15 Aug 2018 17:46:18 +0000 (20:46 +0300)
committerRich Felker <dalias@aerifal.cx>
Sat, 18 Aug 2018 15:22:28 +0000 (11:22 -0400)
commit8b2b61e0001281be0dcd3dedc899bf187172fecb
treeba225d879658123fbb313b8a1bcca76b164cc54f
parent91e1e29d6dd92c5e707f05dcc9b2a376b0d8dfa1
mips archs: fix runaway execution if start fn passed to clone returns

Call SYS_exit on return from fn in __clone. This is the expected
behavior of this function. Without this the child task will crash on
return from fn, since it will return to nowhere.
src/thread/mips/clone.s
src/thread/mips64/clone.s
src/thread/mipsn32/clone.s