[GIT PULL] printk for 6.18

From: Petr Mladek
Date: Thu Oct 02 2025 - 06:54:11 EST


Hi Linus,

please pull the latest printk changes from

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

=======================================

- Add KUnit test for the printk ring buffer.

- Fix the check of the maximal record size which is allowed to be stored
into the printk ring buffer. It prevents corruptions of the ring buffer.

Note that printk() is on the safe side. The messages are limited by 1kB
buffer and are always small enough for the minimal log buffer size 4kB,
see CONFIG_LOG_BUF_SHIFT definition.

----------------------------------------------------------------
Arnd Bergmann (1):
printk: kunit: support offstack cpumask

John Ogness (1):
printk: ringbuffer: Fix data block max size check

Petr Mladek (3):
printk: ringbuffer: Explain why the KUnit test ignores failed writes
printk: kunit: Fix __counted_by() in struct prbtest_rbdata
Merge branch 'rework/ringbuffer-kunit-test' into for-linus

Thomas Weißschuh (1):
printk: ringbuffer: Add KUnit test

init/Kconfig | 12 +
kernel/printk/.kunitconfig | 3 +
kernel/printk/Makefile | 2 +
kernel/printk/printk_ringbuffer.c | 48 ++--
kernel/printk/printk_ringbuffer_kunit_test.c | 327 +++++++++++++++++++++++++++
5 files changed, 378 insertions(+), 14 deletions(-)
create mode 100644 kernel/printk/.kunitconfig
create mode 100644 kernel/printk/printk_ringbuffer_kunit_test.c