syzbot


KCSAN: data-race in n_tty_write / tty_release

Status: auto-closed as invalid on 2020/04/15 20:43
Subsystems: serial
[Documentation on labels]
First crash: 1557d, last: 1541d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_write / tty_release (2) serial 1 1105d 1105d 0/26 auto-closed as invalid on 2021/05/21 10:47
upstream KCSAN: data-race in n_tty_write / tty_release (3) serial 1 939d 939d 0/26 auto-closed as invalid on 2021/11/03 05:49

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_write / tty_release

read to 0xffff888098afe5c8 of 4 bytes by task 12650 on cpu 0:
 n_tty_write+0x1e2/0x9f0 drivers/tty/n_tty.c:2327
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x2fb/0x4e0 drivers/tty/tty_io.c:1046
 __vfs_write+0x67/0xc0 fs/read_write.c:494
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888098afe5c8 of 4 bytes by task 12641 on cpu 1:
 tty_release+0x504/0x910 drivers/tty/tty_io.c:1744
 __fput+0x1e1/0x520 fs/file_table.c:280
 ____fput+0x1f/0x30 fs/file_table.c:313
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/05 20:37 https://github.com/google/ktsan.git kcsan 245a43005292 662cf49a .config console log report ci2-upstream-kcsan-gce
2020/01/21 00:16 https://github.com/google/ktsan.git kcsan 245a43005292 8eda0b95 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.