lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87frqe2o2j.fsf@jogness.linutronix.de>
Date: Thu, 05 Sep 2024 16:11:24 +0206
From: John Ogness <john.ogness@...utronix.de>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Jiri Slaby
 <jirislaby@...nel.org>, Petr Mladek <pmladek@...e.com>, Sergey Senozhatsky
 <senozhatsky@...omium.org>, Steven Rostedt <rostedt@...dmis.org>, Thomas
 Gleixner <tglx@...utronix.de>, linux-serial@...r.kernel.org,
 linux-kernel@...r.kernel.org, Tony Lindgren <tony@...mide.com>, "Paul E.
 McKenney" <paulmck@...nel.org>, Uwe Kleine-König
 <u.kleine-koenig@...gutronix.de>, Ilpo Järvinen
 <ilpo.jarvinen@...ux.intel.com>, Serge Semin <fancer.lancer@...il.com>,
 Rengarajan S <rengarajan.s@...rochip.com>, Wolfram Sang
 <wsa+renesas@...g-engineering.com>, Florian Fainelli
 <f.fainelli@...il.com>, Jeff Johnson <quic_jjohnson@...cinc.com>, Lino
 Sanfilippo <l.sanfilippo@...bus.com>, Derek Barbosa <debarbos@...hat.com>
Subject: Re: [PATCH tty-next v1 0/2] convert 8250 to nbcon

On 2024-09-05, Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:
>> $  cat /proc/consoles
>> ttyS0                -W- (EC N  a)    4:64
>> 
>> The 'N' shows that it is an NBCON console.
>> 
>> There will also be a dedicated printing kthread. For example:
>> 
>> $ ps ax | grep pr/
>>    16 root       0:00 [pr/ttyS0]
>
> Wondering if this can use the DEVNAME instead of opaque (to some extent) ttySx?
> Or is it using the same what has been passed to the console= kernel command line
> parameter?

fs/proc/consoles.c:show_console_dev() is just using:

"%s%d", con->name, con->index

The same goes for drivers/tty/tty_io.c:show_cons_active(), which is
responsible for the contents of:

/sys/devices/virtual/tty/console/active

John Ogness

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ