From: "Singh, Ayush1X" <ayush1x.singh@intel.com>
To: Aaron Ma <aaron.ma@canonical.com>,
"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
"Kitszel, Przemyslaw" <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Henry Tieman <henry.w.tieman@intel.com>,
"moderated list:INTEL ETHERNET DRIVERS"
<intel-wired-lan@lists.osuosl.org>
Subject: RE: [PATCH v2 2/2] ice: clear Flow Director entries before reset cleanup
Date: Wed, 14 Oct 2026 10:27:48 +0000 [thread overview]
Message-ID: <BY5PR11MB39764768CBA4F6512AB6E11FA59D2@BY5PR11MB3976.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260907115221.926007-2-aaron.ma@canonical.com>
> -----Original Message-----
> From: Aaron Ma <aaron.ma@canonical.com>
> Sent: 07 September 2026 17:22
> To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Andrew Lunn <andrew+netdev@lunn.ch>; David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> Cc: Henry Tieman <henry.w.tieman@intel.com>; moderated list:INTEL ETHERNET DRIVERS <intel-wired-lan@lists.osuosl.org>
> Subject: [PATCH v2 2/2] ice: clear Flow Director entries before reset cleanup
>
> Flow Director profiles retain handles to generic flow entries. Reset calls
> ice_clear_hw_tbls() to free those entries, but leaves the Flow Director handles unchanged until replay replaces them.
>
> If rebuild fails before replay completes, later driver removal follows a stale handle and dereferences a freed flow entry in ice_flow_rem_entry().
KASAN reports a wild access to list poison from ice_fdir_erase_flow_from_hw().
>
> The failure is reported as:
>
> KASAN: maybe wild-memory-access in range [0xdead000000000108-...]
> RIP: ice_flow_rem_entry+0xaf/0x170 [ice]
> ice_fdir_erase_flow_from_hw+0x1ee/0x420 [ice]
>
> Clear the Flow Director handles while holding hw->fdir_fltr_lock before the hardware tables free their entries. A successful replay installs new handles, while a failed rebuild leaves them invalid for later cleanup.
>
> Fixes: 148beb612031 ("ice: Initialize Flow Director resources")
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
> ---
> v1 -> v2:
> - Acquire hw->fdir_fltr_lock in ice_fdir_clear_flow_handles() to
> synchronize with concurrent ethtool filter add/del.
>
> drivers/net/ethernet/intel/ice/ice.h | 1 +
> .../net/ethernet/intel/ice/ice_ethtool_fdir.c | 26 +++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_main.c | 2 ++
> 3 files changed, 29 insertions(+)
>
Tested-by: Ayush Singh < ayush1x.singh@intel.com > (A Contingent worker at Intel)
next prev parent reply other threads:[~2026-10-14 10:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 11:52 [PATCH v2 1/2] ice: restore DDP state during PFR recovery Aaron Ma
2026-09-07 11:52 ` [PATCH v2 2/2] ice: clear Flow Director entries before reset cleanup Aaron Ma
2026-09-08 13:13 ` Loktionov, Aleksandr
2026-09-08 18:32 ` Simon Horman
2026-10-14 10:27 ` Singh, Ayush1X [this message]
2026-09-08 14:38 ` [PATCH v2 1/2] ice: restore DDP state during PFR recovery Loktionov, Aleksandr
2026-09-08 18:31 ` Simon Horman
2026-10-14 9:35 ` Singh, Ayush1X
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=BY5PR11MB39764768CBA4F6512AB6E11FA59D2@BY5PR11MB3976.namprd11.prod.outlook.com \
--to=ayush1x.singh@intel.com \
--cc=aaron.ma@canonical.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=henry.w.tieman@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/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
all inboxes | Powered by JetHome®