================================================================== BUG: KCSAN: data-race in console_unlock / console_unlock write to 0xffffffff8417c940 of 8 bytes by task 15467 on cpu 0: console_unlock+0x570/0xb30 kernel/printk/printk.c:2632 vprintk_emit+0x125/0x3d0 kernel/printk/printk.c:2174 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392 printk+0x62/0x87 kernel/printk/printk.c:2216 printk_stack_address arch/x86/kernel/dumpstack.c:72 [inline] show_trace_log_lvl+0x587/0x600 arch/x86/kernel/dumpstack.c:282 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xb7/0x103 lib/dump_stack.c:105 dump_stack+0x11/0x1a lib/dump_stack.c:112 fail_dump lib/fault-inject.c:52 [inline] should_fail+0x23c/0x250 lib/fault-inject.c:146 should_fail_usercopy+0x16/0x20 lib/fault-inject-usercopy.c:37 _copy_to_user+0x1c/0x90 lib/usercopy.c:29 copy_to_user include/linux/uaccess.h:200 [inline] simple_read_from_buffer+0xab/0x120 fs/libfs.c:741 proc_fail_nth_read+0xf6/0x140 fs/proc/base.c:1422 vfs_read+0x154/0x5d0 fs/read_write.c:494 ksys_read+0xce/0x180 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff8417c940 of 8 bytes by task 15471 on cpu 1: console_unlock+0x9f5/0xb30 kernel/printk/printk.c:2667 con_install+0x297/0x2d0 drivers/tty/vt/vt.c:3371 tty_driver_install_tty drivers/tty/tty_io.c:1315 [inline] tty_init_dev+0x76/0x340 drivers/tty/tty_io.c:1429 tty_open_by_driver drivers/tty/tty_io.c:2098 [inline] tty_open+0x70c/0xb60 drivers/tty/tty_io.c:2146 chrdev_open+0x39c/0x420 fs/char_dev.c:414 do_dentry_open+0x529/0x850 fs/open.c:826 vfs_open+0x43/0x50 fs/open.c:949 do_open fs/namei.c:3374 [inline] path_openat+0x1787/0x1f20 fs/namei.c:3507 do_filp_open+0xe9/0x200 fs/namei.c:3534 do_sys_openat2+0xa3/0x250 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000002465 -> 0x0000000000002466 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 15471 Comm: syz-executor.3 Not tainted 5.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================