From: Paolo Abeni <pabeni@redhat.com>
To: Ido Schimmel <idosch@nvidia.com>, Zhiling Zou <zhilinz@nebusec.ai>
Cc: netdev@vger.kernel.org, dsahern@kernel.org, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, horms@kernel.org,
atenart@kernel.org, yuehaibing@huawei.com, kuniyu@google.com,
kees@kernel.org, kylebot@openai.com, thorsten.blum@linux.dev,
maoyixie.tju@gmail.com, vega@nebusec.ai
Subject: Re: [PATCH net v4 1/2] ip6_gre: fix hardware header length for NBMA tunnels
Date: Tue, 18 Aug 2026 12:39:18 +0200 [thread overview]
Message-ID: <0ba32ecf-306a-43ed-93f0-e378d21a2bc0@redhat.com> (raw)
In-Reply-To: <20260817064250.GA196908@shredder>
On 8/17/26 8:42 AM, Ido Schimmel wrote:
> On Thu, Aug 13, 2026 at 12:22:34AM +0800, Zhiling Zou wrote:
>> ip6gre_tnl_link_config_route() accumulates the lower device's hardware
>> header length into dev->hard_header_len whenever header_ops is set. This
>> is incorrect for both users of header_ops.
>>
>> ip6gretap and ip6erspan have a fixed Ethernet hardware header length.
>> For an NBMA ip6gre tunnel, ip6gre_header() creates only the GRE header,
>> the optional FOU or GUE header, and the outer IPv6 header. The lower
>> device header is headroom needed later, not part of the tunnel device's
>> hardware header.
>>
>> Keep the lower device header in needed_headroom. Set hard_header_len to
>> the tunnel header length only for ARPHRD_IP6GRE devices with header_ops,
>> and leave the fixed Ethernet header length unchanged for tap and erspan
>> devices.
>>
>> Fixes: 832ba596494b ("net: ip6_gre: set dev->hard_header_len when using header_ops")
>> Cc: stable@vger.kernel.org
>> Reported-by: Vega <vega@nebusec.ai>
>
> It wasn't reported by Vega.
>
>> Suggested-by: Ido Schimmel <idosch@nvidia.com>
>> Signed-off-by: Zhiling Zou <zhilinz@nebusec.ai>
>
> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Thanks for all the reviewing effort!
FYI, since some time, the nipa sashiko instance is using as input
gemini-sashiko reviews, and cross checking using different models
(including opus-5, which AFAICS is the one producing more relevant
feedback ATM).
The bottom line is that sashiko nipa is/should be the most relevant
sashiko instance to look at.
/P
next prev parent reply other threads:[~2026-08-18 10:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 16:22 [PATCH net v4 0/2] net: fix IP6GRE header length before capping tunnel headroom Zhiling Zou
2026-08-12 16:22 ` [PATCH net v4 1/2] ip6_gre: fix hardware header length for NBMA tunnels Zhiling Zou
2026-08-17 6:42 ` Ido Schimmel
2026-08-18 10:39 ` Paolo Abeni [this message]
2026-08-12 16:22 ` [PATCH net v4 2/2] net: cap advertised IP tunnel headroom Zhiling Zou
2026-08-17 6:43 ` Ido Schimmel
2026-08-18 10:50 ` [PATCH net v4 0/2] net: fix IP6GRE header length before capping " patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0ba32ecf-306a-43ed-93f0-e378d21a2bc0@redhat.com \
--to=pabeni@redhat.com \
--cc=atenart@kernel.org \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=kylebot@openai.com \
--cc=maoyixie.tju@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=thorsten.blum@linux.dev \
--cc=vega@nebusec.ai \
--cc=yuehaibing@huawei.com \
--cc=zhilinz@nebusec.ai \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox