syzbot


KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common

Status: auto-closed as invalid on 2022/01/22 22:31
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 387d, last: 344d
similar bugs (2):
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) 1 82d 82d 0/24 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 (2) 1 198d 198d 0/24 auto-closed as invalid on 2022/06/18 01:09

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

write to 0xffff888134dd05e8 of 4 bytes by task 25676 on cpu 1:
 tty_set_flow_change drivers/tty/tty.h:54 [inline]
 n_tty_check_throttle drivers/tty/n_tty.c:261 [inline]
 n_tty_receive_buf_common+0x4dc8/0x4e70 drivers/tty/n_tty.c:1693
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1703
 tiocsti drivers/tty/tty_io.c:2310 [inline]
 tty_ioctl+0x969/0x1130 drivers/tty/tty_io.c:2719
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff888134dd05e8 of 4 bytes by task 25675 on cpu 0:
 __tty_set_flow_change drivers/tty/tty.h:49 [inline]
 n_tty_check_unthrottle+0x1bc/0x1d0 drivers/tty/n_tty.c:299
 n_tty_read+0xe07/0x1070 drivers/tty/n_tty.c:2214
 iterate_tty_read drivers/tty/tty_io.c:868 [inline]
 tty_read+0x19c/0x430 drivers/tty/tty_io.c:944
 call_read_iter include/linux/fs.h:2156 [inline]
 do_iter_readv_writev+0x2fb/0x380 fs/read_write.c:723
 do_iter_read+0x192/0x5d0 fs/read_write.c:786
 vfs_readv fs/read_write.c:906 [inline]
 do_readv+0x171/0x2c0 fs/read_write.c:943
 __do_sys_readv fs/read_write.c:1034 [inline]
 __se_sys_readv fs/read_write.c:1031 [inline]
 __x64_sys_readv+0x41/0x50 fs/read_write.c:1031
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000002 -> 0x00000000

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

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/18 22:25 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
ci2-upstream-kcsan-gce 2021/11/22 23:18 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
ci2-upstream-kcsan-gce 2021/11/06 06:39 upstream fe91c4725aee 4c1be0be .config log report info KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
* Struck through repros no longer work on HEAD.