syzbot


KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (6)

Status: auto-obsoleted due to no activity on 2023/09/09 12:48
Subsystems: serial
[Documentation on labels]
First crash: 273d, last: 268d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (3) serial 1 601d 601d 0/26 auto-obsoleted due to no activity on 2022/10/12 09:32
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common serial 3 863d 906d 0/26 auto-closed as invalid on 2022/01/22 22:31
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (10) serial 1 14d 14d 0/26 moderation: reported on 2024/04/15 16:05
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (4) serial 1 540d 540d 0/26 auto-obsoleted due to no activity on 2022/12/12 09:48
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (9) serial 2 90d 92d 0/26 auto-obsoleted due to no activity on 2024/03/05 13:33
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (7) serial 1 231d 231d 0/26 auto-obsoleted due to no activity on 2023/10/16 13:09
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (2) serial 1 717d 717d 0/26 auto-closed as invalid on 2022/06/18 01:09
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (8) serial 1 131d 131d 0/26 auto-obsoleted due to no activity on 2024/01/24 11:50
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (5) serial 1 373d 373d 0/26 auto-obsoleted due to no activity on 2023/05/28 00:42

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common

write to 0xffff8881249f01e8 of 4 bytes by task 3997 on cpu 1:
 tty_set_flow_change drivers/tty/tty.h:54 [inline]
 n_tty_check_unthrottle+0xd7/0x1c0 drivers/tty/n_tty.c:290
 n_tty_read+0xe95/0x1180 drivers/tty/n_tty.c:2288
 iterate_tty_read drivers/tty/tty_io.c:861 [inline]
 tty_read+0x152/0x460 drivers/tty/tty_io.c:936
 do_iter_read+0x4ac/0x7c0 fs/read_write.c:795
 vfs_readv fs/read_write.c:915 [inline]
 do_readv+0x176/0x2b0 fs/read_write.c:952
 __do_sys_readv fs/read_write.c:1043 [inline]
 __se_sys_readv fs/read_write.c:1040 [inline]
 __x64_sys_readv+0x45/0x50 fs/read_write.c:1040
 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

write to 0xffff8881249f01e8 of 4 bytes by task 3993 on cpu 0:
 n_tty_receive_buf_common+0xaf4/0xbd0
 n_tty_receive_buf+0x2f/0x40 drivers/tty/n_tty.c:1750
 tiocsti+0x177/0x1d0 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

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3993 Comm: syz-executor.1 Not tainted 6.5.0-rc4-syzkaller-00227-g024ff300db33 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/05 12:41 upstream 024ff300db33 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
2023/08/01 00:52 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
* Struck through repros no longer work on HEAD.