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
Subsystems: serial
[Documentation on labels]
First crash: 902d, last: 859d
Similar bugs (9)
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) serial 1 597d 597d 0/26 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 (10) serial 1 10d 10d 0/26 moderation: reported on 2024/04/15 16:05
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (4) serial 1 536d 536d 0/26 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 (6) serial 2 265d 269d 0/26 auto-obsoleted due to no activity on 2023/09/09 12:48
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (9) serial 2 87d 88d 0/26 auto-obsoleted due to no activity on 2024/03/05 13:33
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (7) serial 1 228d 228d 0/26 auto-obsoleted due to no activity on 2023/10/16 13:09
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (2) serial 1 713d 713d 0/26 auto-closed as invalid on 2022/06/18 01:09
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (8) serial 1 128d 128d 0/26 auto-obsoleted due to no activity on 2024/01/24 11:50
upstream KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common (5) serial 1 369d 369d 0/26 auto-obsoleted due to no activity on 2023/05/28 00:42

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