syzbot


KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe

Status: auto-closed as invalid on 2021/06/13 02:45
Subsystems: serial
[Documentation on labels]
First crash: 1075d, last: 1075d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe (3) serial 1 924d 924d 0/26 auto-closed as invalid on 2021/11/11 06:32
upstream KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe (2) serial 5 972d 1006d 0/26 auto-closed as invalid on 2021/09/24 06:37

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

write to 0xffff88812fecc5ec of 4 bytes by task 3753 on cpu 0:
 tty_set_flow_change drivers/tty/tty.h:54 [inline]
 n_tty_check_unthrottle+0xe8/0x1d0 drivers/tty/n_tty.c:291
 n_tty_read+0x4a4/0x10c0 drivers/tty/n_tty.c:2161
 iterate_tty_read drivers/tty/tty_io.c:873 [inline]
 tty_read+0x18c/0x410 drivers/tty/tty_io.c:950
 call_read_iter include/linux/fs.h:2108 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812fecc5ec of 4 bytes by task 4627 on cpu 1:
 tty_throttle_safe+0x53/0xd0 drivers/tty/tty_ioctl.c:163
 n_tty_check_throttle drivers/tty/n_tty.c:264 [inline]
 n_tty_receive_buf_common+0x1dca/0x1e20 drivers/tty/n_tty.c:1759
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1775
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:461
 paste_selection+0x250/0x340 drivers/tty/vt/selection.c:408
 tioclinux+0xe5/0x450 drivers/tty/vt/vt.c:3164
 vt_ioctl+0x26e/0x1ed0 drivers/tty/vt/vt_ioctl.c:723
 tty_ioctl+0xa24/0x1120 drivers/tty/tty_io.c:2805
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4627 Comm: syz-executor.0 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/09 02:43 upstream b741596468b0 bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe
* Struck through repros no longer work on HEAD.