From nobody Sat Nov 30 12:36:49 2024 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CBE4189919; Mon, 9 Sep 2024 17:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725902875; cv=none; b=nuSjBGdbswHP+hvPO0NLxlbNKZOt7o4NMNHTjcZ18QeS+9jTns4LIm+XnZfxBbvXSymth3vEOz+FsGqO0sWtVv9lk8IztBZ/oRk3XhtizVav/WFZdOgx8GG2IjoLhekvaLpCxwjzxKGwwabBXG7kolI+LI6p70/wJULht1c6BQM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725902875; c=relaxed/simple; bh=vI16XEiUyNIHnE70jBmbtVinnQkAjXeKragOX7El+jc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=i25jlK6pio7EQUqbyqPwl6pELgyPX0NYyT1A6MH6BhQWzKGTJX1Wgcb+XNfTDciTiEmvdOX55wlTx+uGY14FEJYV/Ko/Xmyfu6zdPTcJlOEE9TYDKXsDk8urlf2186E63A8W2pRVFo7gTYTGWWX+zCkN83gXAfApreHZoCOEsUI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xYhtn1E2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=6K3TI3Xi; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xYhtn1E2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="6K3TI3Xi" Date: Mon, 09 Sep 2024 17:27:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1725902872; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r507U4UZKlrst6bX1L7C+3ZSadJFsYQn3JMs1qdEEQ4=; b=xYhtn1E2PUWln59qEMxq0YFmqGrP98qE+h/B0ls7bQXVlEfU4BUjRnrKsrqJ9vIhLY8Q1G zoq1hC0rijozStd/4gls/Hr3PbeU3n92Nitkfhtb3UPQjv7vXapZU3OE6EsyeMfc0I3DpM 47K5nMTyF/B0dzUak6q8kwAELp7vwZ1RKZQIXcII2AKEUXTMxobTjm6ckcV3tE7lJjj3ll /BvaXOqMwoqJ95FgXFrMIHlRIsYCWAiKS4NeSJA1+0BBEWsRPf685nHYNnTqYBoEUhVMb0 c/EgUQ/nC+4sNFL6an7YJTqzsbnIk6ghcIaPY4uh8NZnnXWxq4ozsPjkxqA/vg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1725902872; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r507U4UZKlrst6bX1L7C+3ZSadJFsYQn3JMs1qdEEQ4=; b=6K3TI3XiqqFsAQGj5lSqOk3VC7ZM4JAdMqggcFVBrYsBvJGgCOtln+UOnndsDR0jQtjRHg bd4d1iIqWKEFg/Dg== From: "tip-bot2 for John Ogness" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/rt] printk: Flush nbcon consoles first on panic Cc: John Ogness , Petr Mladek , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240820063001.36405-26-john.ogness@linutronix.de> References: <20240820063001.36405-26-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <172590287157.2215.6192756614705922512.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/rt branch of tip: Commit-ID: d2e85ca7a736d2d889bac9aef6ede0a67f6870b2 Gitweb: https://git.kernel.org/tip/d2e85ca7a736d2d889bac9aef6ede0a67= f6870b2 Author: John Ogness AuthorDate: Tue, 20 Aug 2024 08:35:51 +02:06 Committer: Petr Mladek CommitterDate: Wed, 21 Aug 2024 14:56:24 +02:00 printk: Flush nbcon consoles first on panic In console_flush_on_panic(), flush the nbcon consoles before flushing legacy consoles. The legacy write() callbacks are not fully safe when oops_in_progress is set. Signed-off-by: John Ogness Reviewed-by: Petr Mladek Link: https://lore.kernel.org/r/20240820063001.36405-26-john.ogness@linutro= nix.de Signed-off-by: Petr Mladek --- kernel/printk/printk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 7c9f8f6..c6e6333 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3269,6 +3269,9 @@ void console_flush_on_panic(enum con_flush_mode mode) if (mode =3D=3D CONSOLE_REPLAY_ALL) __console_rewind_all(); =20 + if (!have_boot_console) + nbcon_atomic_flush_pending(); + console_flush_all(false, &next_seq, &handover); }