> -----Original Message----- > From: Rinitha, SX <sx.rini...@intel.com> > Sent: Friday, March 21, 2025 5:47 AM > To: Kyungwook Boo <bookyungw...@gmail.com>; Loktionov, Aleksandr > <aleksandr.loktio...@intel.com>; Kitszel, Przemyslaw > <przemyslaw.kits...@intel.com>; Nguyen, Anthony L > <anthony.l.ngu...@intel.com> > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org > Subject: RE: [Intel-wired-lan] [PATCH iwl-next v2] i40e: fix MMIO write access > to an invalid page in i40e_clear_hw > > > -----Original Message----- > > From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of > Kyungwook Boo > > Sent: 11 March 2025 10:46 > > To: Loktionov, Aleksandr <aleksandr.loktio...@intel.com>; Kitszel, > Przemyslaw <przemyslaw.kits...@intel.com>; Nguyen, Anthony L > <anthony.l.ngu...@intel.com> > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org > > Subject: [Intel-wired-lan] [PATCH iwl-next v2] i40e: fix MMIO write access > > to > an invalid page in i40e_clear_hw > > > > When the device sends a specific input, an integer underflow can occur, > leading to MMIO write access to an invalid page. > > > > Prevent the integer underflow by changing the type of related variables. > > > > Signed-off-by: Kyungwook Boo <bookyungw...@gmail.com> > > Link: https://lore.kernel.org/lkml/ffc91764-1142-4ba2-91b6- > 8c773f6f7...@gmail.com/T/ Reviewed-by: Aleksandr Loktionov <aleksandr.loktio...@intel.com>
> > --- > > Changes in v2: > > - Formatting properly > > - Fix variable shadowing > > - Link to v1: https://lore.kernel.org/netdev/55acc5dc-8d5a-45bc-a59c- > 9304071e4...@gmail.com/ > > --- > > drivers/net/ethernet/intel/i40e/i40e_common.c | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > Tested-by: Rinitha S <sx.rini...@intel.com> (A Contingent worker at Intel)