mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 22:01:29 +00:00
In Linux-SGX PAL, the main thread's stack is provided by host Linux, unlike child threads which stacks are mmapped by the PAL. Therefore, the main thread's stack must not be munmapped, unlike child threads' stacks. Previously, PAL tried to munmap stack of even the main thread, leading to spurious segfaults in e.g. `abort_multithread` test.