В ядре Linux устранена следующая уязвимость: irqchip/ast2700-intc: выделение Avoid в irq_domain activate() callback Ядро прерывания вызывает irq_domain_activate() callback из __setup_irq() с удержанием desc->lock и отключением прерываний. И aspeed_intc1_irq_domain_activate() и aspeed_intc0_resolve_route() тестируют совместимую строку с fwnode_device_is_compatible(). fwnode_device_is_compatible() вызывает fwnode_property_match_string(), который выделяется с GFP_KERNEL. Очевидно, что это невозможно с отключенными прерываниями и необработанным спинлоком.
Оба сайта вызова являются только когда-либо переданными узлами OF, поэтому вместо этого используйте of_device_is_compatible (): он перемещает свойство на месте и не выделяет.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: irqchip/ast2700-intc: Avoid allocating in the irq_domain activate() callback The interrupt core calls the irq_domain_activate() callback from __setup_irq() with desc->lock held and interrupts disabled. Both aspeed_intc1_irq_domain_activate() and aspeed_intc0_resolve_route() test a compatible string with fwnode_device_is_compatible(). fwnode_device_is_compatible() invokes fwnode_property_match_string(), which allocates with GFP_KERNEL. That's obviously not possible with interrupts disabled and a raw spinlock held. Both call sites are only ever handed OF nodes, so use of_device_is_compatible() instead: it walks the property in place and does not allocate.