syzbot


KCSAN: data-race in __process_echoes / echo_char (2)

Status: auto-closed as invalid on 2020/05/12 23:22
Subsystems: serial
[Documentation on labels]
First crash: 1518d, last: 1507d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __process_echoes / echo_char serial 2 1603d 1609d 0/26 auto-closed as invalid on 2020/02/06 23:27
upstream KCSAN: data-race in __process_echoes / echo_char (3) serial 1 1415d 1415d 0/26 closed as invalid on 2020/06/18 14:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __process_echoes / echo_char

write to 0xffffc90001226595 of 1 bytes by task 13122 on cpu 1:
 add_echo_byte drivers/tty/n_tty.c:843 [inline]
 echo_char+0xa0/0x1b0 drivers/tty/n_tty.c:949
 n_tty_receive_char_special+0xb13/0x1bc0 drivers/tty/n_tty.c:1339
 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:2200 [inline]
 tty_ioctl+0xaf5/0xd80 drivers/tty/tty_io.c:2576
 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/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffc90001226595 of 1 bytes by task 11189 on cpu 0:
 echo_buf drivers/tty/n_tty.c:149 [inline]
 __process_echoes+0x576/0x660 drivers/tty/n_tty.c:758
 flush_echoes drivers/tty/n_tty.c:829 [inline]
 __receive_buf drivers/tty/n_tty.c:1648 [inline]
 n_tty_receive_buf_common+0xdae/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:2264
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2410
 kthread+0x1cb/0x1f0 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11189 Comm: kworker/u4:8 Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/03 23:15 https://github.com/google/ktsan.git kcsan 766d004d1b85 1f73b64b .config console log report ci2-upstream-kcsan-gce
2020/02/24 21:46 https://github.com/google/ktsan.git kcsan 766d004d1b85 59b57593 .config console log report ci2-upstream-kcsan-gce
2020/02/21 18:53 https://github.com/google/ktsan.git kcsan 766d004d1b85 2ffa6679 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.