Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794046957; b=IaoMz3rk3a5LFe8l0Y3PXyyl00g7vWdfrnaTFa17RneTa5WawYfz+QkM8HTJigubz4db gbK98FSOO66++bVUABeJpLPVenepnG3H66cYHUWqyprshHPGzUUZpu16EWc7rKLO8QU1q c6peshz8zpsNiELzSg2ulezZemM5v7GR1G3uba+GJhpreOFZGvkt/hZju/nhQr66Ug17X k6ueVgBhZtF1BvNibaG3NW1zPs/TZBUyqVtX0G06YDKXOcBkFbEfp4OqjslRGMW6JfnuK 5VcyHVi+WH7149Q5PS7JHwYQUPbrR65fYik19AKPuaRJOIrCq/1YDxed4Nf8bCG4NNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794046957; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=hgc4Q/8yn60RPIxUyIxhPl8soPI28Rfwe/v1b0zcTEA=; b=uS7SMJdZTDOvacwYmMCPCTRp6IMM75ILmato6LRqWfQ0k0tM91c2L4dRjrXfVMAKtVYo 7sUOZGCnW73JlxGXWP6pxGScBnBPJvhzz48nUiK1yYXgWfHQeCisQZ7+S5ZvDCB4KJptq P3xk1fSQObPsXs8Wa2Ovk+/z5LnwdO9AUYZMiy60hJ+YF1//Y3vCEWe9g49ulD0gHGwi0 Bw5fp6wiOpV/Z7GKdu23Nv2bUWtMt3ToytILOPiKGEIaHa0i6SDpVkmU9FT8zCtx22wEa YXlWKTJakl2PE+WWYq+Z6MkcFL72MySnj/rlKSQx9ygEwQgT+i/XNAfVjglQAJQBvKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iYdlSGBW; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 1135E606A337 for ; Sat, 7 Nov 2026 10:22:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iYdlSGBW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 812EC1F0089F; Sat, 7 Nov 2026 10:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794046956; bh=hgc4Q/8yn60RPIxUyIxhPl8soPI28Rfwe/v1b0zcTEA=; h=From:To:Cc:Subject:Date; b=iYdlSGBWGSB92IWYUk/paGn6AORPi4I7pKnG8nngdefV/qfKdxarMzEVpU1e/axS6 dgjqZJU6S1DAiyaCQv163/QjDa0Iv4rn4e2ihjbukO1Xfj4ORHR7gJhbBLAM3IZ9rL b/O5+67kLDElyYXeBUst3RkUgq1I0LqM8JzAuqLTsAkEjeVIA9GFLYFl3WKhj7bS0z lQLIIFXje20jo6k7fS/KIH/BGErEUfuG6P7nlUYvFnWWuUqc4fXmd2Z5pXY62TxxPS XTFdn3BMTtO78u+f5dktYmZtZOqfyHKHz750PM/udQOYs1tvPp2GrnDlBpgdaglNFi RgjMfu6FYVICQ== From: Sasha Levin To: jirislaby@kernel.org, gregkh@linuxfoundation.org Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] serial: 8250_omap: set priv->line before enabling the IRQ" failed to apply to 6.12-stable tree Date: Sat, 7 Nov 2026 05:22:35 -0500 Message-ID: <20261107052235-failed-6.12-8276a44f0a0b@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@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=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 8276a44f0a0b68c07b2331cc0058036ac4c4190d # git commit -s git send-email --to '' --in-reply-to '20261107052235-failed-6.12-8276a44f0a0b@kernel.org' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From 8276a44f0a0b68c07b2331cc0058036ac4c4190d Mon Sep 17 00:00:00 2001 From: "Jiri Slaby (SUSE)" Date: Tue, 13 Oct 2026 08:48:50 +0200 Subject: [PATCH] serial: 8250_omap: set priv->line before enabling the IRQ omap8250_irq() is requested in omap8250_probe() with IRQ_NOAUTOEN and enabled only in omap_8250_startup(). The handler obtains the port by serial8250_get_port(priv->line), but probe stores priv->line only after serial8250_register_8250_port() returns. The port becomes visible to userspace already inside serial8250_register_8250_port() (uart_add_one_port()). So it can be opened -- and the IRQ enabled -- before probe stores the line. An interrupt in that window makes the handler call serial8250_get_port(-ENODEV) and dereference a pointer outside of serial8250_ports[]. Store the line in omap_8250_startup() before enable_irq(), so the handler never runs with an unset line. Keep the assignment in probe too, as remove and the system PM callbacks rely on it even when the port was never opened. Fixes: fef4f600319e ("serial: 8250: omap: Fix life cycle issues for interrupt handlers") Signed-off-by: Jiri Slaby (SUSE) Assisted-by: LLM Cc: stable@vger.kernel.org Link: https://patch.msgid.link/3b3a642f7df2285f49a7bbbe5d1c23fa442c7d94.1791873876.git.jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_omap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 3a1473bf54d0f..137175aa4183a 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -711,6 +711,9 @@ static int omap_8250_startup(struct uart_port *port) struct uart_8250_dma *dma = &priv->omap8250_dma; int ret; + /* ISR and runtime PM need the line; probe sets it only after registration */ + priv->line = port->line; + #ifdef CONFIG_PM up->capabilities |= UART_CAP_RPM; #endif -- 2.53.0