Skip to content

Conversation

@LeoneChen
Copy link

@LeoneChen LeoneChen commented Aug 27, 2025

Description of the changes

Gramine needs to reserve memory for xstate, sigframe, restorer's address in sigaltstack, cause size of sigaltstack should be large enough, thus I suggest size should at least libos_xstate_size() + sizeof(struct sigframe) + 8 /* restorer address */ + MINSIGSTKSZ, and warning when not big enough to help developer adjust.

In the warning message, we should not report application's size settings to avoid information leakage.

See details in #2153

How to test this PR?

sigaltstack01 test case is helpful.


This change is Reviewable

…application's size settings to avoid information leakage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant