From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Imre Kaloz <kaloz@kernel.org>
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] MIPS: Octeon: don't mark octeon_pci_pcibios_map_irq() __init
Date: Sat, 5 Dec 2026 10:37:08 +0100 [thread overview]
Message-ID: <axPbRE9UL2ESO0wq@alpha.franken.de> (raw)
In-Reply-To: <20261203101914.4558-1-kaloz@kernel.org>
On Thu, Dec 03, 2026 at 11:19:14AM +0100, Imre Kaloz wrote:
> The function is called through pcibios_map_irq(), the host bridge
> map_irq hook, from pci_assign_irq() when a driver binds to a device.
> A PCI driver that probes after init memory is freed, such as a module,
> jumps into freed memory and crashes.
>
> Commit 19a8d6b7604d ("MIPS: PCI: Move map_irq() hooks out of initdata")
> removed __init from pcibios_map_irq() and octeon_pcie_pcibios_map_irq()
> for the same reason, but not from this function.
>
> Fixes: 04c81c7293df ("MIPS: PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks")
> Cc: stable@vger.kernel.org
> Signed-off-by: Imre Kaloz <kaloz@kernel.org>
> ---
> arch/mips/pci/pci-octeon.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/pci/pci-octeon.c b/arch/mips/pci/pci-octeon.c
> index 36d12cea3512..9f117c63b608 100644
> --- a/arch/mips/pci/pci-octeon.c
> +++ b/arch/mips/pci/pci-octeon.c
> @@ -231,8 +231,8 @@ const char *octeon_get_pci_interrupts(void)
> * as it goes through each bridge.
> * Returns Interrupt number for the device
> */
> -int __init octeon_pci_pcibios_map_irq(const struct pci_dev *dev,
> - u8 slot, u8 pin)
> +int octeon_pci_pcibios_map_irq(const struct pci_dev *dev,
> + u8 slot, u8 pin)
> {
> int irq_num;
> const char *interrupts;
>
> base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
prev parent reply other threads:[~2026-12-05 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 10:19 [PATCH] MIPS: Octeon: don't mark octeon_pci_pcibios_map_irq() __init Imre Kaloz
2026-12-05 9:37 ` Thomas Bogendoerfer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axPbRE9UL2ESO0wq@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=kaloz@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.