================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve_in_last write to 0xffffffff8686f828 of 8 bytes by task 3307 on cpu 0: data_realloc kernel/printk/printk_ringbuffer.c:1177 [inline] prb_reserve_in_last+0x861/0xb80 kernel/printk/printk_ringbuffer.c:1440 vprintk_store+0x494/0x860 kernel/printk/printk.c:2300 vprintk_emit+0x178/0x650 kernel/printk/printk.c:2426 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x79/0xa0 kernel/printk/printk.c:2475 disk_unlock_native_capacity block/partitions/core.c:520 [inline] blk_add_partition block/partitions/core.c:553 [inline] blk_add_partitions block/partitions/core.c:633 [inline] bdev_disk_changed+0x8d9/0xcb0 block/partitions/core.c:693 blkdev_get_whole+0x1f5/0x2d0 block/bdev.c:748 bdev_open+0x280/0x7e0 block/bdev.c:957 blkdev_open+0x259/0x290 block/fops.c:652 do_dentry_open+0x646/0xa20 fs/open.c:956 vfs_open+0x37/0x1e0 fs/open.c:1086 do_open fs/namei.c:3880 [inline] path_openat+0x1c5e/0x2170 fs/namei.c:4039 do_filp_open+0x109/0x230 fs/namei.c:4066 do_sys_openat2+0xa6/0x110 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1455 x64_sys_call+0x1af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff8686f820 of 16 bytes by task 2993 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1874 [inline] prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x1bc/0x920 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3c/0x60 kernel/printk/printk_ringbuffer.c:2185 syslog_print+0x146/0x540 kernel/printk/printk.c:1633 do_syslog+0x52b/0x7e0 kernel/printk/printk.c:1785 __do_sys_syslog kernel/printk/printk.c:1877 [inline] __se_sys_syslog kernel/printk/printk.c:1875 [inline] __x64_sys_syslog+0x41/0x50 kernel/printk/printk.c:1875 x64_sys_call+0x2ea0/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:104 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 2993 Comm: klogd Not tainted 6.15.0-rc7-syzkaller-00007-g4a95bc121ccd #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================