i40e: Fix call trace in setup_tx_descriptors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e17bc411aea8fbebc51857037f104ab09f765120 · < 322271351b0e41565171e4cce70ea41854fac115| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i40e: Fix call trace in setup_tx_descriptors
After PF reset and ethtool -t there was call trace in dmesg sometimes leading to panic. When there was some time, around 5 seconds, between reset and test there were no errors.
Problem was that pf reset calls i40e_vsi_close in prep_for_reset and ethtool -t calls i40e_vsi_close in diag_test. If there was not enough time between those commands the second i40e_vsi_close starts before previous i40e_vsi_close was done which leads to crash.
Add check to diag_test if pf is in reset and don't start offline tests if it is true. Add netif_info("testing failed") into unhappy path of i40e_diag_test()
From the CVE record · Linux
The Linux kernel’s i40e driver can produce a call trace and sometimes panic when an ethtool offline test runs shortly after a PF reset. The test can start a second close operation before the first finishes. Triggering this requires running the reset and test commands in quick succession; the input does not specify authentication requirements.
Engineers running Linux kernels with the i40e driver should check whether their kernel includes the fix; affected versions are not specified.