-
Notifications
You must be signed in to change notification settings - Fork 14
glibc - fix spawni #360
New issue
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
base: main
Are you sure you want to change the base?
glibc - fix spawni #360
Conversation
@qianxichen233 All of the comments here need to explain why these things were removed |
int prot = (PROT_READ | PROT_WRITE | ||
| ((GL (dl_stack_flags) & PF_X) ? PROT_EXEC : 0)); | ||
// lind-wasm: disallow PROC_EXEC | ||
int prot = (PROT_READ | PROT_WRITE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this probably should fall through to rawposix where we can lind_panic_debug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain why if we wont remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
where it might use about 1k extra stack space). */ | ||
argv_size += (32 * 1024); | ||
size_t stack_size = ALIGN_UP (argv_size, GLRO(dl_pagesize)); | ||
// lind-wasm: remove MAP_STACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
| CLONE_CLEAR_SIGHAND | ||
| CLONE_VM | ||
| CLONE_VFORK, | ||
| CLONE_VFORK, // lind-wasm: removed CLONE_VM flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
This PR is splited from PR #164
This PR focuses on spliting out the fix for
spawni
function.spawni
function is used bypopen
. These are some changes made to makepopen
be able to run under lind's environment