В ядре Linux устранена следующая уязвимость:
Ice: исправлена отслеживание вызовов PTP во время выпуска PTP. Если сброс PF происходит, когда состояние PTP равно ICE_PTP_UNINIT, то
Ice_ptp_rebuild() обновит состояние до ICE_PTP_ERROR. Это будет
в результате во время выгрузки драйвера будет получена следующая трассировка вызова выпуска PTP:
ОШИБКА ядра в lib/list_debug.c:52!
Ice_ptp_release+0x332/0x3c0 [лед]
Ice_deinit_features.part.0+0x10e/0x120 [лед]
Ice_remove+0x100/0x220 [лед]
Это наблюдалось при передаче PF1 на виртуальную машину. Ice_ptp_init()
завершается сбоем, поскольку ctrl_pf имеет значение NULL и устанавливает состояние ICE_PTP_UNINIT.
Исправьте это, определив состояние ICE_PTP_UNINIT в Ice_ptp_rebuild() и
возврат без ошибок, предотвращение перехода недопустимого состояния в
ICE_PTP_ERROR. Единственный действительный путь к ICE_PTP_ERROR — от
ICE_PTP_RESETTING после неудачной перестройки.
Показать оригинальное описание (EN)
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.