Skip to content
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

expand stack to 16KB for sock_addr hook. #4048

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

shankarseal
Copy link
Collaborator

Description

Describe the purpose of and changes within this Pull Request.
The socket hook takes a lot of stack as the WFP redirect code seems to require a lot of stack. If the eBPF program attached to a socket hook invokes further helper functions that allocate memory, the stack can grow too big and sometimes cause double fault. So increasing the stack expansion limit to 16KB.

Testing

Do any existing tests cover this change? Are new tests needed?
CICD is sufficient for this.

Documentation

Is there any documentation impact for this change?
No.

Installation

Is there any installer impact for this change?
No.

@shankarseal shankarseal changed the title expand stack to 16KB. expand stack to 16KB for sock_addr hook. Nov 25, 2024
@shankarseal shankarseal added this pull request to the merge queue Nov 25, 2024
Merged via the queue into microsoft:main with commit c3b4b4a Nov 25, 2024
89 checks passed
@shankarseal shankarseal deleted the stack_expansion branch November 25, 2024 22:19
shankarseal added a commit to shankarseal/ebpf-for-windows that referenced this pull request Nov 27, 2024
shankarseal added a commit to shankarseal/ebpf-for-windows that referenced this pull request Nov 28, 2024
shankarseal added a commit that referenced this pull request Dec 2, 2024
* expand stack to 16KB. (#4048)

* Add EBPF_LOG_MAP_OPERATION in ebpf_map find, update and delete function (#4032)

* Add EBPF_LOG_MAP_OPERATION in find,update and delete function

* expand stack to 16KB.

---------

Co-authored-by: Alan Jowett <[email protected]>
Co-authored-by: Shankar Seal <[email protected]>

* update spd (#4049)

---------

Co-authored-by: Sharmi <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
Co-authored-by: Anurag Saxena <[email protected]>
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.

4 participants