Re: [PATCH v7 04/14] PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers

From: Claudiu Beznea

Date: Thu Nov 26 2026 - 12:12:23 EST




On 11/25/26 18:44, Manivannan Sadhasivam wrote:
On 2026-10-19 09:50 +0300, Claudiu Beznea wrote:
From: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>

rzg3s_pcie_init_irqdomain() installs the chained INTx handlers before
creating the INTx IRQ domain. irq_set_chained_handler_and_data() also
enables the interrupt, so an INTx interrupt arriving in between is
handled by rzg3s_pcie_intx_irq_handler() while host->intx_domain is
still NULL, leading to a NULL pointer dereference.


Did you observe the NULL ptr dereference on the device or just figuring it out
from the code? If you have seen it, please include the log, otherwise just state
it that it could be possible.
I haven't reproduce it. Will mention it in the patch description.

Thank you for your review,
Claudiu