-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add missing inner IP header in ICMP error-reply packet #21234
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this add!
This comment was marked as resolved.
This comment was marked as resolved.
Here we have a backport criteria of the current stable - 1 version. I think this change meets the criteria |
If we end up having any conflict while backporting, I'd be in favor of dropping it from backports. Calling this a major bug is a bit much IMO, especially without a description of the exact impact this bug can have. |
I tend to agree with Paul, looks like this sounds more like a new support than a major bug fix. We should be careful on backporting changes in a stable branch, even if I would be glad to see this support in early releases. |
Backport looked non-trivial, so I've kept it out of the regular backport round for 1.10, 1.11. |
I also removed it from the current round of 1.12 backports. |
We've removed the backport of this fix from v1.12 because it was causing verifier errors ( |
With the existing code, icmp packet reply can not be decoded because
it has the following format:
ipv4 packet = ipv4 + icmp + orig_ipv4 (has all 0s) + original_data(first 8 bytes)
ipv6 packet = ipv6 + icmpv6 + orig_ipv6 (has all 0s) + original_data(first 64 bytes)
This change adds the missing inner ip header so that packet can be
correctly decoded.
ipv4 packet = ipv4 + icmp + orig_ipv4 + 8 bytes of original data
ipv6 packet = ipv6 + icmpv6 + orig_ipv6 + 64 bytes of original data
Fixes: #21236
Signed-off-by: Nishant Burte nishantburte@gmail.com