В ядре Linux устранена следующая уязвимость:
tpm: tpm_tis_spi: используйте wait_woken() в wait_for_tmp_stat()
wait_event_interruptible_timeout() оценивает свое состояние после установки
текущее состояние задачи — TASK_INTERRUPTIBLE. С CONFIG_DEBUG_ATOMIC_SLEEP это вызывает предупреждение, когда ожидание IRQ
используется путь:
tpm_tis_status()
tpm_tis_spi_read_bytes()
tpm_tis_spi_transfer_full()
spi_bus_lock()
mutex_lock()
Решите эту проблему с помощью следующих мер:
1. Вызывайте wait_tpm_stat_cond() только во время выполнения задач.
2.
Используйте wait_woken(), чтобы дождаться изменений.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tpm: tpm_tis_spi: Use wait_woken() in wait_for_tmp_stat() wait_event_interruptible_timeout() evaluates its condition after setting the current task state to TASK_INTERRUPTIBLE. With CONFIG_DEBUG_ATOMIC_SLEEP this triggers a warning when the IRQ wait path is used: tpm_tis_status() tpm_tis_spi_read_bytes() tpm_tis_spi_transfer_full() spi_bus_lock() mutex_lock() Address this with the following measures: 1. Call wait_tpm_stat_cond() only while tasking is running. 2. Use wait_woken() to wait for changes.