Hello, kernel test robot noticed "BUG:kernel_NULL_pointer_dereference,address" on: commit: 5f632ae0439cdbfaaa26cc49f08680ad6e38846c ("PCI/MSI: Provide MSI_FLAG_PCI_MSI_MASK_PARENT") https://git.kernel.org/cgit/linux/kernel/git/anna-maria/linux-devel.git devmsi-arm in testcase: vm-scalability version: vm-scalability-x86_64-6f4ef16-0_20240303 with following parameters: runtime: 300 thp_enabled: always thp_defrag: always nr_task: 32 nr_ssd: 1 priority: 1 test: swap-w-seq-mt cpufreq_governor: performance compiler: gcc-13 test machine: 128 threads 2 sockets Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz (Ice Lake) with 128G memory (please refer to attached dmesg/kmsg for entire log/backtrace) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202406252154.e6678312-oliver.sang@xxxxxxxxx [ 12.206077][ T9] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 12.206995][ T9] #PF: supervisor instruction fetch in kernel mode [ 12.206995][ T9] #PF: error_code(0x0010) - not-present page [ 12.206995][ T9] PGD 0 [ 12.206995][ T9] Oops: Oops: 0010 [#1] SMP NOPTI [ 12.206995][ T9] CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted 6.10.0-rc3-00003-g5f632ae0439c #1 [ 12.206995][ T9] Hardware name: Intel Corporation M50CYP2SB1U/M50CYP2SB1U, BIOS SE5C620.86B.01.01.0003.2104260124 04/26/2021 [ 12.206995][ T9] Workqueue: events work_for_cpu_fn [ 12.206995][ T9] RIP: 0010:0x0 [ 12.206995][ T9] Code: Unable to access opcode bytes at 0xffffffffffffffd6. Code starting with the faulting instruction =========================================== [ 12.206995][ T9] RSP: 0000:ffa0000000173b20 EFLAGS: 00010002 [ 12.206995][ T9] RAX: 0000000000000000 RBX: ff1100010608da00 RCX: 0000000000000002 [ 12.206995][ T9] RDX: ff1100010608fc30 RSI: 0000000000000080 RDI: ff11000104e0f680 [ 12.206995][ T9] RBP: ff11000104edbb00 R08: 0000000000000002 R09: ffa0000000173a54 [ 12.206995][ T9] R10: 0000000000000000 R11: ffffffff82031850 R12: 0000000000000000 [ 12.206995][ T9] R13: ff11000104e1a300 R14: ff1100010608db60 R15: ff1100010608daa4 [ 12.206995][ T9] FS: 0000000000000000(0000) GS:ff1100103e200000(0000) knlGS:0000000000000000 [ 12.206995][ T9] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 12.206995][ T9] CR2: ffffffffffffffd6 CR3: 000000207de1c001 CR4: 0000000000771ef0 [ 12.206995][ T9] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 12.206995][ T9] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 12.206995][ T9] PKRU: 55555554 [ 12.206995][ T9] Call Trace: [ 12.206995][ T9] <TASK> [ 12.206995][ T9] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434) [ 12.206995][ T9] ? page_fault_oops (arch/x86/mm/fault.c:715) [ 12.206995][ T9] ? exc_page_fault (arch/x86/include/asm/irqflags.h:37 arch/x86/include/asm/irqflags.h:72 arch/x86/mm/fault.c:1489 arch/x86/mm/fault.c:1539) [ 12.206995][ T9] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:623) [ 12.206995][ T9] ? __pfx_pci_conf1_read (arch/x86/pci/direct.c:23) [ 12.206995][ T9] pci_irq_unmask_msi (drivers/pci/msi/irqdomain.c:164 drivers/pci/msi/irqdomain.c:179) [ 12.206995][ T9] irq_enable (kernel/irq/chip.c:438 kernel/irq/chip.c:432 kernel/irq/chip.c:345) [ 12.206995][ T9] __irq_startup (kernel/irq/internals.h:241 kernel/irq/chip.c:180 kernel/irq/chip.c:250) [ 12.206995][ T9] irq_startup (kernel/irq/chip.c:269) [ 12.206995][ T9] __setup_irq (kernel/irq/manage.c:1810) [ 12.206995][ T9] request_threaded_irq (kernel/irq/manage.c:2211) [ 12.206995][ T9] pcie_pme_probe (include/linux/interrupt.h:171 drivers/pci/pcie/pme.c:350) [ 12.206995][ T9] pcie_port_probe_service (drivers/pci/pcie/portdrv.c:529) [ 12.206995][ T9] really_probe (drivers/base/dd.c:578 drivers/base/dd.c:656) [ 12.206995][ T9] ? __pfx___device_attach_driver (drivers/base/dd.c:920) [ 12.206995][ T9] __driver_probe_device (drivers/base/dd.c:798) [ 12.206995][ T9] driver_probe_device (drivers/base/dd.c:828) [ 12.206995][ T9] __device_attach_driver (drivers/base/dd.c:957) [ 12.206995][ T9] bus_for_each_drv (drivers/base/bus.c:457) [ 12.206995][ T9] __device_attach (drivers/base/dd.c:1028) [ 12.206995][ T9] bus_probe_device (drivers/base/bus.c:532) [ 12.206995][ T9] device_add (drivers/base/core.c:3728) [ 12.206995][ T9] pcie_portdrv_probe (drivers/pci/pcie/portdrv.c:311 drivers/pci/pcie/portdrv.c:364 drivers/pci/pcie/portdrv.c:696) [ 12.206995][ T9] local_pci_probe (drivers/pci/pci-driver.c:324) [ 12.206995][ T9] work_for_cpu_fn (kernel/workqueue.c:6670) [ 12.206995][ T9] process_one_work (kernel/workqueue.c:3231) [ 12.206995][ T9] worker_thread (kernel/workqueue.c:3306 (discriminator 2) kernel/workqueue.c:3393 (discriminator 2)) [ 12.206995][ T9] ? __pfx_worker_thread (kernel/workqueue.c:3339) [ 12.206995][ T9] ? __pfx_worker_thread (kernel/workqueue.c:3339) [ 12.206995][ T9] kthread (kernel/kthread.c:389) [ 12.206995][ T9] ? __pfx_kthread (kernel/kthread.c:342) [ 12.206995][ T9] ret_from_fork (arch/x86/kernel/process.c:147) [ 12.206995][ T9] ? __pfx_kthread (kernel/kthread.c:342) [ 12.206995][ T9] ret_from_fork_asm (arch/x86/entry/entry_64.S:257) [ 12.206995][ T9] </TASK> [ 12.206995][ T9] Modules linked in: [ 12.206995][ T9] CR2: 0000000000000000 [ 12.206995][ T9] ---[ end trace 0000000000000000 ]--- [ 12.206995][ T9] RIP: 0010:0x0 [ 12.206995][ T9] Code: Unable to access opcode bytes at 0xffffffffffffffd6. Code starting with the faulting instruction =========================================== The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20240625/202406252154.e6678312-oliver.sang@xxxxxxxxx -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki