We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RLIMIT_STACK
Seems like RLIMIT_STACK is overwritten to the default value (read from the manifest file) in the child process.
In other words, a program like this:
struct rlimit rlim = { .rlim_cur = 1024*1024, .rlim_max = 1024*1024*1024 }; setrlimit(RLIMIT_STACK, rlim); fork(); ... child runs ...
will not inherit the set-by-parent stack limit. Instead the child will use the stack size read from the manifest file.
This is in contrast to how other resource limits are propagated to the child, in particular, the brk (RLIMIT_DATA) limit:
brk
RLIMIT_DATA
gramine/libos/src/sys/libos_brk.c
Lines 36 to 40 in 4a73025
The text was updated successfully, but these errors were encountered:
sys.fds.limit
Successfully merging a pull request may close this issue.
Description of the problem
Seems like
RLIMIT_STACK
is overwritten to the default value (read from the manifest file) in the child process.In other words, a program like this:
will not inherit the set-by-parent stack limit. Instead the child will use the stack size read from the manifest file.
This is in contrast to how other resource limits are propagated to the child, in particular, the
brk
(RLIMIT_DATA
) limit:gramine/libos/src/sys/libos_brk.c
Lines 36 to 40 in 4a73025
The text was updated successfully, but these errors were encountered: