| From: |
| John Ogness <john.ogness-AT-linutronix.de> |
| To: |
| Petr Mladek <pmladek-AT-suse.com> |
| Subject: |
| [PATCH next v1 0/3] printk: remove safe buffers |
| Date: |
| Wed, 17 Mar 2021 00:33:23 +0100 |
| Message-ID: |
| <20210316233326.10778-1-john.ogness@linutronix.de> |
| Cc: |
| Sergey Senozhatsky <sergey.senozhatsky.work-AT-gmail.com>, Sergey Senozhatsky <sergey.senozhatsky-AT-gmail.com>, Steven Rostedt <rostedt-AT-goodmis.org>, Thomas Gleixner <tglx-AT-linutronix.de>, linux-kernel-AT-vger.kernel.org, Michael Ellerman <mpe-AT-ellerman.id.au>, Benjamin Herrenschmidt <benh-AT-kernel.crashing.org>, Paul Mackerras <paulus-AT-samba.org>, Eric Biederman <ebiederm-AT-xmission.com>, Nicholas Piggin <npiggin-AT-gmail.com>, Christophe Leroy <christophe.leroy-AT-csgroup.eu>, Alistair Popple <alistair-AT-popple.id.au>, Jordan Niethe <jniethe5-AT-gmail.com>, Peter Zijlstra <peterz-AT-infradead.org>, Cédric Le Goater <clg-AT-kaod.org>, Andrew Morton <akpm-AT-linux-foundation.org>, Kees Cook <keescook-AT-chromium.org>, Yue Hu <huyue2-AT-yulong.com>, Alexey Kardashevskiy <aik-AT-ozlabs.ru>, Rafael Aquini <aquini-AT-redhat.com>, Tiezhu Yang <yangtiezhu-AT-loongson.cn>, "Guilherme G. Piccoli" <gpiccoli-AT-canonical.com>, "Paul E. McKenney" <paulmck-AT-kernel.org>, linuxppc-dev-AT-lists.ozlabs.org, kexec-AT-lists.infradead.org |
| Archive-link: |
| Article |
Hello,
Here is v1 of a series to remove the safe buffers. They are no
longer needed because messages can be stored directly into the
log buffer from any context.
However, the safe buffers also provided a form of recursion
protection. For that reason, explicit recursion protection is
also implemented for this series.
This series falls in line with the printk-rework plan as
presented [0] at Linux Plumbers in Lisbon 2019.
This series is based on next-20210316.
John Ogness
[0] https://linuxplumbersconf.org/event/4/contributions/290/a... (slide 23)
John Ogness (3):
printk: track/limit recursion
printk: remove safe buffers
printk: convert @syslog_lock to spin_lock
arch/powerpc/kernel/traps.c | 1 -
arch/powerpc/kernel/watchdog.c | 5 -
include/linux/printk.h | 10 -
kernel/kexec_core.c | 1 -
kernel/panic.c | 3 -
kernel/printk/internal.h | 2 -
kernel/printk/printk.c | 171 +++++++++--------
kernel/printk/printk_safe.c | 332 +--------------------------------
lib/nmi_backtrace.c | 6 -
9 files changed, 100 insertions(+), 431 deletions(-)
--
2.20.1