syzbot


KCSAN: data-race in n_tty_receive_buf_common / n_tty_write

Status: auto-closed as invalid on 2020/08/23 22:27
Subsystems: serial
[Documentation on labels]
First crash: 1546d, last: 1546d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (2) serial 36 797d 1135d 0/28 auto-closed as invalid on 2022/09/11 21:39
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (4) serial 5 556d 647d 0/28 auto-obsoleted due to no activity on 2023/05/10 10:49
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (6) serial 6 47d 122d 0/28 auto-obsoleted due to no activity on 2024/09/30 21:50
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (5) serial 41 167d 309d 0/28 auto-obsoleted due to no activity on 2024/06/03 08:33
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (3) serial 5 710d 753d 0/28 auto-obsoleted due to no activity on 2022/12/07 10:52

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_receive_buf_common / n_tty_write

write to 0xffffc90004155020 of 8 bytes by task 26188 on cpu 1:
 process_echoes drivers/tty/n_tty.c:810 [inline]
 n_tty_write+0x199/0xae0 drivers/tty/n_tty.c:2319
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x3fc/0x5e0 drivers/tty/tty_io.c:1046
 vfs_write+0x1d6/0x690 fs/read_write.c:576
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffc90004155020 of 8 bytes by task 21 on cpu 0:
 flush_echoes drivers/tty/n_tty.c:824 [inline]
 __receive_buf drivers/tty/n_tty.c:1648 [inline]
 n_tty_receive_buf_common+0x1b77/0x1e70 drivers/tty/n_tty.c:1742
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1777
 tty_ldisc_receive_buf+0x61/0xf0 drivers/tty/tty_buffer.c:461
 tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:38
 receive_buf drivers/tty/tty_buffer.c:481 [inline]
 flush_to_ldisc+0x1b5/0x2b0 drivers/tty/tty_buffer.c:533
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/19 22:19 upstream 92188b41f139 9c812472 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.