syzbot


KCSAN: data-race in __tty_hangup / do_dentry_open

Status: auto-closed as invalid on 2021/03/02 15:38
Subsystems: serial
[Documentation on labels]
First crash: 1214d, last: 1214d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __tty_hangup / do_dentry_open (4) serial 1 117d 117d 0/26 auto-obsoleted due to no activity on 2024/03/04 05:22
upstream KCSAN: data-race in __tty_hangup / do_dentry_open (2) serial 1 714d 714d 0/26 auto-closed as invalid on 2022/07/16 05:33
upstream KCSAN: data-race in __tty_hangup / do_dentry_open (3) serial 1 630d 630d 0/26 auto-obsoleted due to no activity on 2022/10/07 18:15

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

write to 0xffff88810bb2f928 of 8 bytes by task 12322 on cpu 1:
 __tty_hangup+0x23a/0x610 drivers/tty/tty_io.c:613
 tty_vhangup+0x13/0x20 drivers/tty/tty_io.c:695
 pty_close+0x272/0x290 drivers/tty/pty.c:79
 tty_release+0x255/0x9f0 drivers/tty/tty_io.c:1686
 __fput+0x24b/0x4e0 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x16b/0x1a0 kernel/entry/common.c:201
 __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+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810bb2f928 of 8 bytes by task 12323 on cpu 0:
 do_dentry_open+0x633/0x870 fs/open.c:828
 vfs_open+0x43/0x50 fs/open.c:931
 do_open fs/namei.c:3254 [inline]
 path_openat+0x1844/0x20a0 fs/namei.c:3371
 do_filp_open+0xbd/0x1d0 fs/namei.c:3398
 do_sys_openat2+0xa3/0x240 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_open fs/open.c:1196 [inline]
 __se_sys_open fs/open.c:1192 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1192
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12323 Comm: syz-executor.5 Not tainted 5.11.0-rc5-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/01/26 15:38 upstream 13391c60da33 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __tty_hangup / do_dentry_open
* Struck through repros no longer work on HEAD.