syzbot


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

Status: auto-obsoleted due to no activity on 2022/12/19 02:12
Subsystems: serial
[Documentation on labels]
First crash: 664d, last: 664d
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 (3) serial 2 891d 894d 0/27 auto-closed as invalid on 2022/05/05 09:26
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 (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 0xffff8881404b09bc of 1 bytes by task 29139 on cpu 0:
 __stop_tty+0x3e/0x80 drivers/tty/tty_io.c:754
 n_tty_ioctl_helper+0x2bd/0x340 drivers/tty/tty_ioctl.c:949
 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2483
 tty_ioctl+0x6e9/0x940 drivers/tty/tty_io.c:2780
 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+0x63/0xcd

read to 0xffff8881404b09bc of 1 bytes by task 29141 on cpu 1:
 do_con_write+0x1785/0x3590 drivers/tty/vt/vt.c:2931
 con_write+0x25/0x420 drivers/tty/vt/vt.c:3295
 n_tty_write+0x3aa/0xb10 drivers/tty/n_tty.c:2373
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3b8/0x620 drivers/tty/tty_io.c:1089
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1110
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/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+0x3e/0x50 fs/read_write.c:646
 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+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29141 Comm: syz-executor.1 Not tainted 6.1.0-rc4-syzkaller-00372-gaf7a05689189-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/14 02:11 upstream af7a05689189 7ba4d859 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
* Struck through repros no longer work on HEAD.