Commit 0004307
committed
i40e: fix validation of VF state in get resources
jira KERNEL-238
cve CVE-2025-39969
Rebuild_History Non-Buildable kernel-6.12.0-124.16.1.el10_1
commit-author Lukasz Czapnik <lukasz.czapnik@intel.com>
commit 877b7e6
VF state I40E_VF_STATE_ACTIVE is not the only state in which
VF is actually active so it should not be used to determine
if a VF is allowed to obtain resources.
Use I40E_VF_STATE_RESOURCES_LOADED that is set only in
i40e_vc_get_vf_resources_msg() and cleared during reset.
Fixes: 61125b8 ("i40e: Fix failed opcode appearing if handling messages from VF")
Cc: stable@vger.kernel.org
Signed-off-by: Lukasz Czapnik <lukasz.czapnik@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
(cherry picked from commit 877b7e6)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 3be9d9e commit 0004307
File tree
2 files changed
+8
-2
lines changed- drivers/net/ethernet/intel/i40e
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
| 1470 | + | |
1470 | 1471 | | |
1471 | 1472 | | |
1472 | 1473 | | |
| |||
2133 | 2134 | | |
2134 | 2135 | | |
2135 | 2136 | | |
2136 | | - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2137 | 2141 | | |
2138 | 2142 | | |
2139 | 2143 | | |
| |||
2236 | 2240 | | |
2237 | 2241 | | |
2238 | 2242 | | |
| 2243 | + | |
2239 | 2244 | | |
2240 | 2245 | | |
2241 | 2246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments