fou: remove warn in gue_gro_receive on unsupported protocol
PATCH 1/1 fou: remove warn in gue_gro_receive on unsupported protocol
From: Willem de Bruijn <[email protected]>
[ Upstream commit dd89a81d850fa9a65f67b4527c0e420d15bf836c ]
Drop the WARN_ON_ONCE inn gue_gro_receive if the encapsulated type is not known or does not have a GRO handler.
Such a packet is easily constructed. Syzbot generates them and sets off this warning.
Remove the warning as it is expected and not actionable.
The warning was previously reduced from WARN_ON to WARN_ON_ONCE in commit 270136613bf7 ("fou: Do WARN_ON_ONCE in gue_gro_receive for bad proto callbacks").
--- net/ipv4/fou.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/fou.c +1 -1
@@ -453,7 +453,7 @@ static struct sk_buff *gue_gro_receive(struct sock *sk, offloads =NAPI_GRO_CB (skb)->is_ipv6 ? inet6_offloads : inet_offloads; ops =rcu_dereference (offloads[proto]); -if (WARN_ON_ONCE (!ops || !ops->callbacks.gro_receive)) +if (!ops || !ops->callbacks.gro_receive) goto out; pp =call_gro_receive (ops->callbacks.gro_receive, head, skb);
Signature · 1 line
2.25.1
[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: dd89a81d850fa9a65f67b4527c0e420d15bf836c
WARNING: Author mismatch between patch and upstream commit:
Backport author: [email protected] Commit author: Willem de Bruijn <[email protected]>
Status in newer kernel trees:
6.12.y | Present (exact SHA1)
6.6.y | Present (different SHA1: 3db4395332e7) 6.1.y | Present (different SHA1: 5a2e37bc648a) 5.15.y | Not found
Note: The patch differs from the upstream commit:
---
1: dd89a81d850fa ! 1: 2115d8ab02118 fou: remove warn in gue_gro_receive on unsupported protocol
@@ Metadata
## Commit message ##
fou: remove warn in gue_gro_receive on unsupported protocol
+ [ Upstream commit dd89a81d850fa9a65f67b4527c0e420d15bf836c ]
+
Drop the WARN_ON_ONCE inn gue_gro_receive if the encapsulated type is not known or does not have a GRO handler.
@@ Commit message
+ Signed-off-by: Libo Chen <[email protected]>
- ## net/ipv4/fou_core.c ##
-@@ net/ipv4/fou_core.c: static struct sk_buff *gue_gro_receive(struct sock *sk,
+ ## net/ipv4/fou.c ##
+@@ net/ipv4/fou.c: static struct sk_buff *gue_gro_receive(struct sock *sk,
offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; ops = rcu_dereference(offloads[proto]);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.15.y | Success | Success |