syzbot


KCSAN: data-race in n_tty_receive_char_inline / n_tty_write (2)

Status: auto-closed as invalid on 2021/06/27 20:47
Subsystems: serial
[Documentation on labels]
First crash: 1039d, last: 1039d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_receive_char_inline / n_tty_write serial 1 1092d 1092d 0/26 auto-closed as invalid on 2021/05/17 09:21

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

write to 0xffffc90000339028 of 8 bytes by task 17107 on cpu 0:
 commit_echoes drivers/tty/n_tty.c:777 [inline]
 n_tty_receive_char_inline+0x4d8/0x680 drivers/tty/n_tty.c:1418
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1580 [inline]
 __receive_buf drivers/tty/n_tty.c:1643 [inline]
 n_tty_receive_buf_common+0x1893/0x1e20 drivers/tty/n_tty.c:1740
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1775
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:461
 tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:39
 receive_buf drivers/tty/tty_buffer.c:481 [inline]
 flush_to_ldisc+0x1c5/0x2c0 drivers/tty/tty_buffer.c:533
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2275
 worker_thread+0x636/0xae0 kernel/workqueue.c:2421
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffffc90000339028 of 8 bytes by task 28365 on cpu 1:
 process_echoes drivers/tty/n_tty.c:803 [inline]
 n_tty_write+0x137/0xaf0 drivers/tty/n_tty.c:2340
 do_tty_write drivers/tty/tty_io.c:1043 [inline]
 file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1133
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1140
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_writev fs/read_write.c:939 [inline]
 do_writev+0x1e0/0x400 fs/read_write.c:982
 __do_sys_writev fs/read_write.c:1055 [inline]
 __se_sys_writev fs/read_write.c:1052 [inline]
 __x64_sys_writev+0x41/0x50 fs/read_write.c:1052
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28365 Comm: syz-executor.5 Not tainted 5.13.0-rc2-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
2021/05/23 20:42 upstream 4d7620341eda 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_inline / n_tty_write
* Struck through repros no longer work on HEAD.