syzbot


KCSAN: data-race in __start_tty.part.0 / n_tty_receive_buf_common

Status: closed as invalid on 2020/06/18 14:13
Subsystems: serial
[Documentation on labels]
First crash: 1394d, last: 1394d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __start_tty.part.0 / n_tty_receive_buf_common

read to 0xffff8880808495d4 of 1 bytes by task 11332 on cpu 0:
 n_tty_receive_char_fast drivers/tty/n_tty.c:1439 [inline]
 n_tty_receive_buf_fast drivers/tty/n_tty.c:1609 [inline]
 __receive_buf drivers/tty/n_tty.c:1644 [inline]
 n_tty_receive_buf_common+0x14f6/0x1a40 drivers/tty/n_tty.c:1742
 n_tty_receive_buf2+0x39/0x50 drivers/tty/n_tty.c:1777
 tty_ldisc_receive_buf+0x69/0xe0 drivers/tty/tty_buffer.c:461
 tty_port_default_receive_buf+0x82/0xd0 drivers/tty/tty_port.c:38
 receive_buf drivers/tty/tty_buffer.c:481 [inline]
 flush_to_ldisc+0x1dd/0x260 drivers/tty/tty_buffer.c:533
 process_one_work+0x424/0x930 kernel/workqueue.c:2268
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2414
 kthread+0x203/0x230 kernel/kthread.c:268
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8880808495d4 of 12 bytes by task 1337 on cpu 1:
 __start_tty.part.0+0x25/0x70 drivers/tty/tty_io.c:805
 __start_tty drivers/tty/tty_io.c:803 [inline]
 start_tty+0x5e/0x80 drivers/tty/tty_io.c:816
 n_tty_receive_signal_char+0xc8/0xd0 drivers/tty/n_tty.c:1245
 n_tty_receive_char_special+0xe76/0x1bc0 drivers/tty/n_tty.c:1289
 n_tty_receive_buf_fast drivers/tty/n_tty.c:1610 [inline]
 __receive_buf drivers/tty/n_tty.c:1644 [inline]
 n_tty_receive_buf_common+0x17d6/0x1a40 drivers/tty/n_tty.c:1742
 n_tty_receive_buf+0x36/0x50 drivers/tty/n_tty.c:1771
 tiocsti drivers/tty/tty_io.c:2196 [inline]
 tty_ioctl+0xaf4/0xd80 drivers/tty/tty_io.c:2572
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x101/0x150 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x47/0x60 fs/ioctl.c:770
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1337 Comm: syz-executor.0 Not tainted 5.7.0-rc1-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
2020/06/04 03:32 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 b0d1c0d5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.