syzbot


KCSAN: data-race in console_unlock / printer_should_wake

Status: auto-closed as invalid on 2022/07/29 16:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 162d, last: 156d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in console_unlock / printer_should_wake

write to 0xffffffff85bee448 of 1 bytes by task 16062 on cpu 1:
 console_kthreads_unblock kernel/printk/printk.c:339 [inline]
 __console_unlock kernel/printk/printk.c:2821 [inline]
 console_unlock+0x4d5/0x700 kernel/printk/printk.c:3078
 con_install+0x26e/0x2b0 drivers/tty/vt/vt.c:3411
 tty_driver_install_tty drivers/tty/tty_io.c:1307 [inline]
 tty_init_dev+0x76/0x330 drivers/tty/tty_io.c:1419
 tty_open_by_driver drivers/tty/tty_io.c:2086 [inline]
 tty_open+0x6d8/0xb30 drivers/tty/tty_io.c:2133
 chrdev_open+0x362/0x3d0 fs/char_dev.c:414
 do_dentry_open+0x521/0x850 fs/open.c:848
 vfs_open+0x43/0x50 fs/open.c:981
 do_open fs/namei.c:3520 [inline]
 path_openat+0x16cf/0x1b30 fs/namei.c:3653
 do_filp_open+0x105/0x220 fs/namei.c:3680
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1278
 do_sys_open fs/open.c:1294 [inline]
 __do_sys_openat fs/open.c:1310 [inline]
 __se_sys_openat fs/open.c:1305 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1305
 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+0x3d/0x1c0 kernel/printk/printk.c:3734
 printk_kthread_func+0x486/0x940 kernel/printk/printk.c:3801
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14 Comm: pr/ttyS0 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/24 16:39 upstream 92f20ff72066 a371c43c .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/23 07:09 upstream de5c208d533a 912f5df7 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/22 21:43 upstream 3abc3ae553c7 912f5df7 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/21 21:16 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/21 08:13 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/19 18:43 upstream 05c6ca8512f2 8f633d84 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
ci2-upstream-kcsan-gce 2022/06/19 03:54 upstream 354c6e071be9 8f633d84 .config log report info KCSAN: data-race in console_unlock / printer_should_wake
* Struck through repros no longer work on HEAD.