syzbot


KCSAN: data-race in __process_echoes / echo_char

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

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

read to 0xffffc90002d02598 of 1 bytes by task 2629 on cpu 0:
 echo_buf drivers/tty/n_tty.c:149 [inline]
 __process_echoes+0x1cf/0x690 drivers/tty/n_tty.c:654
 flush_echoes drivers/tty/n_tty.c:829 [inline]
 __receive_buf drivers/tty/n_tty.c:1648 [inline]
 n_tty_receive_buf_common+0xe57/0x1b00 drivers/tty/n_tty.c:1742
 n_tty_receive_buf2+0x3d/0x60 drivers/tty/n_tty.c:1777
 tty_ldisc_receive_buf+0x71/0xf0 drivers/tty/tty_buffer.c:461
 tty_port_default_receive_buf+0x87/0xd0 drivers/tty/tty_port.c:38
 receive_buf drivers/tty/tty_buffer.c:481 [inline]
 flush_to_ldisc+0x1d5/0x260 drivers/tty/tty_buffer.c:533
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffffc90002d02598 of 1 bytes by task 13794 on cpu 1:
 add_echo_byte drivers/tty/n_tty.c:843 [inline]
 echo_char+0xa2/0x1c0 drivers/tty/n_tty.c:949
 n_tty_receive_char_special+0xb5f/0x1c10 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+0x1844/0x1b00 drivers/tty/n_tty.c:1742
 n_tty_receive_buf+0x3a/0x50 drivers/tty/n_tty.c:1771
 tiocsti drivers/tty/tty_io.c:2197 [inline]
 tty_ioctl+0xb75/0xe10 drivers/tty/tty_io.c:2573
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696
 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718
 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: 1 PID: 13794 Comm: syz-executor.4 Not tainted 5.4.0-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
2019/11/28 23:27 https://github.com/google/ktsan.git kcsan ef798c30ba4e 76357d6f .config console log report ci2-upstream-kcsan-gce
2019/11/22 14:18 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.