В ядре Linux устранена следующая уязвимость:
s390/vfio_ccw: выборочное расширение io_mutex
io_mutex был определен для сериализации io_regions, но затем
также как бы ассоциировался с самим вводом/выводом из-за
близкие отношения, которые они разделяют.
Учитывая несколько возможных рас, можно выбрать одно из следующих:
А) расширить область действия io_mutex, чтобы закрыть оставшиеся окна, или
Б) сократить область действия io_mutex до io_region и ввести новый
механизм блокировки оставшихся ресурсов ввода-вывода
Этот патч реализует A, поскольку B приносит с собой гораздо больше взаимодействий.
это необходимо будет отслеживать и хранить в правильной иерархии. Это также
использует элемент рабочей очереди для cp_free(), который теперь получает
вызывается из fsm_notoper(), который может быть вызван из прерывания
контекст и, следовательно, не может получить сам мьютекс.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: s390/vfio_ccw: Selectively expand io_mutex The io_mutex was defined to serialize the io_regions, but then has also sort of been associated with the I/O themselves because of the close relationship they share. With the handful of races that are possible, the choices are either to: A) expand the scope of io_mutex to close these remaining windows, or B) reduce the scope of io_mutex to just io_region, and introduce a new lock mechanism for the remaining I/O resources This patch implements A, since B brings with it a lot more interactions that would need to be tracked and kept in a correct hierarchy. It also takes advantage of the workqueue element for cp_free() that now gets called out of fsm_notoper(), which could be invoked out of an interrupt context and thus cannot acquire a mutex itself.
Характеристики атаки
Последствия
Строка CVSS v3.1