syzbot


KCSAN: data-race in n_tty_receive_char / n_tty_receive_char

Status: auto-closed as invalid on 2021/10/05 15:08
Reported-by: syzbot+79da004c606ae02b8613@syzkaller.appspotmail.com
First crash: 503d, last: 454d

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

write to 0xffffc9000f5f5000 of 8 bytes by task 23128 on cpu 1:
 put_tty_queue drivers/tty/n_tty.c:316 [inline]
 n_tty_receive_char+0x622/0x6c0 drivers/tty/n_tty.c:1416
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1560 [inline]
 __receive_buf drivers/tty/n_tty.c:1577 [inline]
 n_tty_receive_buf_common+0xf2e/0x4e70 drivers/tty/n_tty.c:1674
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1703
 tiocsti drivers/tty/tty_io.c:2311 [inline]
 tty_ioctl+0x968/0x1120 drivers/tty/tty_io.c:2719
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:866 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:852
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:852
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffc9000f5f5000 of 8 bytes by task 24387 on cpu 0:
 put_tty_queue drivers/tty/n_tty.c:315 [inline]
 n_tty_receive_char+0x5fc/0x6c0 drivers/tty/n_tty.c:1416
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1560 [inline]
 __receive_buf drivers/tty/n_tty.c:1577 [inline]
 n_tty_receive_buf_common+0xf2e/0x4e70 drivers/tty/n_tty.c:1674
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1709
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:471
 paste_selection+0x215/0x300 drivers/tty/vt/selection.c:408
 tioclinux+0xe5/0x450 drivers/tty/vt/vt.c:3187
 vt_ioctl+0x27f/0x20c0 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xa24/0x1120 drivers/tty/tty_io.c:2805
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:866 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:852
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:852
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000b5b -> 0x0000000000000b5c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 24387 Comm: syz-executor.5 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
==================================================================
BUG: KCSAN: data-race in n_tty_receive_char / n_tty_receive_char

write to 0xffffc9000f5f5018 of 8 bytes by task 23128 on cpu 1:
 add_echo_byte drivers/tty/n_tty.c:842 [inline]
 echo_char drivers/tty/n_tty.c:945 [inline]
 n_tty_receive_char+0x46c/0x6c0 drivers/tty/n_tty.c:1410
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1560 [inline]
 __receive_buf drivers/tty/n_tty.c:1577 [inline]
 n_tty_receive_buf_common+0xf2e/0x4e70 drivers/tty/n_tty.c:1674
 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1703
 tiocsti drivers/tty/tty_io.c:2311 [inline]
 tty_ioctl+0x968/0x1120 drivers/tty/tty_io.c:2719
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:866 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:852
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:852
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffc9000f5f5018 of 8 bytes by task 24387 on cpu 0:
 echo_char drivers/tty/n_tty.c:841 [inline]
 n_tty_receive_char+0x4ae/0x6c0 drivers/tty/n_tty.c:1410
 n_tty_receive_buf_standard drivers/tty/n_tty.c:1560 [inline]
 __receive_buf drivers/tty/n_tty.c:1577 [inline]
 n_tty_receive_buf_common+0xf2e/0x4e70 drivers/tty/n_tty.c:1674
 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1709
 tty_ldisc_receive_buf+0x5b/0xf0 drivers/tty/tty_buffer.c:471
 paste_selection+0x215/0x300 drivers/tty/vt/selection.c:408
 tioclinux+0xe5/0x450 drivers/tty/vt/vt.c:3187
 vt_ioctl+0x27f/0x20c0 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xa24/0x1120 drivers/tty/tty_io.c:2805
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:866 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:852
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:852
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000bbf -> 0x0000000000000bc1

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

Crashes (52):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/08/31 15:07 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/31 12:24 upstream b91db6a0b52e 8f58a0ef .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/30 10:46 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/28 19:54 upstream 3f5ad13cb012 be2c130d .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/28 05:43 upstream 64b4fc45bea6 d5a29e53 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/27 23:40 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/24 18:19 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/24 16:25 upstream d5ae8d7f85b7 b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/23 00:32 upstream 1bdc3d5be7e1 b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/21 09:44 upstream fa54d366a6e4 b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/20 16:33 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/20 09:54 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/19 23:06 upstream f87d64319e6f e2da378b .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/19 15:14 upstream d6d09a694205 e2da378b .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/18 20:51 upstream d6d09a694205 a2fe1cb5 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/17 15:49 upstream 794c7931a242 a2fe1cb5 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/15 20:05 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/15 15:46 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/14 02:00 upstream dfa377c35d70 2489ab88 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/12 22:53 upstream f8fbb47c6e86 c551a195 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/12 14:42 upstream 1746f4db5135 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/11 20:28 upstream 761c6d7ec820 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/11 04:40 upstream 9e723c5380c6 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/10 15:18 upstream 9a73fa375d58 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/09 11:47 upstream 36a21d51725a 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/07 12:43 upstream c9194f32bfd9 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/07 00:48 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/05 20:00 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/04 01:04 upstream d5ad8ec3cfb5 6c236867 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/02 20:51 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/02 06:20 upstream d4affd6b6e81 6c236867 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/08/01 00:59 upstream f3438b4c4e69 6c236867 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/31 09:35 upstream c7d102232649 6c236867 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/29 01:28 upstream 4010a528219e 9a4781d4 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/28 04:39 upstream 7d549995d4e0 17d6ab15 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/27 18:34 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/26 11:41 upstream ff1176468d36 fd511809 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/25 23:07 upstream d8079fac1681 4d1b57d4 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/24 04:40 upstream f0fddcec6b62 bc5f1d88 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/23 03:14 upstream 9bead1b58c4c bc5f1d88 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/21 22:31 upstream 7b6ae471e541 29c3f20f .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/21 13:23 upstream 8cae8cd89f05 29c3f20f .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/20 19:32 upstream 8cae8cd89f05 1b201b48 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/19 23:51 upstream 2734d6c1b1a0 bc48c9ab .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/18 21:47 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/18 04:39 upstream 1d67c8d993ba f115ae98 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/17 18:21 upstream d980cc0620ae f115ae98 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/17 05:28 upstream 0d18c12b288a f115ae98 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/14 23:10 upstream 8096acd7442e 94e0b707 .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/14 11:27 upstream 40226a3d96ef 484502bd .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/13 18:07 upstream 7fef2edf7cc7 70168d5c .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
ci2-upstream-kcsan-gce 2021/07/12 17:36 upstream e73f0f0ee754 f415556d .config log report info KCSAN: data-race in n_tty_receive_char / n_tty_receive_char
* Struck through repros no longer work on HEAD.