[GIT PULL] printk for 5.13

From: Petr Mladek
Date: Tue Apr 27 2021 - 09:54:06 EST


please pull the latest printk changes from

git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git tags/printk-for-5.13


- Stop synchronizing kernel log buffer readers by logbuf_lock.
As a result, the access to the buffer is fully lockless now.

Note that printk() itself still uses locks because it tries to
flush the messages to the console immediately. Also the per-CPU
temporary buffers are still there because they prevent infinite
recursion and serialize backtraces from NMI. All this is going
to change in the future.

- kmsg_dump API rework and cleanup as a side effect of
the logbuf_lock removal.

- Make bstr_printf() aware that %pf and %pF formats could
deference the given pointer.

- Show also page flags by %pGp format.

- Clarify the documentation for plain pointer printing.

- Do not show no_hash_pointers warning multiple times.

- Update Senozhatsky email address.

- Some clean up.

Bhaskar Chowdhury (1):
kernel/printk.c: Fixed mundane typos

John Ogness (15):
um: synchronize kmsg_dumper
mtd: mtdoops: synchronize kmsg_dumper
printk: limit second loop of syslog_print_all
printk: kmsg_dump: remove unused fields
printk: refactor kmsg_dump_get_buffer()
printk: consolidate kmsg_dump_get_buffer/syslog_print_all code
printk: introduce CONSOLE_LOG_MAX
printk: use seqcount_latch for clear_seq
printk: use atomic64_t for devkmsg_user.seq
printk: add syslog_lock
printk: kmsg_dumper: remove @active field
printk: introduce a kmsg_dump iterator
printk: remove logbuf_lock
printk: kmsg_dump: remove _nolock() variants
printk: console: remove unnecessary safe buffer usage

Marco Elver (1):
lib/vsprintf: do not show no_hash_pointers message multiple times

Petr Mladek (2):
Merge branch 'for-5.13-vsprintf-pgp' into for-linus
Merge branch 'printk-rework' into for-linus

Rasmus Villemoes (2):
printk: rename vprintk_func to vprintk
lib/vsprintf.c: remove leftover 'f' and 'F' cases from bstr_printf()

Sergey Senozhatsky (1):
MAINTAINERS: update Senozhatsky email address

Vlastimil Babka (1):
printk: clarify the documentation for plain pointer printing

Yafang Shao (3):
mm, slub: use pGp to print page flags
mm, slub: don't combine pr_err with INFO
vsprintf: dump full information of page flags in pGp

Documentation/core-api/printk-formats.rst | 28 +-
arch/powerpc/kernel/nvram_64.c | 8 +-
arch/powerpc/xmon/xmon.c | 6 +-
arch/um/kernel/kmsg_dump.c | 13 +-
drivers/hv/vmbus_drv.c | 4 +-
drivers/mtd/mtdoops.c | 17 +-
fs/pstore/platform.c | 5 +-
include/linux/kmsg_dump.h | 47 ++-
kernel/debug/kdb/kdb_main.c | 10 +-
kernel/printk/internal.h | 7 +-
kernel/printk/printk.c | 478 +++++++++++++++---------------
kernel/printk/printk_safe.c | 30 +-
lib/test_printf.c | 90 +++++-
lib/vsprintf.c | 78 ++++-
mm/slub.c | 13 +-
16 files changed, 502 insertions(+), 340 deletions(-)