syzbot


KCSAN: data-race in do_con_write / stop_tty (3)

Status: auto-closed as invalid on 2022/05/16 00:29
Subsystems: serial
[Documentation on labels]
First crash: 793d, last: 743d
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 621d 629d 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 379d 379d 0/26 auto-obsoleted due to no activity on 2023/05/14 17:18
upstream KCSAN: data-race in do_con_write / stop_tty serial 1 1003d 1003d 0/26 auto-closed as invalid on 2021/08/28 20:41
upstream KCSAN: data-race in do_con_write / stop_tty (2) serial 7 895d 959d 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 0xffff888137f7fdbc of 1 bytes by task 3358 on cpu 0:
 __stop_tty drivers/tty/tty_io.c:760 [inline]
 stop_tty+0x54/0xb0 drivers/tty/tty_io.c:784
 n_tty_receive_char_special drivers/tty/n_tty.c:1234 [inline]
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1530 [inline]
 __receive_buf drivers/tty/n_tty.c:1549 [inline]
 n_tty_receive_buf_common+0x10fd/0x4c40 drivers/tty/n_tty.c:1645
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1674
 tiocsti+0x14b/0x1a0 drivers/tty/tty_io.c:2293
 tty_ioctl+0x279/0x970 drivers/tty/tty_io.c:2692
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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+0x44/0xae

read to 0xffff888137f7fdbc of 1 bytes by task 3352 on cpu 1:
 do_con_write+0x1785/0x3590 drivers/tty/vt/vt.c:2931
 con_write+0x25/0x420 drivers/tty/vt/vt.c:3295
 process_output_block drivers/tty/n_tty.c:581 [inline]
 n_tty_write+0x7ea/0xb40 drivers/tty/n_tty.c:2248
 do_tty_write drivers/tty/tty_io.c:1024 [inline]
 file_tty_write+0x3f9/0x650 drivers/tty/tty_io.c:1095
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116
 call_write_iter include/linux/fs.h:2050 [inline]
 new_sync_write fs/read_write.c:504 [inline]
 vfs_write+0x71c/0x890 fs/read_write.c:591
 ksys_write+0xe8/0x1a0 fs/read_write.c:644
 __do_sys_write fs/read_write.c:656 [inline]
 __se_sys_write fs/read_write.c:653 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:653
 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+0x44/0xae

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3352 Comm: syz-executor.1 Not tainted 5.18.0-rc1-syzkaller-00350-g1862a69c9174-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/11 00:26 upstream 1862a69c9174 e22c3da3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
2022/03/15 18:38 upstream 56e337f2cf13 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
2022/03/12 00:38 upstream 79b00034e9dc 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
2022/03/10 17:50 upstream 1db333d9a51f 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
2022/03/09 21:43 upstream 330f4c53d3c2 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
2022/02/19 21:39 upstream 4f12b742eb2b 3cd800e4 .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.