diff options
author | John Ogness <[email protected]> | 2024-08-20 08:35:52 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2024-08-21 14:56:24 +0200 |
commit | 5dde3b7354133846079fa51e55e74ef90a836759 (patch) | |
tree | 28e69b6323463f7e8b403154158eb7028b46ae0c /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | d2e85ca7a736d2d889bac9aef6ede0a67f6870b2 (diff) |
printk: nbcon: Add unsafe flushing on panic
Add nbcon_atomic_flush_unsafe() to flush all nbcon consoles
using the write_atomic() callback and allowing unsafe hostile
takeovers. Call this at the end of panic() as a final attempt
to flush any pending messages.
Note that legacy consoles use unsafe methods for flushing
from the beginning of panic (see bust_spinlocks()). Therefore,
systems using both legacy and nbcon consoles may still fail to
see panic messages due to unsafe legacy console usage.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions