🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7405

Re: [PATCH RFC 0/2] netconsole: allow replaying the printk buffer on demand

#7405
From: John Ogness
Date: Mon, 26 Oct 2026 09:34
35 lines
10552 bytes
On 2026-10-24, Sam Crossley <samuelcrossley@gmail.com> wrote:
> Netconsole only forwards records while an enabled target and its
> transport are available. A target enabled after boot, or one that was
> unreachable during a network outage, leaves a gap in the remote log that
> cannot currently be recovered.

This situation is no different than connecting a UART sometime after
boot, or having unplugged a serial cable temporarily during runtime.

> This adds a write-only "replay" attribute to the netconsole configfs
> subsystem that rewinds the netconsole consoles so the retained ring is
> re-sent.

I would prefer that we find a more general interface for this. One that
can apply to all consoles, not just netconsole.

We have a couple console features planned or in discussion: per-console
loglevels [0] and per-console unsafe dumping/ordering [1]. Both of these
are per-console, meaning they also involve the netconsole.

I think we need the netconsole to support a general console interface
rather than introducing netconsole-only knobs (particularly when such
features could be valid for any console).

In the per-console loglevel series Chris Down introduces [2]
/sys/class/console/ to sysfs. This is where we would put all the
upcoming per-console knobs. I would expect a replay trigger would fit
well there.

John Ogness

[0] https://lore.kernel.org/lkml/cover.1764272407.git.chris@chrisdown.name/
[1] https://lore.kernel.org/lkml/87bj8kkfwk.fsf@jogness.linutronix.de/
[2] https://lore.kernel.org/lkml/84b8d91693e56f6026271bc40553bcb6657ab24d.1764272407.git.chris@chrisdown.name/
Technical Details
Message-ID: <87fqxskdpl.fsf@jogness.linutronix.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351795-linux-kernel-netdev=dewy.ru
References: <20261024-netcons-replay-upstream-v1-0-9613f38496e5@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351795-linux-kernel-netdev=dewy.ru
From: john.ogness@linutronix.de (John Ogness)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH RFC 0/2] netconsole: allow replaying the printk buffer
 on demand
Date: Mon, 26 Oct 2026 10:40:14 +0106
Organization: Usenet Network
Message-ID: <87fqxskdpl.fsf@jogness.linutronix.de>
References: <20261024-netcons-replay-upstream-v1-0-9613f38496e5@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="1271767"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:zqSu8hhtdq+044ScDZPJilaWgRM= sha256:MTPMK6ORDb0sGBprB15P3y0/9Gmb++kfbRJxXehvVEw=
	sha1:xVUH22D0vm505twQ/M8IEfplrA0= sha256:7pdaEEPNAadNpxamaoqSXRkj0iK+7E3iyWtqDAw5SBU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 50FD6125B97; Mon, 26 Oct 2026 12:34:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.518
X-Spam-Status: No, score=-2.518 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, INVALID_DATE_TZ_ABSURD=0.632,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=linutronix.de header.b=MYPRHHnN; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=f488/DKx
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fgk0dUCqaRHx;
	Mon, 26 Oct 2026 12:34:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-351795-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 4B316125B96; Mon, 26 Oct 2026 12:34:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id CFD1D6015C7; Mon, 26 Oct 2026 09:34:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793007266;
	b=WgDglKAkUj10v2Va5lqwdgzooVJ+qoTT3Jnz+cr4uY4pcqNbfHrqDYyo/Vl5CWupNOc3
	 cJOqbbBYQy15ouvswuk2TQHjh7QD3BX9wIOx2SEAIMZGoEihZLEiVqTAOQ3cVYbgaQTCf
	 CkpMDP7wznQVBlpA8kNQBUKDDP7pYE4uJwfqSyGcvTJumNCz2+JaB37wid38KjijuO8dv
	 YnZHDiKHWeOpsTWQ4duZCTJssW/UxiCW4G4kgffc+De830u69W1CLs8iPkgHPco8YZW75
	 v5FdK5S39SRBY3FaPqXdBEgibvJHZKwOk08EW31mg3beIKq+ekGMlK8aiJV7ZiKt3uw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793007266;
	h=X-Original-To:Received:DMARC-Filter:From:DKIM-Signature:
	 DKIM-Signature:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type;
	bh=L1ymgsTx7zbrSnuGx/+j28LBgSYyFss7BFigmOxmN7E=;
	b=jkKKHRaPt8rR/8UOjgb1o+anO5XCQgUpD0ICvAQHIwX2gUxCXwAY3sFFcOCau4pm7K4j
	 Nm5YvGLQwGw1AlXcAgZwnxokbbsb0AAG4NJduPES0to4Po9S1VxKdraqrNuwSfXocYL38
	 kCqNuWub4cSHFkbuTh1O3v/VxDwcR7SrtMglJn/+EZ9DM3KCX2RwqsLg/hYYt1UgTf0lr
	 JoWQrbDy3HUWz7ao/VcDI9Dw3J0ysBbnhDgDnGPoOUXx3eLFW/8a63BSR+KlhHZci0Cfc
	 kyGwhMsrINm0kCrz8jQh2e5tnuRdY00r+rgYCSpOR2M0LBYvnWcyLA6ikL6NMrVc07Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=MYPRHHnN;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="f488/DKx";
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D2EF606A326;
	Mon, 26 Oct 2026 09:34:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=MYPRHHnN;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=f488/DKx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793007260;
	b=aQiiNs+0G51iKImuYZBsWDrgYCvYrH4Q9GuFWGfTr2wWEEBv3Mr3O2hI7/P0Pv+a/Gis
	 tBcO4Ji34T5ZCF/7rfuOipO9VkRUxhBZyXvyBzWIWOrL73w2cW1cDrRSBoC/21QQxgC4Z
	 iiS5drvhPcg5dyU/L2ofkiQ3bWykYMc3Zt/VdDTroHnjLDvakQRYi/ijShmtlisbJ3LY2
	 1Rdr38R/2QiNq4bIAfVBlVCtFiqnhTy2HLNBUqC6h1T+2Oo/YD8IprvGkAC0xTpbgzbmk
	 C6WiCLFl9D+k5kxPDo/E6mCKdLdAcKfCtLpQFBx18+oRoSbikYdqd1P9O4Gxp7+A/8Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793007260;
	h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type;
	bh=L1ymgsTx7zbrSnuGx/+j28LBgSYyFss7BFigmOxmN7E=;
	b=mkrSTjM4v3pg1o89en5cyDnfCAvnPfwWeKJ9isWGhLU2tyWeuFrVTnTOa29tIBYNCAhv
	 87X+YHuM+vMSao97bOfFZxTAXJZFOV1rBZ6FfDET4PGfj/BQj8LNQgMnHrGo+KeTpq4Sw
	 YpYr5ACSLYL2QcSZx/51yDTWbh3lEjrcs4LQB8Lz6hnyRrrxsuKQbpj+REVJnvcK7OKjQ
	 2xGW8i91wC3J5L6WfYtkXXH5q6dLGXamji3S6flmFuhBbK2DZFTBNvukei3W+oQdmzRUZ
	 5+cFVGEKJcY3AagVf6SaJ9vyk+OtR4LN+wbO1taGy6yJ3z/q4HXHUIKXg6vZsSwWiFw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.de;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=MYPRHHnN;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="f488/DKx";
	arc=none smtp.remote-ip=193.142.43.55
X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F4F9606A31A;
	Mon, 26 Oct 2026 09:34:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7F4F9606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020; t=1793007255;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=L1ymgsTx7zbrSnuGx/+j28LBgSYyFss7BFigmOxmN7E=;
	b=MYPRHHnNRJyIyZAafai3OlVck/LBfipmLsFd1uBV05RO43XUV9vlX1L7KaKLbW5y0XI5tD
	FEqmQwYvrq+JMR+6aSixRpCeyo3Wlda/oOOycEyc2JVaoe7yTZqLzNvbCN1W4y0P8+OKkW
	fgGXt45ndf4X2h404MVO2Inn+mTWE5VjJRTc6YXmXvp7VeTESYjSNwE+fv2tYh0RbV4uTl
	OHpt0sKjJG7HGTwJGIiCj2rysliDEEpt+wVUW9SzY+oq1u+c8G6M5jtvAovMC7AKSBxEFB
	FNTI5Sh43fUN0RvfDcLnXogl6uNCh8WjpDqL5sfmInhMtA/QbwiGbSeMUX+nPw==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1793007255;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=L1ymgsTx7zbrSnuGx/+j28LBgSYyFss7BFigmOxmN7E=;
	b=f488/DKxBR+0unnvdDl0e1iGAmJYebfOUQ7iCvv3RB9d/iTAJr37dC5hD7a+lzIonlicXl
	iFRxa/k8nph947DA==
X-Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
 linux-doc@vger.kernel.org, Sam Crossley <samuelcrossley@gmail.com>
X-In-Reply-To: <20261024-netcons-replay-upstream-v1-0-9613f38496e5@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list