syzbot


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

Status: auto-closed as invalid on 2022/05/05 09:26
Subsystems: serial
[Documentation on labels]
First crash: 894d, last: 891d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __stop_tty / do_con_write (2) serial 1 1038d 1038d 0/27 auto-closed as invalid on 2021/12/10 00:27
upstream KCSAN: data-race in __stop_tty / do_con_write serial 3 1110d 1149d 0/27 auto-closed as invalid on 2021/09/28 23:33
upstream KCSAN: data-race in __stop_tty / do_con_write (9) serial 2 172d 193d 0/27 auto-obsoleted due to no activity on 2024/04/23 21:59
upstream KCSAN: data-race in __stop_tty / do_con_write (8) serial 5 307d 273d 0/27 auto-obsoleted due to no activity on 2023/12/24 00:05
upstream KCSAN: data-race in __stop_tty / do_con_write (5) serial 1 664d 664d 0/27 auto-obsoleted due to no activity on 2022/12/19 02:12
upstream KCSAN: data-race in __stop_tty / do_con_write (7) serial 7 450d 463d 0/27 auto-obsoleted due to no activity on 2023/07/20 09:58
upstream KCSAN: data-race in __stop_tty / do_con_write (6) kernel 1 578d 578d 0/27 auto-obsoleted due to no activity on 2023/04/04 15:34
upstream KCSAN: data-race in __stop_tty / do_con_write (4) serial 1 715d 715d 0/27 auto-obsoleted due to no activity on 2022/10/28 19:26

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

write to 0xffff8881382a25bc of 1 bytes by task 11950 on cpu 0:
 __stop_tty+0x3e/0x80 drivers/tty/tty_io.c:760
 n_tty_ioctl_helper+0x310/0x450 drivers/tty/tty_ioctl.c:872
 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2381
 tty_ioctl+0xaf7/0x1130 drivers/tty/tty_io.c:2787
 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/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881382a25bc of 1 bytes by task 11942 on cpu 1:
 do_con_write+0x2055/0x5f40 drivers/tty/vt/vt.c:2931
 con_write+0x20/0x40 drivers/tty/vt/vt.c:3295
 process_output_block drivers/tty/n_tty.c:581 [inline]
 n_tty_write+0x77b/0xaf0 drivers/tty/n_tty.c:2248
 do_tty_write drivers/tty/tty_io.c:1024 [inline]
 file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1095
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116
 call_write_iter include/linux/fs.h:2079 [inline]
 new_sync_write fs/read_write.c:504 [inline]
 vfs_write+0x755/0x8b0 fs/read_write.c:591
 ksys_write+0xd9/0x190 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/0x50 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: 11942 Comm: syz-executor.0 Not tainted 5.17.0-syzkaller-13410-g74164d284b29-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/31 09:18 upstream 74164d284b29 9d49f3a7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2022/03/28 14:51 upstream f82da161ea75 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
* Struck through repros no longer work on HEAD.