Skip to content

Conversation

qianxichen233
Copy link
Contributor

This PR is splited from PR #164

This PR focuses on spliting out the fix for spawni function.

spawni function is used by popen. These are some changes made to make popen be able to run under lind's environment

@rennergade
Copy link
Contributor

@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);
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

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.

2 participants