From: Simon Horman <horms@kernel.org>
To: "Loktionov, Aleksandr" <aleksandr.loktionov@intel.com>
Cc: "intel-wired-lan@lists.osuosl.org"
<intel-wired-lan@lists.osuosl.org>,
"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Wieczerzycka, Katarzyna" <katarzyna.wieczerzycka@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH] ice: add missing reset of the mac header
Date: Sat, 21 Mar 2026 09:14:40 +0000 [thread overview]
Message-ID: <20260321091440.GR74886@horms.kernel.org> (raw)
In-Reply-To: <IA3PR11MB8986779AEBF981B6AF66F3D8E54CA@IA3PR11MB8986.namprd11.prod.outlook.com>
On Fri, Mar 20, 2026 at 07:53:28PM +0000, Loktionov, Aleksandr wrote:
>
>
> > -----Original Message-----
> > From: Simon Horman <horms@kernel.org>
> > Sent: Friday, March 20, 2026 7:05 PM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Cc: intel-wired-lan@lists.osuosl.org; Nguyen, Anthony L
> > <anthony.l.nguyen@intel.com>; netdev@vger.kernel.org; Wieczerzycka,
> > Katarzyna <katarzyna.wieczerzycka@intel.com>
> > Subject: Re: [PATCH] ice: add missing reset of the mac header
> >
> > On Fri, Mar 20, 2026 at 06:05:18AM +0100, Aleksandr Loktionov wrote:
> > > From: Katarzyna Wieczerzycka <katarzyna.wieczerzycka@intel.com>
> > >
> > > By default skb->mac_header is not set, so reset prevents access to
> > an
> > > invalid pointer.
> > >
> > > Call skb_reset_mac_header() before accessing the mac header from
> > skb.
> > >
> > > Signed-off-by: Katarzyna Wieczerzycka
> > > <katarzyna.wieczerzycka@intel.com>
> > > Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> >
> > Hi Katarzyna and Aleksandr,
> >
> > I am curious:
> >
> > Is this a bug? If so then it should probably have a fixes tag and a
> > bit more of a description around how this can happen.
> >
> > If it is not a bug, then is this defensive? And if so, is it really
> > necessary?
> >
> > ...
>
>
> Good day, Simon
>
> I'm upstreaming Katarzyna's fix.
>
> From my point of view, it's not just defensive code, but real bug even on latest kernel because the gap is partially closed by packet_parse_headers(), but not completely.
> Sorry the patch header is malformed, I definitely need to add
> Fixes: f9f83202b726 ("ice: Allow all LLDP packets from PF to Tx")
Hi Aleksandr,
I can see you have been busy.
I agree adding a Fixes tag makes sense. If you could also expand the patch
description that would be well appreciated (at least by me).
> But not sure whether to send to net, because on modern kernels I have no real call traces only theoretical conclusion.
That is a line call in my opinion.
If you include a Fixes tag, which seems sensible, then the chances are the
patch will end up being backported to stable. And if the patch is in
net-next it might not have hit Linus's tree before that happens. Which
doesn't seem ideal. So I think it would be more sensible to target the
patch at net to avoid that problem. But that's just my feeling.
Either way, please consider adding a note regarding this.
So it will be more obvious.
WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms@kernel.org>
To: "Loktionov, Aleksandr" <aleksandr.loktionov@intel.com>
Cc: "intel-wired-lan@lists.osuosl.org"
<intel-wired-lan@lists.osuosl.org>,
"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Wieczerzycka, Katarzyna" <katarzyna.wieczerzycka@intel.com>
Subject: Re: [PATCH] ice: add missing reset of the mac header
Date: Sat, 21 Mar 2026 09:14:40 +0000 [thread overview]
Message-ID: <20260321091440.GR74886@horms.kernel.org> (raw)
In-Reply-To: <IA3PR11MB8986779AEBF981B6AF66F3D8E54CA@IA3PR11MB8986.namprd11.prod.outlook.com>
On Fri, Mar 20, 2026 at 07:53:28PM +0000, Loktionov, Aleksandr wrote:
>
>
> > -----Original Message-----
> > From: Simon Horman <horms@kernel.org>
> > Sent: Friday, March 20, 2026 7:05 PM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Cc: intel-wired-lan@lists.osuosl.org; Nguyen, Anthony L
> > <anthony.l.nguyen@intel.com>; netdev@vger.kernel.org; Wieczerzycka,
> > Katarzyna <katarzyna.wieczerzycka@intel.com>
> > Subject: Re: [PATCH] ice: add missing reset of the mac header
> >
> > On Fri, Mar 20, 2026 at 06:05:18AM +0100, Aleksandr Loktionov wrote:
> > > From: Katarzyna Wieczerzycka <katarzyna.wieczerzycka@intel.com>
> > >
> > > By default skb->mac_header is not set, so reset prevents access to
> > an
> > > invalid pointer.
> > >
> > > Call skb_reset_mac_header() before accessing the mac header from
> > skb.
> > >
> > > Signed-off-by: Katarzyna Wieczerzycka
> > > <katarzyna.wieczerzycka@intel.com>
> > > Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> >
> > Hi Katarzyna and Aleksandr,
> >
> > I am curious:
> >
> > Is this a bug? If so then it should probably have a fixes tag and a
> > bit more of a description around how this can happen.
> >
> > If it is not a bug, then is this defensive? And if so, is it really
> > necessary?
> >
> > ...
>
>
> Good day, Simon
>
> I'm upstreaming Katarzyna's fix.
>
> From my point of view, it's not just defensive code, but real bug even on latest kernel because the gap is partially closed by packet_parse_headers(), but not completely.
> Sorry the patch header is malformed, I definitely need to add
> Fixes: f9f83202b726 ("ice: Allow all LLDP packets from PF to Tx")
Hi Aleksandr,
I can see you have been busy.
I agree adding a Fixes tag makes sense. If you could also expand the patch
description that would be well appreciated (at least by me).
> But not sure whether to send to net, because on modern kernels I have no real call traces only theoretical conclusion.
That is a line call in my opinion.
If you include a Fixes tag, which seems sensible, then the chances are the
patch will end up being backported to stable. And if the patch is in
net-next it might not have hit Linus's tree before that happens. Which
doesn't seem ideal. So I think it would be more sensible to target the
patch at net to avoid that problem. But that's just my feeling.
Either way, please consider adding a note regarding this.
So it will be more obvious.
next prev parent reply other threads:[~2026-03-21 9:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 5:05 [Intel-wired-lan] [PATCH] ice: add missing reset of the mac header Aleksandr Loktionov
2026-03-20 5:05 ` Aleksandr Loktionov
2026-03-20 18:04 ` [Intel-wired-lan] " Simon Horman
2026-03-20 18:04 ` Simon Horman
2026-03-20 19:53 ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-03-20 19:53 ` Loktionov, Aleksandr
2026-03-21 9:14 ` Simon Horman [this message]
2026-03-21 9:14 ` Simon Horman
2026-03-26 14:14 ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-03-26 14:14 ` Loktionov, Aleksandr
2026-03-24 18:02 ` [Intel-wired-lan] " Alexander Lobakin
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=20260321091440.GR74886@horms.kernel.org \
--to=horms@kernel.org \
--cc=aleksandr.loktionov@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=katarzyna.wieczerzycka@intel.com \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.