net: hns3: fix a deadlock problem when config TC during resetting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bb6b94a896d4dd4dcdeccca87c3fd22521c652c0 · < de37408d5c26fc4a296a28a0c96dcb814219bfa1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: fix a deadlock problem when config TC during resetting
When config TC during the reset process, may cause a deadlock, the flow is as below: pf reset start │ ▼ ...... setup tc │ │ ▼ ▼ DOWN: napi_disable() napi_disable()(skip) │ │ │ ▼ ▼ ...... ...... │ │ ▼ │ napi_enable() │ ▼ UINIT: netif_napi_del() │ ▼ ...... │ ▼ INIT: netif_napi_add() │ ▼ ...... global reset start │ │ ▼ ▼ UP: napi_enable()(skip) ...... │ │ ▼ ▼ ...... napi_disable()
In reset process, the driver will DOWN the port and then UINIT, in this case, the setup tc process will UP the port before UINIT, so cause the problem. Adds a DOWN process in UINIT to fix it.
From the CVE record · Linux
The Linux kernel's hns3 network driver can deadlock if traffic control (TC) is configured while the driver is resetting. This can disrupt the affected system; the input does not specify an attacker access requirement or whether user interaction is needed.
Operators running Linux kernels with the hns3 network driver should check their kernel version; affected versions are not specified.