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

remove uninitialized pool allocation #791

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

mtfriesen
Copy link
Contributor

Description

Describe the purpose of and changes within this Pull Request.

The TX bounce buffer is currently allocated without initialization, which is functionally correct and reasonably secure (the contents are not mapped into user space). For defense in depth, consistently use zero'd pool allocations across XDP unless the perf cost is unacceptable.

Some code paths may implicitly use non-initialized memory (e.g. NBLs allocated by NDIS) and are out of scope.

Testing

Do any existing tests cover this change? Are new tests needed?

CI.

Documentation

Is there any documentation impact for this change?

No.

Installation

Is there any installer impact for this change?

No.

@mtfriesen mtfriesen requested a review from a team as a code owner January 27, 2025 18:10
@mtfriesen mtfriesen enabled auto-merge (squash) January 27, 2025 21:23
Copy link
Member

@nibanks nibanks left a comment

Choose a reason for hiding this comment

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

Assuming the perf looks ok, ship it.

@mtfriesen mtfriesen merged commit 84826e2 into main Jan 28, 2025
58 checks passed
@mtfriesen mtfriesen deleted the mtfriesen/xsk_init_allocs branch January 28, 2025 13:35
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