================================================================== BUG: KCSAN: data-race in console_lock / printk_kthread_func write to 0xffffffff85bee448 of 1 bytes by task 19331 on cpu 1: console_kthreads_block kernel/printk/printk.c:318 [inline] console_lock+0x65/0xd0 kernel/printk/printk.c:2713 do_con_write+0x71/0x3590 drivers/tty/vt/vt.c:2908 con_write+0x25/0x420 drivers/tty/vt/vt.c:3295 process_output_block drivers/tty/n_tty.c:581 [inline] n_tty_write+0x7ea/0xb40 drivers/tty/n_tty.c:2297 do_tty_write drivers/tty/tty_io.c:1024 [inline] file_tty_write+0x3f9/0x650 drivers/tty/tty_io.c:1095 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116 do_iter_readv_writev+0x27b/0x300 do_iter_write+0x16f/0x5c0 fs/read_write.c:868 vfs_iter_write+0x4c/0x70 fs/read_write.c:909 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] do_splice+0x956/0xd90 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x2a4/0x380 fs/splice.c:1332 __x64_sys_splice+0x74/0x80 fs/splice.c:1332 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 read to 0xffffffff85bee448 of 1 bytes by task 14 on cpu 0: printer_should_wake kernel/printk/printk.c:3731 [inline] printk_kthread_func+0x481/0xb60 kernel/printk/printk.c:3795 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 14 Comm: pr/ttyS0 Not tainted 5.19.0-rc2-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/13/2022 ==================================================================