В ядре Linux устранена следующая уязвимость:
PCI: rcar-host: передать правильный домен IRQ в функцию generic_handle_domain_irq().
Начинаем с фиксации dd26c1a23fd5 («PCI: rcar-host: переключиться на
msi_create_parent_irq_domain()"), родительский домен IRQ MSI имеет значение NULL, поскольку
объект типа struct irq_domain_info передается:
msi_create_parent_irq_domain() ->
irq_domain_instantiate()() ->
__irq_domain_instantiate()
не имеет ссылки на родительский домен IRQ. Использование msi->domain->parent в качестве
аргумент для generic_handle_domain_irq() приводит к ошибке ниже:
«Невозможно обработать разыменование нулевого указателя ядра по виртуальному адресу»
Эта ошибка была обнаружена при переключении будущего хоста RZ/G3S PCIe.
драйвер контроллера для msi_create_parent_irq_domain() (который использовал
аналогичный шаблон для обработки MSI (см. раздел ссылок)), но он не тестировался
на оборудовании с использованием драйвера контроллера pcie-rcar-host из-за отсутствия
аппаратное обеспечение.
[мани: изменена тема и описание]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq() Starting with commit dd26c1a23fd5 ("PCI: rcar-host: Switch to msi_create_parent_irq_domain()"), the MSI parent IRQ domain is NULL because the object of type struct irq_domain_info passed to: msi_create_parent_irq_domain() -> irq_domain_instantiate()() -> __irq_domain_instantiate() has no reference to the parent IRQ domain. Using msi->domain->parent as an argument for generic_handle_domain_irq() leads to below error: "Unable to handle kernel NULL pointer dereference at virtual address" This error was identified while switching the upcoming RZ/G3S PCIe host controller driver to msi_create_parent_irq_domain() (which was using a similar pattern to handle MSIs (see link section)), but it was not tested on hardware using the pcie-rcar-host controller driver due to lack of hardware. [mani: reworded subject and description]