Bug 210569
Summary: | ping over geneve would fail | ||
---|---|---|---|
Product: | Networking | Reporter: | Jianlin Shi (jishi) |
Component: | Other | Assignee: | Stephen Hemminger (stephen) |
Status: | NEW --- | ||
Severity: | high | CC: | xiyou.wangcong |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.10.0-rc6 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Jianlin Shi
2020-12-09 02:04:16 UTC
Is this a regression of 5.10 merge window? (In reply to Cong Wang from comment #1) > Is this a regression of 5.10 merge window? it seems so, the issue occurred since commit 55fd59b003f6 (In reply to Jianlin Shi from comment #2) > (In reply to Cong Wang from comment #1) > > Is this a regression of 5.10 merge window? > > it seems so, the issue occurred since commit 55fd59b003f6 If you could do a bisect, it would save us a lot of time narrowing down this bug. The last change is this: commit 4179b00c04d18ea7013f68d578d80f3c9d13150a Author: Eric Dumazet <edumazet@google.com> Date: Tue Dec 1 01:05:07 2020 -0800 geneve: pull IP header before ECN decapsulation I do not see anything wrong with this commit. Does reverting it make this bug disappear? Well... Looks like the logic is reversed... I feel confident we should reverse it back: diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 627c33333866..b24e79e3e697 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -263,11 +263,11 @@ static void geneve_rx(struct geneve_dev *geneve, struct geneve_sock *gs, switch (skb_protocol(skb, true)) { case htons(ETH_P_IP): - if (pskb_may_pull(skb, sizeof(struct iphdr))) + if (!pskb_may_pull(skb, sizeof(struct iphdr))) goto rx_error; break; case htons(ETH_P_IPV6): - if (pskb_may_pull(skb, sizeof(struct ipv6hdr))) + if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) goto rx_error; break; default: confirmed that the issue occurred since commit 4179b00c04d18ea7013f68d578d80f3c9d13150a on git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git (In reply to Jianlin Shi from comment #6) > confirmed that the issue occurred since commit > 4179b00c04d18ea7013f68d578d80f3c9d13150a on > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git It has been reverted: commit c02bd115b1d25931159f89c7d9bf47a30f5d4b41 Author: Jakub Kicinski <kuba@kernel.org> Date: Wed Dec 9 14:39:56 2020 -0800 Revert "geneve: pull IP header before ECN decapsulation" |