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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87cyoxeqh4.fsf@jogness.linutronix.de>
Date: Mon, 03 Jun 2024 22:17:35 +0206
From: John Ogness <john.ogness@...utronix.de>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>, xu xin
 <xu.xin.sc@...il.com>
Cc: xu.xin16@....com.cn, linux-kernel@...r.kernel.org,
 linux-rt-users@...r.kernel.org, liu.chun2@....com.cn, rostedt@...dmis.org,
 si.hao@....com.cn, yang.yang29@....com.cn, zhang.yunkai@....com.cn
Subject: Re: [PATCH  5.10-rt] printk: ignore that console preempted by
 irq/softirq

On 2024-05-28, Sebastian Andrzej Siewior <bigeasy@...utronix.de> wrote:
> There is a `may_sleep` variable set earlier. Couldn't that be re-used?

Since the printing thread cannot preempt the softirq context and since
the printing threads are not started before @system_state is
SYSTEM_RUNNING, using @may_sleep is OK.

if (!may_sleep &&
    con->thread &&
    task_cpu(con->thread) == smp_processor_id()) {
	continue;
}

John Ogness

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ