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

Mitigate NDIS bugcheck when RSS is set by a LWF before TCPIP #137

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

mtfriesen
Copy link
Contributor

@mtfriesen mtfriesen commented Jan 26, 2023

If an LWF injects an OID_GEN_RECEIVE_SCALE_PARAMETERS before any protocol (i.e. open) submits the same OID, then NDIS bugchecks while attempting to cache the RSS parameters on the miniport in a lazily-allocated cache buffer. The cache buffer is allocated by an NDIS routine that isn't called for LWFs.

Prevent this from happening by rejecting XDP set RSS requests until the protocol (e.g. TCPIP) has sent down an RSS OID.

@mtfriesen mtfriesen requested a review from a team as a code owner January 26, 2023 19:27
@mtfriesen mtfriesen enabled auto-merge (squash) January 26, 2023 19:38
@mtfriesen mtfriesen merged commit 5b5303a into main Jan 26, 2023
@mtfriesen mtfriesen deleted the mtfriesen/ndis_rss_bug branch January 26, 2023 19:48
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.

None yet

2 participants