Skip to content
Commit 6ebe7da2 authored by Chris Zankel's avatar Chris Zankel
Browse files

xtensa: reset windowbase/windowstart when cloning the VM



When we copy a user thread with CLONE_VM, we also have to reset
windowbase and windowstart to start a pristine stack frame. Otherwise,
overflows can happen using the address 0 as the stack pointer.
Also add a special case for vfork, which continues on the
parent stack until it calls execve. Because this could be a call8, we
need to spill the stack pointer of the previus frame (if still 'live' in
the register file).

Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent cddfcbcd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment