syzbot


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

Status: auto-closed as invalid on 2021/01/30 23:25
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+ffae0a48371a231c9e3b@syzkaller.appspotmail.com
First crash: 1261d, last: 1208d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __process_echoes / n_tty_write (9) serial 4 275d 321d 0/26 auto-obsoleted due to no activity on 2023/08/21 10:01
upstream KCSAN: data-race in __process_echoes / n_tty_write serial 3 1340d 1382d 0/26 auto-closed as invalid on 2020/09/20 17:41
upstream KCSAN: data-race in __process_echoes / n_tty_write (3) serial 7 1053d 1118d 0/26 auto-closed as invalid on 2021/07/04 10:36
upstream KCSAN: data-race in __process_echoes / n_tty_write (11) serial 13 6d10h 84d 0/26 moderation: reported on 2024/01/24 10:51
upstream KCSAN: data-race in __process_echoes / n_tty_write (10) serial 10 130d 130d 0/26 auto-obsoleted due to no activity on 2024/01/14 04:02
upstream KCSAN: data-race in __process_echoes / n_tty_write (4) serial 1 1011d 1011d 0/26 auto-closed as invalid on 2021/08/15 21:06
upstream KCSAN: data-race in __process_echoes / n_tty_write (6) serial 41 562d 857d 0/26 auto-obsoleted due to no activity on 2022/11/07 20:53
upstream KCSAN: data-race in __process_echoes / n_tty_write (7) serial 2 506d 507d 0/26 auto-obsoleted due to no activity on 2023/01/13 20:09
upstream KCSAN: data-race in __process_echoes / n_tty_write (5) serial 1 931d 931d 0/26 auto-closed as invalid on 2021/11/04 02:47
upstream KCSAN: data-race in __process_echoes / n_tty_write (8) serial 3 369d 422d 0/26 auto-obsoleted due to no activity on 2023/05/19 15:46

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

write to 0xffffc900067bf278 of 8 bytes by task 30509 on cpu 1:
 __process_echoes+0x603/0x650 drivers/tty/n_tty.c:769
 flush_echoes drivers/tty/n_tty.c:830 [inline]
 __receive_buf drivers/tty/n_tty.c:1649 [inline]
 n_tty_receive_buf_common+0x1b80/0x1df0 drivers/tty/n_tty.c:1744
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1779
 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+0x1c5/0x2b0 drivers/tty/tty_buffer.c:533
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x635/0xb90 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffffc900067bf278 of 8 bytes by task 1049 on cpu 0:
 process_echoes drivers/tty/n_tty.c:807 [inline]
 n_tty_write+0x147/0xae0 drivers/tty/n_tty.c:2321
 do_tty_write drivers/tty/tty_io.c:961 [inline]
 tty_write+0x3f9/0x610 drivers/tty/tty_io.c:1045
 vfs_write+0x21a/0x7c0 fs/read_write.c:603
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1049 Comm: syz-executor.3 Not tainted 5.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/26 23:25 upstream 40f78232f973 821e0b09 .config console log report info ci2-upstream-kcsan-gce
2020/12/14 01:53 upstream ec6f5e0e5ca0 8f160dd5 .config console log report info ci2-upstream-kcsan-gce
2020/11/08 22:54 upstream 9dbc1c03eeb5 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/03 18:45 upstream b7cbaf59f62f cba33199 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.