From: Greg Kroah-Hartman Date: Mon, 13 Jul 2026 13:20:22 +0000 (+0200) Subject: 5.10-stable patches X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a427acfee5a0822aae7ef1314f284c9ab915eb2b;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: pci-altera-do-not-dispose-parent-irq-mapping.patch --- diff --git a/queue-5.10/pci-altera-do-not-dispose-parent-irq-mapping.patch b/queue-5.10/pci-altera-do-not-dispose-parent-irq-mapping.patch new file mode 100644 index 0000000000..16651ff3e0 --- /dev/null +++ b/queue-5.10/pci-altera-do-not-dispose-parent-irq-mapping.patch @@ -0,0 +1,46 @@ +From 5ef4bac02189bee0b7c170e352d7a38e13fe9678 Mon Sep 17 00:00:00 2001 +From: Mahesh Vaidya +Date: Thu, 30 Apr 2026 13:43:29 -0700 +Subject: PCI: altera: Do not dispose parent IRQ mapping + +From: Mahesh Vaidya + +commit 5ef4bac02189bee0b7c170e352d7a38e13fe9678 upstream. + +altera_pcie_irq_teardown() calls irq_dispose_mapping() on pcie->irq. +However, pcie->irq is the parent IRQ returned by platform_get_irq(), not +the mapping created by Altera INTx irq_domain. + +The Altera driver only sets the chained handler on the parent IRQ. It +should detach that handler during teardown, but it should not dispose the +parent IRQ mapping, which belongs to the parent interrupt controller's +irq_domain. + +Drop irq_dispose_mapping(pcie->irq) from the teardown path. + +Note that during irqchip remove(), the child IRQs should've disposed. But +since the chained handler itself is removed, there is no way the stale +child IRQs (if exists) could fire. So it is safe here. + +Fixes: ec15c4d0d5d2 ("PCI: altera: Allow building as module") +Signed-off-by: Mahesh Vaidya +[mani: added a note about IRQ disposal] +Signed-off-by: Manivannan Sadhasivam +Reviewed-by: Subhransu S. Prusty +Cc: stable@vger.kernel.org +Link: https://patch.msgid.link/20260430204330.3121003-2-mahesh.vaidya@altera.com +Signed-off-by: Greg Kroah-Hartman +--- + drivers/pci/controller/pcie-altera.c | 1 - + 1 file changed, 1 deletion(-) + +--- a/drivers/pci/controller/pcie-altera.c ++++ b/drivers/pci/controller/pcie-altera.c +@@ -689,7 +689,6 @@ static void altera_pcie_irq_teardown(str + { + irq_set_chained_handler_and_data(pcie->irq, NULL, NULL); + irq_domain_remove(pcie->irq_domain); +- irq_dispose_mapping(pcie->irq); + } + + static int altera_pcie_parse_dt(struct altera_pcie *pcie) diff --git a/queue-5.10/series b/queue-5.10/series index 9791717b11..a0e287305e 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -61,3 +61,4 @@ bluetooth-btusb-add-usb-id-2c4e-0128-for-mercusys-ma60xnb.patch bluetooth-btusb-fix-use-after-free-on-registration-failure.patch binder-fix-uaf-in-binder_thread_release.patch usb-xhci-fix-sleep-in-atomic-context-in-xhci_free_streams.patch +pci-altera-do-not-dispose-parent-irq-mapping.patch