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

From: Naresh Kamboju
Date: Thu Mar 27 2025 - 04:41:12 EST


On Tue, 25 Mar 2025 at 20:23, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
>
> 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:

Thanks Roger for the clarification.
LKFT started noticing this issue on the Linus Torvalds master branch from
March 26, 2025 at git describe: v6.14-1979-g61af143fbea4

Anders bisected and confirmed that,
# first bad commit:
[c3164d2e0d181027da8fc94f8179d8607c3d440f]
PCI/MSI: Convert pci_msi_ignore_mask to per MSI domain flag

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

Lore report link,
- https://lore.kernel.org/all/CA+G9fYs4-4y=edxddERXQ_fMsW_nUJU+V0bSMHFDL3St7NiLxQ@xxxxxxxxxxxxxx/

>
> Regards, Roger.