syzbot


KCSAN: data-race in __tty_hangup / n_tty_read

Status: auto-closed as invalid on 2020/03/15 15:36
Subsystems: serial
[Documentation on labels]
First crash: 1577d, last: 1565d

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

read to 0xffff8881269b31e4 of 1 bytes by task 9591 on cpu 1:
 n_tty_read+0x2e3/0x12b0 drivers/tty/n_tty.c:2180
 tty_read+0x11d/0x1c0 drivers/tty/tty_io.c:869
 __vfs_read+0x67/0xc0 fs/read_write.c:425
 vfs_read fs/read_write.c:461 [inline]
 vfs_read+0x143/0x2c0 fs/read_write.c:446
 ksys_read+0xd5/0x1b0 fs/read_write.c:587
 __do_sys_read fs/read_write.c:597 [inline]
 __se_sys_read fs/read_write.c:595 [inline]
 __x64_sys_read+0x4c/0x60 fs/read_write.c:595
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881269b31e4 of 11 bytes by task 9597 on cpu 0:
 __tty_hangup+0x370/0x460 drivers/tty/tty_io.c:634
 tty_vhangup drivers/tty/tty_io.c:698 [inline]
 tty_ioctl+0x3af/0xe10 drivers/tty/tty_io.c:2601
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x84f/0xcf0 fs/ioctl.c:732
 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:754
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9597 Comm: syz-executor.4 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/01/05 15:30 https://github.com/google/ktsan.git kcsan 245a43005292 d646e21f .config console log report ci2-upstream-kcsan-gce
2019/12/24 11:23 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.