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

Hyper-V: netvsc: fix setting of pbuf length in received packets #1997

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

francescolavra
Copy link
Member

The existing code is setting the tot_len field of the first struct of a pbuf chain to a value double the correct value, and is failing to update the tot_len value of all pbufs in a chain when appending received data.
This change fixes the above issues, which were causing a page fault in the pbuf_realloc() lwIP function during reception of an IPv6 packet.

The existing code is setting the tot_len field of the first struct
of a pbuf chain to a value double the correct value, and is failing
to update the tot_len value of all pbufs in a chain when appending
received data.
This change fixes the above issues, which were causing a page fault
in the pbuf_realloc() lwIP function during reception of an IPv6
packet.
@francescolavra francescolavra merged commit 2e1f893 into master Feb 16, 2024
5 checks passed
@francescolavra francescolavra deleted the fix/netvsc branch February 16, 2024 19:07
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.

1 participant