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: <ce0c55a168166ae772b6247cf16fb21f990e3482.camel@gmx.de>
Date: Mon, 08 Sep 2025 17:18:02 +0200
From: Mike Galbraith <efault@....de>
To: John Ogness <john.ogness@...utronix.de>, Breno Leitao
 <leitao@...ian.org>,  Simon Horman <horms@...nel.org>, kuba@...nel.org,
 calvin@...nvd.org
Cc: Pavel Begunkov <asml.silence@...il.com>, Johannes Berg
 <johannes@...solutions.net>, paulmck@...nel.org, LKML
 <linux-kernel@...r.kernel.org>, netdev@...r.kernel.org, boqun.feng@...il.com
Subject: Re: netconsole: HARDIRQ-safe -> HARDIRQ-unsafe lock order warning

On Mon, 2025-09-08 at 15:36 +0206, John Ogness wrote:
> 
> Just be aware that ->write_atomic() will be called from _any_ context
> (including scheduler and NMI) and a console implementing this callback
> must handle the message or the message is lost for that console.

What I did locally was to steal panic_in_progress() from printk.c and
use that as the barrier between immediate xmit and queue for kworker
should locking challenged parties notice IRQs are off despite selective
bending up of NETPOLL's definition of "poll".
  
Not perfect, but safety first seems prudent, and not bad given the
panic_on knobs available.

	-Mike

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ