BUG: KCSAN: data-race in console_lock / printk_kthread_func 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 do_tty_write drivers/tty/tty_io.c:1024 [inline] file_tty_write+0x3f9/0x650 drivers/tty/tty_io.c:1095 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 0xffffffff85c34db0 of 1 bytes by task 1398 on cpu 1: printer_should_wake kernel/printk/printk.c:3731 [inline] printk_kthread_func+0x401/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: 1 PID: 1398 Comm: pr/netcon0 Tainted: G W 5.19.0-rc1-syzkaller-00003-ge71e60cd74df-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================