Re: next-20250324: x86_64: BUG: kernel NULL pointer dereference __pci_enable_msi_range

From: Roger Pau Monné
Date: Tue Mar 25 2025 - 10:53:55 EST


On Tue, Mar 25, 2025 at 04:56:33PM +0300, Dan Carpenter wrote:
> If I had to guess, I'd say that it was related to Fixes: d9f2164238d8
> ("PCI/MSI: Convert pci_msi_ignore_mask to per MSI domain flag"). I
> suspect d->host_data can be NULL. I could be wrong, but let's add Roger
> to the CC list just in case.

Indeed, sorry. There's a patch from Thomas to switch to using
pci_msi_domain_supports() for fetching the flag, as there's no
guarantee all call contexts will have an associated msi_domain_info:

https://lore.kernel.org/xen-devel/87v7rxzct0.ffs@tglx/

Regards, Roger.