syzbot


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

Status: auto-closed as invalid on 2021/11/11 06:32
Subsystems: serial
[Documentation on labels]
First crash: 932d, last: 932d
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 1084d 1084d 0/26 auto-closed as invalid on 2021/06/13 02:45
upstream KCSAN: data-race in n_tty_check_unthrottle / tty_throttle_safe (2) serial 5 980d 1014d 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 0xffff8881028f3de8 of 4 bytes by task 29812 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+0x4af/0x10c0 drivers/tty/n_tty.c:2095
 iterate_tty_read drivers/tty/tty_io.c:868 [inline]
 tty_read+0x199/0x420 drivers/tty/tty_io.c:944
 call_read_iter include/linux/fs.h:2157 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:485
 ksys_read+0xd9/0x190 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:631
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881028f3de8 of 4 bytes by task 30211 on cpu 1:
 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:3204
 vt_ioctl+0x27f/0x2150 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xa8e/0x11a0 drivers/tty/tty_io.c:2805
 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/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30211 Comm: syz-executor.1 Tainted: G        W         5.15.0-rc4-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/10/07 06:32 upstream 5af4055fa813 62ee0987 .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.