В ядре Linux устранена следующая уязвимость:
net: enetc: исправить взаимоблокировку enetc_mdio_lock
После применения обходного пути для ошибки err050089 платформа LS1028A
возникают зависания RCU на ядре RT. Эта проблема вызвана
рекурсивное получение блокировки чтения enetc_mdio_lock. Вот список некоторых
стеков вызовов, определенных по пути enetc_poll, что может привести к
тупик:
enetc_poll
-> enetc_lock_mdio
-> enetc_clean_rx_ring ИЛИ napi_complete_done
-> napi_gro_receive
-> enetc_start_xmit
-> enetc_lock_mdio
-> enetc_map_tx_buffs
-> enetc_unlock_mdio
-> enetc_unlock_mdio
После того, как enetc_poll получит блокировку чтения, модуль записи с более высоким приоритетом попытается
чтобы получить блокировку, вызывая упреждение.
Писатель обнаруживает, что
Блокировка чтения уже удержана и запланирована. Однако читатели под
enetc_poll не может снова получить блокировку чтения, поскольку писатель уже
ожидание, что приводит к зависанию потока. В настоящее время взаимоблокировки можно избежать путем настройки enec_lock_mdio, чтобы предотвратить
получение рекурсивной блокировки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: enetc: fix the deadlock of enetc_mdio_lock After applying the workaround for err050089, the LS1028A platform experiences RCU stalls on RT kernel. This issue is caused by the recursive acquisition of the read lock enetc_mdio_lock. Here list some of the call stacks identified under the enetc_poll path that may lead to a deadlock: enetc_poll -> enetc_lock_mdio -> enetc_clean_rx_ring OR napi_complete_done -> napi_gro_receive -> enetc_start_xmit -> enetc_lock_mdio -> enetc_map_tx_buffs -> enetc_unlock_mdio -> enetc_unlock_mdio After enetc_poll acquires the read lock, a higher-priority writer attempts to acquire the lock, causing preemption. The writer detects that a read lock is already held and is scheduled out. However, readers under enetc_poll cannot acquire the read lock again because a writer is already waiting, leading to a thread hang. Currently, the deadlock is avoided by adjusting enetc_lock_mdio to prevent recursive lock acquisition.
Характеристики атаки
Последствия
Строка CVSS v3.1