================================================================== BUG: KCSAN: data-race in console_unlock / console_unlock write to 0xffffffff8417d940 of 8 bytes by task 1722 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 dump_stack_print_info+0xba/0x130 lib/dump_stack.c:57 __dump_stack lib/dump_stack.c:87 [inline] dump_stack_lvl+0xab/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 0xffffffff8417d940 of 8 bytes by task 1713 on cpu 1: console_unlock+0x9f5/0xb30 kernel/printk/printk.c:2667 vcs_open+0x84/0x90 drivers/tty/vt/vc_screen.c:759 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: 0x00000000000035c1 -> 0x00000000000035c2 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1713 Comm: syz-executor.4 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================