[Intel-wired-lan] [PATCH iwl-net v2 2/2] ice: fix stats array overflow via proper realloc

Romanowski, Rafal rafal.romanowski at intel.com
Fri Jul 31 09:14:13 UTC 2026


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Simon
> Horman
> Sent: Monday, July 13, 2026 4:04 PM
> To: Kitszel, Przemyslaw <przemyslaw.kitszel at intel.com>
> Cc: Kwapulinski, Piotr <piotr.kwapulinski at intel.com>; Paolo Abeni
> <pabeni at redhat.com>; netdev at vger.kernel.org; Jagielski, Jedrzej
> <jedrzej.jagielski at intel.com>; Loktionov, Aleksandr
> <aleksandr.loktionov at intel.com>; Andrew Lunn <andrew+netdev at lunn.ch>; Eric
> Dumazet <edumazet at google.com>; Marcin Szycik
> <marcin.szycik at linux.intel.com>; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; Jakub Kicinski <kuba at kernel.org>; intel-wired-
> lan at lists.osuosl.org; David S. Miller <davem at davemloft.net>
> Subject: Re: [Intel-wired-lan] [PATCH iwl-net v2 2/2] ice: fix stats array overflow
> via proper realloc
> 
> On Tue, Jul 07, 2026 at 12:43:31AM +0200, Przemek Kitszel wrote:
> > Integrate ice_vsi_alloc_stat_arrays() with realloc variant.
> >
> > Instead of keeping two functions for stat arrays allocation, change
> > the
> > ice_vsi_realloc_stat_arrays() to handle initial condition (no vsi_stat
> > entry) and replace ice_vsi_alloc_stat_arrays() by the more generic
> > ice_vsi_realloc_stat_arrays().
> >
> > Note that VSIs of ICE_VSI_CHNL type are ignored in realloc variant as
> > they were in the replaced ice_vsi_alloc_stat_arrays().
> >
> > This is a fix for stats array overflow that occurs when VF is given
> > more queues (an operation that will be more frequent, and by bigger
> > increase, when we will merge my "XLVF" series).
> >
> > Splat for increasing number of queues thanks to Michal Schmidt:
> > KASAN detects the bug:
> 
> ...
> 
> > Fixes: 2a2cb4c6c181 ("ice: replace ice_vf_recreate_vsi() with
> > ice_vf_reconfig_vsi()")
> > Closes: https://redhat.atlassian.net/browse/RHEL-164321
> > Reviewed-by: Marcin Szycik <marcin.szycik at linux.intel.com>
> > Signed-off-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>
> > ---
> > This is an alternative to the fix [1] by Michal Schmidt, which were
> > blocked due to AI feedback. My fix was already developed before
> > Michal's, just not public back then. We have agreed to go on with my version.
> >
> > [1]
> > https://lore.kernel.org/netdev/20260520183501.3360810-3-anthony.l.nguy
> > en at intel.com
> 
> Reviewed-by: Simon Horman <horms at kernel.org>
> 
> ...

Tested-by: Rafal Romanowski <rafal.romanowski at intel.com>



More information about the Intel-wired-lan mailing list