Re: next-20250324: x86_64: BUG: kernel NULL pointer dereference __pci_enable_msi_range
From: Roger Pau Monné
Date: Thu Mar 27 2025 - 07:01:44 EST
On Thu, Mar 27, 2025 at 02:10:21PM +0530, Naresh Kamboju wrote:
> 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
>
Hello,
The fix has already been committed to Linux master, commit hash
3ece3e8e5976c49c3f887e5923f998eabd54ff40.
Regards, Roger.