syzbot


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

Status: auto-closed as invalid on 2022/09/11 21:39
Subsystems: serial
[Documentation on labels]
First crash: 1131d, last: 793d
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 (4) serial 5 553d 644d 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 43d 119d 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 serial 1 1542d 1542d 0/28 auto-closed as invalid on 2020/08/23 22:27
upstream KCSAN: data-race in n_tty_receive_buf_common / n_tty_write (5) serial 41 163d 305d 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 707d 750d 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 0xffffc9000dbe3020 of 8 bytes by task 14066 on cpu 1:
 process_echoes drivers/tty/n_tty.c:793 [inline]
 n_tty_write+0x198/0xb40 drivers/tty/n_tty.c:2283
 do_tty_write drivers/tty/tty_io.c:1024 [inline]
 file_tty_write+0x3f9/0x650 drivers/tty/tty_io.c:1095
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116
 call_write_iter include/linux/fs.h:2189 [inline]
 new_sync_write fs/read_write.c:493 [inline]
 vfs_write+0x471/0x770 fs/read_write.c:580
 ksys_write+0xe8/0x1a0 fs/read_write.c:633
 __do_sys_write fs/read_write.c:645 [inline]
 __se_sys_write fs/read_write.c:642 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:642
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffc9000dbe3020 of 8 bytes by task 31600 on cpu 0:
 flush_echoes drivers/tty/n_tty.c:807 [inline]
 __receive_buf drivers/tty/n_tty.c:1564 [inline]
 n_tty_receive_buf_common+0x499b/0x4c40 drivers/tty/n_tty.c:1658
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1693
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:452
 tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:39
 receive_buf drivers/tty/tty_buffer.c:472 [inline]
 flush_to_ldisc+0x1ca/0x2f0 drivers/tty/tty_buffer.c:522
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x00000000000000da -> 0x00000000000000e0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31600 Comm: kworker/u4:11 Not tainted 5.19.0-syzkaller-12689-g3bc1bc0b59d0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/07 21:37 upstream 3bc1bc0b59d0 88e3a122 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/07/29 20:53 upstream 6e2c0490769e fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/07/22 17:06 upstream 68e77ffbfd06 22343af4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/07/10 12:34 upstream b1c428b6c368 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/06/12 06:57 upstream 7a68065eb9cd 0d5abf15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/06/07 10:10 upstream e71e60cd74df c8857892 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/06/05 21:03 upstream 952923ddc011 c8857892 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/05/29 21:24 upstream c3a9a3c5f559 a46af346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/05/24 09:00 upstream 140e40e39a29 e7f9308d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/05/02 17:01 upstream 672c0c517342 2df221f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/04/12 20:02 upstream ce522ba9ef7e dacb3f1c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/04/03 16:03 upstream be2d3ecedd99 79a2a8fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/03/16 00:34 upstream 56e337f2cf13 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/03/14 22:06 upstream 09688c0166e7 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/02/23 05:51 upstream 917bbdb107f8 6e821dbf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/02/20 12:15 upstream 4f12b742eb2b 3cd800e4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/02/18 06:50 upstream a3580ac9b7a3 3cd800e4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/02/11 08:24 upstream f1baf68e1383 0b33604d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/01/26 11:45 upstream 0280e3c58f92 2cbffd88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/01/17 09:38 upstream 79e06c4c4950 723cfaf0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/01/15 05:33 upstream 112450df61b7 723cfaf0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/01/12 19:50 upstream daadb3bd0e8d 44d1319a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2022/01/09 08:55 upstream 21f35d2ca83e 2ca0d385 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/12/26 23:55 upstream fc74e0a40e4f e4f103c4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/12/10 17:01 upstream c741e49150db fc17c959 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/12/07 03:44 upstream f80ef9e49fdf 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/12/05 21:34 upstream 944207047ca4 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/12/03 22:04 upstream 5f58da2befa5 c7c20675 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/11/18 15:38 upstream 42eb8fdac2fc 31a30fc0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/11/14 14:27 upstream c8c109546a19 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/11/03 15:12 upstream dcd68326d29b 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/11/03 00:25 upstream bfc484fe6abb 17f3edd2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/10/05 07:23 upstream 84b3e42564ac ce697b49 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/09/25 02:43 upstream 7d42e9818258 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/09/09 15:07 upstream a3fa7a101dcf e2776ee4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
2021/09/03 20:07 upstream a9c9a6f741cd d236a457 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_buf_common / n_tty_write
* Struck through repros no longer work on HEAD.