Files
Dmitrii Kuvaiskii 8811271814 [LibOS] DONTMERGE: Workaround test_user_memory() of alt-stack allocated syscall arguments
Graphene doesn't switch to an alternate stack of the application on
signal handling. This means that app signal handler operates on
Graphene-internal alt stack. If app allocates some variables on this
stack and then uses them as syscall arguments, Graphene syscall
emulators typically check these arguments via test_user_memory() and
fail because they observe "invalid" (Graphene-internal) memory regions.

Proper fix of this issue is to switch stacks when jumping to/from
Graphene LibOS and application. See #1218. For now simply stub these
test_user_memory() checks in appropriate places.
2020-11-18 07:30:20 -05:00
..