syzbot


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

Status: auto-obsoleted due to no activity on 2023/07/20 09:58
Subsystems: serial
[Documentation on labels]
First crash: 341d, last: 328d
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 915d 915d 0/26 auto-closed as invalid on 2021/12/10 00:27
upstream KCSAN: data-race in __stop_tty / do_con_write (3) serial 2 769d 772d 0/26 auto-closed as invalid on 2022/05/05 09:26
upstream KCSAN: data-race in __stop_tty / do_con_write serial 3 987d 1026d 0/26 auto-closed as invalid on 2021/09/28 23:33
upstream KCSAN: data-race in __stop_tty / do_con_write (9) serial 2 49d 70d 0/26 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 185d 150d 0/26 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 541d 541d 0/26 auto-obsoleted due to no activity on 2022/12/19 02:12
upstream KCSAN: data-race in __stop_tty / do_con_write (6) kernel 1 456d 456d 0/26 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 592d 592d 0/26 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 0xffff88816e51ddbc of 1 bytes by task 10879 on cpu 0:
 __stop_tty+0x42/0x90 drivers/tty/tty_io.c:754
 n_tty_ioctl_helper+0x21f/0x240 drivers/tty/tty_ioctl.c:971
 n_tty_ioctl+0xfd/0x200 drivers/tty/n_tty.c:2482
 tty_ioctl+0x86f/0xbc0 drivers/tty/tty_io.c:2786
 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 0xffff88816e51ddbc of 1 bytes by task 10869 on cpu 1:
 do_con_write+0x1459/0x35d0 drivers/tty/vt/vt.c:2886
 con_write+0x24/0x40 drivers/tty/vt/vt.c:3246
 n_tty_write+0x3b3/0xa80 drivers/tty/n_tty.c:2372
 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:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x47b/0x780 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: 10869 Comm: syz-executor.2 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/15 09:54 upstream b6dad5178cea 90d4044e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/14 11:20 upstream b6dad5178cea d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/12 19:01 upstream 858fd168a95c aaed0183 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/12 07:42 upstream 858fd168a95c 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/11 00:49 upstream 022ce8862dff 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/09 14:25 upstream 33f2b5785a2b 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/06/02 04:50 upstream 1874a42a7d74 a4ae4f42 .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.