NetBSD Problem Report #58070

From www@netbsd.org  Sat Mar 23 19:23:06 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9A7AC1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 23 Mar 2024 19:23:06 +0000 (UTC)
Message-Id: <20240323192305.23DB31A923B@mollari.NetBSD.org>
Date: Sat, 23 Mar 2024 19:23:05 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: rump prints unnecessary "entropy: ready" message when otherwise silent
X-Send-Pr-Version: www-1.0

>Number:         58070
>Category:       kern
>Synopsis:       rump prints unnecessary "entropy: ready" message when otherwise silent
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 23 19:25:00 +0000 2024
>Last-Modified:  Mon Mar 25 09:30:03 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10
>Organization:
The RumpBSD Entmoot
>Environment:
>Description:
Rump kernels which are normally silent, without RUMP_VERBOSE enabled, nevertheless often print the single line "entropy: ready".

The message is helpful for hard kernels, but not really for rump kernels, which pretty much always just draw entropy from the host's /dev/urandom or equivalent via the rump hyperentropy source.
>How-To-Repeat:
run anything with rump, like atf tests
>Fix:
Yes, please!

Maybe printf should be replaced by aprint_normal or something, not sure offhand what mechanism will serve best to print output in a hard kernel but suppress it in a rump kernel.

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58070: rump prints unnecessary "entropy: ready" message
 when otherwise silent
Date: Sun, 24 Mar 2024 09:22:23 +0100

 On Sat, Mar 23, 2024 at 07:25:01PM +0000, campbell+netbsd@mumble.net wrote:
 > >Number:         58070
 > >Category:       kern
 > >Synopsis:       rump prints unnecessary "entropy: ready" message when otherwise silent

 I recently saw a video of a user installing NetBSD, and when he ended
 up in sysinst to choose the installation language, the first entry was
 overwritten by this 'entropy: ready' line... not sure if we want this
 line so badly.
  Thomas

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58070: rump prints unnecessary "entropy: ready" message
 when otherwise silent
Date: Sun, 24 Mar 2024 11:05:12 +0100

 On Sun, Mar 24, 2024 at 08:25:01AM +0000, Thomas Klausner wrote:
 >  I recently saw a video of a user installing NetBSD, and when he ended
 >  up in sysinst to choose the installation language, the first entry was
 >  overwritten by this 'entropy: ready' line... not sure if we want this
 >  line so badly.

 We want a way to supress (or collect elsewhere) all kernel output and
 leave the sysinst screens alone - it is not just this particualy kernel
 printf, but also thermal sensors changing state or USB devices being
 pluged/unpluged that disturbs the curses display.

 Unfortunately it is not as trivial as everyone seems to think. We have
 an ioctl to replace the console device with some other device, but none
 to "mute" it (and only collect the output from /dev/log instead).

 Anyway, this is true for all kernel output, not this line specifically
 (especially since "early in sysinst" is a very unlikely time for it
 to happen on most hardware).

 Martin

From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58070: rump prints unnecessary "entropy: ready" message
 when otherwise silent
Date: Mon, 25 Mar 2024 00:18:40 +0000 (UTC)

 On Sun, 24 Mar 2024, Martin Husemann wrote:

 > We want a way to supress (or collect elsewhere) all kernel output and
 > leave the sysinst screens alone - it is not just this particualy kernel
 > printf, but also thermal sensors changing state or USB devices being
 > pluged/unpluged that disturbs the curses display.
 >

 You could set up 2 VTs and have sysinst run on the non-console one.

 -RVP

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58070: rump prints unnecessary "entropy: ready" message
 when otherwise silent
Date: Mon, 25 Mar 2024 09:25:10 +0100

 On Mon, Mar 25, 2024 at 12:20:01AM +0000, RVP wrote:
 >  You could set up 2 VTs and have sysinst run on the non-console one.

 Let's move this elsewhere (but in general we need something that works
 over serial console too).

 Martin

From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58070: rump prints unnecessary "entropy: ready" message
 when otherwise silent
Date: Mon, 25 Mar 2024 09:25:34 +0000 (UTC)

 On Mon, 25 Mar 2024, Martin Husemann wrote:

 > Let's move this elsewhere (but in general we need something that works
 > over serial console too).
 >

 For serial consoles you could just `kern.messages=0'. That works
 to suppress everything--except messages output using plain printf(),
 I think.

 Or, just do nothing for these. People who install over serial usually
 know to do Ctrl-L.

 -RVP

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.