syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/14 17:18
Subsystems: serial
[Documentation on labels]
First crash: 390d, last: 390d
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 632d 640d 0/26 auto-closed as invalid on 2022/09/14 19:26
upstream KCSAN: data-race in do_con_write / stop_tty (3) serial 6 753d 804d 0/26 auto-closed as invalid on 2022/05/16 00:29
upstream KCSAN: data-race in do_con_write / stop_tty serial 1 1014d 1014d 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 906d 969d 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 0xffff888139a699bc of 1 bytes by task 26927 on cpu 0:
 __stop_tty drivers/tty/tty_io.c:754 [inline]
 stop_tty+0x58/0xb0 drivers/tty/tty_io.c:778
 n_tty_receive_char_flow_ctrl+0x87/0x190 drivers/tty/n_tty.c:1264
 n_tty_receive_char_special drivers/tty/n_tty.c:1273 [inline]
 n_tty_receive_buf_standard+0x49e/0x2d40 drivers/tty/n_tty.c:1587
 __receive_buf drivers/tty/n_tty.c:1613 [inline]
 n_tty_receive_buf_common+0x84a/0xb50 drivers/tty/n_tty.c:1711
 n_tty_receive_buf+0x2f/0x40 drivers/tty/n_tty.c:1740
 tiocsti+0x168/0x1c0 drivers/tty/tty_io.c:2292
 tty_ioctl+0x40f/0xbc0 drivers/tty/tty_io.c:2691
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888139a699bc of 1 bytes by task 26908 on cpu 1:
 do_con_write+0x1459/0x35d0 drivers/tty/vt/vt.c:2875
 con_write+0x24/0x40 drivers/tty/vt/vt.c:3244
 process_output_block drivers/tty/n_tty.c:586 [inline]
 n_tty_write+0x76b/0xa80 drivers/tty/n_tty.c:2350
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3a0/0x600 drivers/tty/tty_io.c:1089
 tty_write+0x28/0x30 drivers/tty/tty_io.c:1110
 call_write_iter include/linux/fs.h:1851 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x463/0x760 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26908 Comm: syz-executor.5 Not tainted 6.3.0-rc5-syzkaller-00247-gcdc9718d5e59 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/09 17:07 upstream cdc9718d5e59 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_con_write / stop_tty
* Struck through repros no longer work on HEAD.