syzbot


KCSAN: data-race in __tty_hangup / do_select

Status: auto-closed as invalid on 2020/01/28 22:16
Subsystems: serial
[Documentation on labels]
First crash: 1634d, last: 1634d

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

write to 0xffff8880a9cebe28 of 8 bytes by task 14852 on cpu 1:
 __tty_hangup+0x16a/0x460 drivers/tty/tty_io.c:615
 tty_vhangup+0x21/0x30 drivers/tty/tty_io.c:697
 pty_close+0x25b/0x2d0 drivers/tty/pty.c:79
 tty_release+0x285/0x910 drivers/tty/tty_io.c:1679
 __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
 get_signal+0x12c3/0x1320 kernel/signal.c:2528
 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a9cebe28 of 8 bytes by task 14856 on cpu 0:
 vfs_poll include/linux/poll.h:88 [inline]
 do_select+0x796/0x1020 fs/select.c:534
 core_sys_select+0x381/0x550 fs/select.c:677
 do_pselect.constprop.0+0x11d/0x160 fs/select.c:759
 __do_sys_pselect6 fs/select.c:784 [inline]
 __se_sys_pselect6 fs/select.c:769 [inline]
 __x64_sys_pselect6+0x12e/0x170 fs/select.c:769
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14856 Comm: syz-executor.0 Not tainted 5.4.0-rc7+ #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
2019/11/19 22:13 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.