syzbot


KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe (2)

Status: auto-closed as invalid on 2021/09/24 06:37
Subsystems: serial
[Documentation on labels]
First crash: 984d, last: 951d
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 serial 1 1054d 1054d 0/26 auto-closed as invalid on 2021/06/13 02:45
upstream KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe (3) serial 1 903d 903d 0/26 auto-closed as invalid on 2021/11/11 06:32

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

write to 0xffff888100cd4de8 of 4 bytes by task 16964 on cpu 1:
 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+0x4ae/0x10c0 drivers/tty/n_tty.c:2095
 iterate_tty_read drivers/tty/tty_io.c:868 [inline]
 tty_read+0x18c/0x410 drivers/tty/tty_io.c:944
 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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888100cd4de8 of 4 bytes by task 17098 on cpu 0:
 tty_throttle_safe+0x53/0xd0 drivers/tty/tty_ioctl.c:142
 n_tty_check_throttle drivers/tty/n_tty.c:264 [inline]
 n_tty_receive_buf_common+0x4e1a/0x4e70 drivers/tty/n_tty.c:1693
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1709
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:471
 paste_selection+0x215/0x300 drivers/tty/vt/selection.c:408
 tioclinux+0xe5/0x450 drivers/tty/vt/vt.c:3164
 vt_ioctl+0x26e/0x2060 drivers/tty/vt/vt_ioctl.c:760
 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_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000002

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

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/20 06:23 upstream f87d64319e6f b599f2fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe
2021/08/11 18:11 upstream 761c6d7ec820 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe
2021/08/05 01:18 upstream 251a1524293d b97d64c9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe
2021/07/27 17:52 upstream ff1176468d36 17d6ab15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe
2021/07/18 00:07 upstream d980cc0620ae f115ae98 .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.