syzbot


KCSAN: data-race in console_unlock / printk_kthread_func

Status: auto-closed as invalid on 2022/07/23 02:16
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 186d, last: 163d

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

write to 0xffffffff85c34eb0 of 1 bytes by task 5774 on cpu 1:
 console_kthreads_unblock kernel/printk/printk.c:336 [inline]
 __console_unlock kernel/printk/printk.c:2818 [inline]
 console_unlock+0x4d5/0x700 kernel/printk/printk.c:3075
 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 0xffffffff85c34eb0 of 1 bytes by task 1399 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: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1399 Comm: pr/netcon0 Not tainted 5.19.0-rc2-syzkaller-00205-g462abc9de7a1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (25):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/18 02:09 upstream 462abc9de7a1 8f633d84 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/17 10:50 upstream 47700948a4ab cb58b3b2 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/17 00:05 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/16 10:10 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/15 19:51 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/15 10:11 upstream 018ab4fabddd 127d1faf .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/13 16:17 upstream b13baccc3850 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/13 05:32 upstream 997952851843 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/12 00:31 upstream 0885eacdc81f 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/11 02:34 upstream a32e7ea36235 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/10 13:15 upstream 874c8ca1e60b 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/09 22:18 upstream 3d9f55c57bc3 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/09 09:32 upstream 6bfb56e93bce 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/08 21:36 upstream 34f4335c16a5 0d5abf15 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/07 15:35 upstream e71e60cd74df b2706118 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/06 17:45 upstream f2906aa86338 c8857892 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/05 23:48 upstream 952923ddc011 c8857892 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/05 10:51 upstream d0e60d46bc03 c8857892 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/01 14:50 upstream 700170bf6b4d b4bc6a3d .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/06/01 07:57 upstream e1cbc3b96a99 3666edfe .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/05/31 14:47 upstream 8ab2afa23bd1 af70c3a9 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/05/29 18:53 upstream c3a9a3c5f559 a46af346 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/05/28 13:08 upstream 9d004b2f4fea a46af346 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/05/27 01:16 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
ci2-upstream-kcsan-gce 2022/05/26 08:11 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in console_unlock / printk_kthread_func
* Struck through repros no longer work on HEAD.