]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i40e: fix MMIO write access to an invalid page in i40e_clear_hw
authorKyungwook Boo <bookyungwook@gmail.com>
Tue, 11 Mar 2025 05:16:02 +0000 (14:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:33 +0000 (11:05 +0100)
commitfecb2fc3fc10c95724407cc45ea35af4a65cdde2
treee0d22f7daf850b8edb2709f715d05e9b45afde9f
parentcafc3c567e4e384830270f9ad859d592e69b7bec
i40e: fix MMIO write access to an invalid page in i40e_clear_hw

[ Upstream commit 015bac5daca978448f2671478c553ce1f300c21e ]

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 <bookyungwook@gmail.com>
Link: https://lore.kernel.org/lkml/ffc91764-1142-4ba2-91b6-8c773f6f7095@gmail.com/T/
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_common.c