From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796466213; b=jACzRwGYz/5TaTkWmhG3YP1MbWg/f6z/vyhBP7IJ/xzvi8psKHHH0sUQ8Cqgzvg1NOYA F44zyVKRTcpLz8fJZ46FioO6Q9ULCjFKjFk/QhxVqS/EM8/wkTYQQx5CsM5eQzUpSIwXf nYkUTOs5CX6eCFgvEjKTl5P65go682WixIu7FrUEdjU8pPbYKngS9MY7EzPTPoyj40/v4 JZ6Vnk1rCKWXf6HFrHPlknEUCxAhHL4BumxGWsvFB4mTAvQL50pKAp+4lC5TCC0UBvrdC jziGGroutP8a1SVyEM7dERylb/wWO4rs/OLr0ZbhZy0wEzu0ktFxqvB/jatGF3YE9RQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796466213; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=O4ynKcPoy08XJr/x3VOrdIRsVeUHW8mBkjns0jJLSR0=; b=gjAcL+9jwOakdprJwN9G2TGYFubuRbkvWbbvnFItAQBxsW6udvMzsPK2esEqP4UEwGTp l6ID52AeDNFCC74jrRrXjKWIfogtf3+iyrFewneWn2h4uYjIJy5IU/MaKAG1xIXpah017 UatXgUYgNeoxyZDElCt5w2p+0y1WOTyVx161H5BxCZICyyYHKpHzfy7Tx5fZBqS28vmZr qbLhEqcz54hnQRcTHTGfY5UEwLPk0+W7h/jK02kmCHnzQrdAefL8invEmoEoFHK5K4j5V GXvsAv6R5FAOMIPeumpxWqMY6U1pPm1jf5FC9f86EL6+EWIdsY5mo+Tsi6y4STKl6yQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1DBB606A338; Sat, 5 Dec 2026 10:23:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F1DBB606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id 7255010045A; Sat, 5 Dec 2026 11:23:21 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id B9DE4C0A20; Sat, 5 Dec 2026 10:37:08 +0100 (CET) Date: Sat, 5 Dec 2026 10:37:08 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: Lorenzo Pieralisi , 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 Message-ID: References: <20261203101914.4558-1-kaloz@kernel.org> X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > --- > 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 ]