Netdev List
 help / color / mirror / Atom feed
* [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs()
@ 2026-09-03  8:18 Eelco Chaudron
  2026-09-03 12:41 ` Ilya Maximets
  2026-09-04 17:08 ` Aaron Conole
  0 siblings, 2 replies; 3+ messages in thread
From: Eelco Chaudron @ 2026-09-03  8:18 UTC (permalink / raw)
  To: netdev
  Cc: dev, aconole, echaudro, i.maximets, davem, edumazet, kuba, pabeni,
	horms, cpp.code.lv

The ESP and AH cases in get_ipv6_ext_hdrs() used IPPROTO_FRAGMENT
instead of OFPIEH12_FRAG when checking for out-of-order extension
headers, causing the fragment header to not be recognised as a valid
predecessor.

Fixes: 28a3f0601727 ("net: openvswitch: IPv6: Add IPv6 extension header support")
Reported-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 net/openvswitch/flow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
index 46c1d66aad8c..868d9fdf3afd 100644
--- a/net/openvswitch/flow.c
+++ b/net/openvswitch/flow.c
@@ -288,7 +288,7 @@ static void get_ipv6_ext_hdrs(struct sk_buff *skb, struct ipv6hdr *nh,
 			if (*ext_hdrs & OFPIEH12_ESP)
 				*ext_hdrs |= OFPIEH12_UNREP;
 			if ((*ext_hdrs & ~(OFPIEH12_HOP | OFPIEH12_DEST |
-					   OFPIEH12_ROUTER | IPPROTO_FRAGMENT |
+					   OFPIEH12_ROUTER | OFPIEH12_FRAG |
 					   OFPIEH12_AUTH | OFPIEH12_UNREP)) ||
 			    dest_options_header_count >= 2) {
 				*ext_hdrs |= OFPIEH12_UNSEQ;
@@ -301,7 +301,7 @@ static void get_ipv6_ext_hdrs(struct sk_buff *skb, struct ipv6hdr *nh,
 				*ext_hdrs |= OFPIEH12_UNREP;
 			if ((*ext_hdrs &
 			     ~(OFPIEH12_HOP | OFPIEH12_DEST | OFPIEH12_ROUTER |
-			       IPPROTO_FRAGMENT | OFPIEH12_UNREP)) ||
+			       OFPIEH12_FRAG | OFPIEH12_UNREP)) ||
 			    dest_options_header_count >= 2) {
 				*ext_hdrs |= OFPIEH12_UNSEQ;
 			}
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs()
  2026-09-03  8:18 [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs() Eelco Chaudron
@ 2026-09-03 12:41 ` Ilya Maximets
  2026-09-04 17:08 ` Aaron Conole
  1 sibling, 0 replies; 3+ messages in thread
From: Ilya Maximets @ 2026-09-03 12:41 UTC (permalink / raw)
  To: Eelco Chaudron, netdev
  Cc: dev, aconole, i.maximets, davem, edumazet, kuba, pabeni, horms,
	cpp.code.lv, stable

On 9/3/26 10:18 AM, Eelco Chaudron wrote:
> The ESP and AH cases in get_ipv6_ext_hdrs() used IPPROTO_FRAGMENT
> instead of OFPIEH12_FRAG when checking for out-of-order extension
> headers, causing the fragment header to not be recognised as a valid
> predecessor.
> 
> Fixes: 28a3f0601727 ("net: openvswitch: IPv6: Add IPv6 extension header support")

Cc: stable@vger.kernel.org

> Reported-by: Paolo Abeni <pabeni@redhat.com>
> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Ilya Maximets <i.maximets@ovn.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs()
  2026-09-03  8:18 [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs() Eelco Chaudron
  2026-09-03 12:41 ` Ilya Maximets
@ 2026-09-04 17:08 ` Aaron Conole
  1 sibling, 0 replies; 3+ messages in thread
From: Aaron Conole @ 2026-09-04 17:08 UTC (permalink / raw)
  To: Eelco Chaudron
  Cc: netdev, dev, i.maximets, davem, edumazet, kuba, pabeni, horms,
	cpp.code.lv

Eelco Chaudron <echaudro@redhat.com> writes:

> The ESP and AH cases in get_ipv6_ext_hdrs() used IPPROTO_FRAGMENT
> instead of OFPIEH12_FRAG when checking for out-of-order extension
> headers, causing the fragment header to not be recognised as a valid
> predecessor.
>
> Fixes: 28a3f0601727 ("net: openvswitch: IPv6: Add IPv6 extension header support")
> Reported-by: Paolo Abeni <pabeni@redhat.com>
> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
> ---

Reviewed-by: Aaron Conole <aconole@redhat.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-04 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  8:18 [PATCH net] openvswitch: fix wrong flag value in get_ipv6_ext_hdrs() Eelco Chaudron
2026-09-03 12:41 ` Ilya Maximets
2026-09-04 17:08 ` Aaron Conole

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox