syzbot


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

Status: auto-obsoleted due to no activity on 2023/12/24 00:05
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+2796017df4f6ab824ce1@syzkaller.appspotmail.com
First crash: 171d, last: 118d
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 848d 848d 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 701d 704d 0/26 auto-closed as invalid on 2022/05/05 09:26
upstream KCSAN: data-race in __stop_tty / do_con_write serial 3 920d 959d 0/26 auto-closed as invalid on 2021/09/28 23:33
upstream KCSAN: data-race in __stop_tty / do_con_write (9) serial 1 3d11h 3d11h 0/26 moderation: reported on 2024/02/27 21:06
upstream KCSAN: data-race in __stop_tty / do_con_write (5) serial 1 474d 474d 0/26 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 260d 274d 0/26 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 388d 388d 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 525d 525d 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 0xffff88815b6fddbc of 1 bytes by task 31334 on cpu 0:
 __stop_tty+0x42/0x90 drivers/tty/tty_io.c:753
 n_tty_ioctl_helper+0x21f/0x240 drivers/tty/tty_ioctl.c:955
 n_tty_ioctl+0xfd/0x200 drivers/tty/n_tty.c:2511
 tty_ioctl+0x875/0xbc0 drivers/tty/tty_io.c:2789
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88815b6fddbc of 1 bytes by task 31325 on cpu 1:
 do_con_write+0x1459/0x35d0 drivers/tty/vt/vt.c:2885
 con_write+0x26/0x40 drivers/tty/vt/vt.c:3251
 process_output_block drivers/tty/n_tty.c:574 [inline]
 n_tty_write+0x84a/0xb60 drivers/tty/n_tty.c:2379
 iterate_tty_write drivers/tty/tty_io.c:1021 [inline]
 file_tty_write+0x382/0x680 drivers/tty/tty_io.c:1092
 tty_write+0x28/0x30 drivers/tty/tty_io.c:1113
 call_write_iter include/linux/fs.h:2020 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x48a/0x790 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 31325 Comm: syz-executor.3 Not tainted 6.6.0-syzkaller-14263-gaea6bf908d73 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/05 07:37 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/10/25 11:42 upstream 4f82870119a4 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/10/06 05:32 upstream 3006adf3be79 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/10/04 13:22 upstream cbf3a2cb156a b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
2023/09/13 02:18 upstream a747acc0b752 59da8366 .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.