summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/x86/processor.c
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2025-10-10 12:03:07 +0000
committerMadhavan Srinivasan <maddy@linux.ibm.com>2025-10-13 09:39:02 +0530
commitef3e73a917ec7d080e0fb0e4015098a4fb0f1cff (patch)
tree44d3b06abe73d03fdd13f22c3abbc8c961488466 /tools/testing/selftests/kvm/lib/x86/processor.c
parent3a8660878839faadb4f1a6dd72c3179c1df56787 (diff)
powerpc/pseries/msi: Fix NULL pointer dereference at irq domain teardown
pseries_msi_ops_teardown() reads pci_dev* from msi_alloc_info_t. However, pseries_msi_ops_prepare() does not populate this structure, thus it is all zeros. Consequently, pseries_msi_ops_teardown() triggers a NULL pointer dereference crash. struct pci_dev is available in struct irq_domain. Read it there instead. Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Closes: https://lore.kernel.org/linuxppc-dev/878d7651-433a-46fe-a28b-1b7e893fcbe0@linux.ibm.com/ Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20251010120307.3281720-1-namcao@linutronix.de
Diffstat (limited to 'tools/testing/selftests/kvm/lib/x86/processor.c')
0 files changed, 0 insertions, 0 deletions