]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i40e: Fix filter input checks to prevent config with invalid values
authorSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Wed, 29 Nov 2023 10:23:11 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2024 17:51:10 +0000 (18:51 +0100)
commitb17f8024a5f07a386bbaf5bd9d96b7dd0a942eb9
treefbd5c20dfa6e69cf58ac8fa6eb091a885043184e
parentdef90597ef5b057f997acbd1e0b6d73b908b08d2
i40e: Fix filter input checks to prevent config with invalid values

[ Upstream commit 3e48041d9820c17e0a51599d12e66c6e12a8d08d ]

Prevent VF from configuring filters with unsupported actions or use
REDIRECT action with invalid tc number. Current checks could cause
out of bounds access on PF side.

Fixes: e284fc280473 ("i40e: Add and delete cloud filter")
Reviewed-by: Andrii Staikov <andrii.staikov@intel.com>
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c