syzbot


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

Status: auto-obsoleted due to no activity on 2024/03/05 13:33
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+8bf6b1f71bcbfb1973eb@syzkaller.appspotmail.com
First crash: 92d, last: 91d
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 15d 15d 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 (6) serial 2 269d 273d 0/26 auto-obsoleted due to no activity on 2023/09/09 12:48
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (7) serial 1 232d 232d 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 132d 132d 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 0xffff88817f1205dc of 4 bytes by task 5774 on cpu 0:
 tty_set_flow_change drivers/tty/tty.h:59 [inline]
 n_tty_check_unthrottle+0xd7/0x1c0 drivers/tty/n_tty.c:280
 n_tty_read+0xf0a/0x11c0 drivers/tty/n_tty.c:2302
 iterate_tty_read drivers/tty/tty_io.c:862 [inline]
 tty_read+0x152/0x470 drivers/tty/tty_io.c:937
 do_iter_readv_writev+0x2b0/0x330
 vfs_readv+0x1e5/0x640 fs/read_write.c:932
 do_readv+0xf8/0x220 fs/read_write.c:994
 __do_sys_readv fs/read_write.c:1085 [inline]
 __se_sys_readv fs/read_write.c:1082 [inline]
 __x64_sys_readv+0x45/0x50 fs/read_write.c:1082
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

write to 0xffff88817f1205dc of 4 bytes by task 5815 on cpu 1:
 n_tty_receive_buf_common+0xadf/0xbc0
 n_tty_receive_buf2+0x33/0x40 drivers/tty/n_tty.c:1775
 tty_ldisc_receive_buf+0x60/0xe0 drivers/tty/tty_buffer.c:386
 paste_selection+0x1dd/0x2e0 drivers/tty/vt/selection.c:409
 tioclinux+0x2c9/0x4a0 drivers/tty/vt/vt.c:3165
 vt_ioctl+0x84e/0x1830 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0x816/0xbc0 drivers/tty/tty_io.c:2803
 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:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5815 Comm: syz-executor.4 Not tainted 6.8.0-rc2-syzkaller-00031-g861c0981648f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/30 13:32 upstream 861c0981648f 7f400fcb .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
2024/01/29 01:46 upstream 4854cf9c61d0 cc4a4020 .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.