Skip to content

Fix ABBA deadlock for legacy printing with cpu_sync

John Ogness lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2printk: Remove redundant deferred check in vprintk()kernel/printk/printk_safe.c+0 -91 reply
2/2printk: Defer legacy printing when holding printk_cpu_synckernel/printk/internal.h kernel/printk/printk.c kernel/printk/printk_safe.c+17 -15 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPetr Mladek
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH printk v1 0/2] Fix ABBA deadlock for legacy printing with cpu_sync

Hi,

An RFC patch [0] was posted to fix an ABBA deadlock related to nmi_backtrace() and dump_stack_lvl(). However, the underlying problem was trying to perform legacy printing while holding the printk_cpu_sync.

This series causes legacy printing to defer when holding the printk_cpu_sync.

The first patch in the series is not necessary for the deadlock fix, but was a redundancy I noticed while working on the series.

John Ogness

[0] https://lore.kernel.org/lkml/[email protected]

John Ogness (2):
printk: Remove redundant deferred check in vprintk()
printk: Defer legacy printing when holding printk_cpu_sync

 kernel/printk/internal.h    |  6 ++++++
 kernel/printk/printk.c      |  5 +++++
 kernel/printk/printk_safe.c | 16 ++++++----------
 3 files changed, 17 insertions(+), 10 deletions(-)

base-commit: 4022ef25504db2fb79a2acac0afe9bac934f8dd6

Signature · 1 line
2.39.5