syzbot


KCSAN: data-race in __tty_hangup / vfs_write

Status: auto-closed as invalid on 2021/10/12 13:22
Subsystems: serial
[Documentation on labels]
First crash: 972d, last: 972d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __tty_hangup / vfs_write (2) serial 1 276d 276d 0/26 auto-obsoleted due to no activity on 2023/09/08 17:56

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __tty_hangup / vfs_write

write to 0xffff88815b1ba428 of 8 bytes by task 5778 on cpu 0:
 __tty_hangup+0x247/0x650 drivers/tty/tty_io.c:630
 tty_vhangup+0x13/0x20 drivers/tty/tty_io.c:711
 pty_close+0x27b/0x2a0 drivers/tty/pty.c:79
 tty_release+0x255/0xa10 drivers/tty/tty_io.c:1771
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88815b1ba428 of 8 bytes by task 5784 on cpu 1:
 call_write_iter include/linux/fs.h:2163 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x765/0x8c0 fs/read_write.c:594
 ksys_write+0xce/0x180 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:656
 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: 0xffffffff8308fa28 -> 0xffffffff8308f928

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5784 Comm: syz-executor.2 Not tainted 5.14.0-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/09/07 13:16 upstream 4b93c544e90e 6ca60148 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __tty_hangup / vfs_write
* Struck through repros no longer work on HEAD.