syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/12 09:32
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 149d, last: 149d
similar bugs (3):
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 411d 454d 0/24 auto-closed as invalid on 2022/01/22 22:31
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (4) 1 88d 88d 0/24 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 (2) 1 265d 265d 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 0xffff888138ff61e8 of 4 bytes by task 20003 on cpu 1:
 tty_set_flow_change drivers/tty/tty.h:54 [inline]
 n_tty_check_unthrottle+0xd8/0x1c0 drivers/tty/n_tty.c:291
 n_tty_read+0xec6/0x1170 drivers/tty/n_tty.c:2278
 iterate_tty_read drivers/tty/tty_io.c:858 [inline]
 tty_read+0x19d/0x420 drivers/tty/tty_io.c:933
 call_read_iter include/linux/fs.h:2181 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3a5/0x560 fs/read_write.c:470
 ksys_read+0xe8/0x1a0 fs/read_write.c:607
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888138ff61e8 of 4 bytes by task 20041 on cpu 0:
 n_tty_receive_buf_common+0xbbc/0xbf0
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1746
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:457
 paste_selection+0x1d9/0x2d0 drivers/tty/vt/selection.c:409
 tioclinux+0xee/0x3e0 drivers/tty/vt/vt.c:3204
 vt_ioctl+0x263/0x13c0 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0x6be/0x970 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20041 Comm: syz-executor.1 Not tainted 6.0.0-rc4-syzkaller-00059-gd2ec799d1c1b-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/07 09:25 upstream d2ec799d1c1b 5fc30c37 .config console log report info [disk image] [vmlinux] KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common
* Struck through repros no longer work on HEAD.