syzbot


KCSAN: data-race in __process_echoes / n_tty_write (9)

Status: auto-obsoleted due to no activity on 2023/08/21 10:01
Subsystems: serial
[Documentation on labels]
First crash: 332d, last: 286d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __process_echoes / n_tty_write serial 3 1350d 1392d 0/26 auto-closed as invalid on 2020/09/20 17:41
upstream KCSAN: data-race in __process_echoes / n_tty_write (3) serial 7 1064d 1129d 0/26 auto-closed as invalid on 2021/07/04 10:36
upstream KCSAN: data-race in __process_echoes / n_tty_write (11) serial 13 16d 95d 0/26 moderation: reported on 2024/01/24 10:51
upstream KCSAN: data-race in __process_echoes / n_tty_write (10) serial 10 140d 140d 0/26 auto-obsoleted due to no activity on 2024/01/14 04:02
upstream KCSAN: data-race in __process_echoes / n_tty_write (4) serial 1 1021d 1021d 0/26 auto-closed as invalid on 2021/08/15 21:06
upstream KCSAN: data-race in __process_echoes / n_tty_write (6) serial 41 572d 868d 0/26 auto-obsoleted due to no activity on 2022/11/07 20:53
upstream KCSAN: data-race in __process_echoes / n_tty_write (2) serial 4 1218d 1238d 0/26 auto-closed as invalid on 2021/01/30 23:25
upstream KCSAN: data-race in __process_echoes / n_tty_write (7) serial 2 517d 517d 0/26 auto-obsoleted due to no activity on 2023/01/13 20:09
upstream KCSAN: data-race in __process_echoes / n_tty_write (5) serial 1 941d 941d 0/26 auto-closed as invalid on 2021/11/04 02:47
upstream KCSAN: data-race in __process_echoes / n_tty_write (8) serial 3 379d 432d 0/26 auto-obsoleted due to no activity on 2023/05/19 15:46

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __process_echoes / n_tty_write

write to 0xffffc90000b37280 of 8 bytes by task 9414 on cpu 0:
 __process_echoes+0x5db/0x620 drivers/tty/n_tty.c:755
 flush_echoes drivers/tty/n_tty.c:816 [inline]
 __receive_buf drivers/tty/n_tty.c:1614 [inline]
 n_tty_receive_buf_common+0x8f9/0xbd0 drivers/tty/n_tty.c:1710
 n_tty_receive_buf+0x2f/0x40 drivers/tty/n_tty.c:1750
 tiocsti+0x168/0x1c0 drivers/tty/tty_io.c:2301
 tty_ioctl+0x415/0xbc0 drivers/tty/tty_io.c:2700
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcf/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 0xffffc90000b37280 of 8 bytes by task 9413 on cpu 1:
 process_echoes drivers/tty/n_tty.c:793 [inline]
 n_tty_write+0x16c/0xa80 drivers/tty/n_tty.c:2352
 do_tty_write drivers/tty/tty_io.c:1027 [inline]
 file_tty_write+0x396/0x680 drivers/tty/tty_io.c:1098
 tty_write+0x28/0x30 drivers/tty/tty_io.c:1119
 call_write_iter include/linux/fs.h:1871 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4ab/0x7d0 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: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9413 Comm: syz-executor.4 Not tainted 6.5.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/17 09:56 upstream fdf0eaf11452 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __process_echoes / n_tty_write
2023/07/14 15:11 upstream 4b810bf037e5 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __process_echoes / n_tty_write
2023/06/18 10:54 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __process_echoes / n_tty_write
2023/06/01 10:25 upstream 48b1320a674e babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __process_echoes / n_tty_write
* Struck through repros no longer work on HEAD.