Thread (2 messages) flat view 2 messages, 2 authors, 2025-10-18

Re: [PATCH] powerpc/pseries/msi: Fix NULL pointer dereference at irq domain teardown

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2025-10-18 05:34:15
Also in: lkml

On Fri, 10 Oct 2025 12:03:07 +0000, Nam Cao wrote:
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.

[...]
Applied to powerpc/fixes.

[1/1] powerpc/pseries/msi: Fix NULL pointer dereference at irq domain teardown
      https://git.kernel.org/powerpc/c/ef3e73a917ec7d080e0fb0e4015098a4fb0f1cff

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help