syzbot


KCSAN: data-race in do_con_write / stop_tty

Status: auto-closed as invalid on 2021/08/28 20:41
Subsystems: serial
[Documentation on labels]
First crash: 1019d, last: 1019d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_con_write / stop_tty (4) serial 2 637d 645d 0/26 auto-closed as invalid on 2022/09/14 19:26
upstream KCSAN: data-race in do_con_write / stop_tty (5) serial 1 395d 395d 0/26 auto-obsoleted due to no activity on 2023/05/14 17:18
upstream KCSAN: data-race in do_con_write / stop_tty (3) serial 6 758d 809d 0/26 auto-closed as invalid on 2022/05/16 00:29
upstream KCSAN: data-race in do_con_write / stop_tty (2) serial 7 911d 974d 0/26 auto-closed as invalid on 2021/12/14 11:52

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_con_write / stop_tty

write to 0xffff88812fec19bc of 1 bytes by task 4495 on cpu 0:
 __stop_tty drivers/tty/tty_io.c:768 [inline]
 stop_tty+0x54/0xb0 drivers/tty/tty_io.c:794
 n_tty_receive_char_special drivers/tty/n_tty.c:1274 [inline]
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1558 [inline]
 __receive_buf drivers/tty/n_tty.c:1577 [inline]
 n_tty_receive_buf_common+0x110d/0x4e70 drivers/tty/n_tty.c:1674
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1703
 tiocsti drivers/tty/tty_io.c:2311 [inline]
 tty_ioctl+0x968/0x1120 drivers/tty/tty_io.c:2719
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 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 0xffff88812fec19bc of 1 bytes by task 4480 on cpu 1:
 do_con_write+0x1fc5/0x5d90 drivers/tty/vt/vt.c:2891
 con_write+0x20/0x40 drivers/tty/vt/vt.c:3255
 process_output_block drivers/tty/n_tty.c:592 [inline]
 n_tty_write+0x77b/0xaf0 drivers/tty/n_tty.c:2288
 do_tty_write drivers/tty/tty_io.c:1038 [inline]
 file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1110
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1131
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x69d/0x770 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 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: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4480 Comm: syz-executor.0 Tainted: G        W         5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/24 20:34 upstream f0fddcec6b62 4d1b57d4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
* Struck through repros no longer work on HEAD.