diff options
| author | John Ogness <john.ogness@linutronix.de> | 2024-12-09 12:23:46 +0106 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:56:57 +0100 |
| commit | b727c2c9c3ab9207c07efab18fe08f4d8530a471 (patch) | |
| tree | 020daf1ee63cfeaadf97ba9ff54f86b1ea4a4cdc /scripts/git.orderFile | |
| parent | a7b38cd0c10ab6a0f615c67f96458d5e1c38d82c (diff) | |
| download | linux-b727c2c9c3ab9207c07efab18fe08f4d8530a471.tar.gz linux-b727c2c9c3ab9207c07efab18fe08f4d8530a471.tar.bz2 linux-b727c2c9c3ab9207c07efab18fe08f4d8530a471.zip | |
printk: Defer legacy printing when holding printk_cpu_sync
[ Upstream commit 0161e2d6950fe66cf6ac1c10d945bae971f33667 ]
The documentation of printk_cpu_sync_get() clearly states
that the owner must never perform any activities where it waits
for a CPU. For legacy printing there can be spinning on the
console_lock and on the port lock. Therefore legacy printing
must be deferred when holding the printk_cpu_sync.
Note that in the case of emergency states, atomic consoles
are not prevented from printing when printk is deferred. This
is appropriate because they do not spin-wait indefinitely for
other CPUs.
Reported-by: Rik van Riel <riel@surriel.com>
Closes: https://lore.kernel.org/r/20240715232052.73eb7fb1@imladris.surriel.com
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Fixes: 55d6af1d6688 ("lib/nmi_backtrace: explicitly serialize banner and regs")
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20241209111746.192559-3-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
