Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: ice: fix PTP Call Trace during PTP release If a PF reset occurs when the PTP state is ICE_PTP_UNINIT, then ice_ptp_rebuild() will update the state to ICE_PTP_ERROR. This will result in the following PTP release call trace during driver unload: kernel BUG at lib/list_debug.c:52! ice_ptp_release+0x332/0x3c0 [ice] ice_deinit_features.part.0+0x10e/0x120 [ice] ice_remove+0x100/0x220 [ice] This was observed when passing PF1 through to a VM. ice_ptp_init() fails because ctrl_pf is NULL and sets the state to ICE_PTP_UNINIT. Fix by detecting the ICE_PTP_UNINIT state in ice_ptp_rebuild() and returning without error, preventing the invalid state transition to ICE_PTP_ERROR. The only valid path to ICE_PTP_ERROR is from ICE_PTP_RESETTING after a failed rebuild.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 8293e4cb2ff54b1ec4f7206dcb74c908f62a3fb8 before 7d517b255f669cedd09830214d55f2f413b34481; affected 8293e4cb2ff54b1ec4f7206dcb74c908f62a3fb8 before e4406cbdd915f702d2ed9ee8b30683a16b06c6ac; affected 8293e4cb2ff54b1ec4f7206dcb74c908f62a3fb8 before 14fceda28069fdbe1bb49cdb6e1774892b583348; affected 8293e4cb2ff54b1ec4f7206dcb74c908f62a3fb8 before f6a7e00b81e35ef1325234925f2fe1e53b466f92 |
| Linux / Linux | affected 6.9; unaffected 0 before 6.9; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.