syzbot


KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios

Status: auto-obsoleted due to no activity on 2023/04/08 10:34
Subsystems: serial
[Documentation on labels]
First crash: 654d, last: 483d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (4) serial 1 51d 51d 0/26 auto-obsoleted due to no activity on 2024/05/09 07:47
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (3) serial 1 124d 124d 0/26 auto-obsoleted due to no activity on 2024/02/26 02:18
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (2) serial 1 301d 301d 0/26 auto-obsoleted due to no activity on 2023/09/02 17:23

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

write to 0xffff88810391b121 of 1 bytes by task 5721 on cpu 0:
 unset_locked_termios drivers/tty/tty_ioctl.c:237 [inline]
 tty_set_termios+0x48a/0x8a0 drivers/tty/tty_ioctl.c:358
 set_termios+0x251/0x280 drivers/tty/tty_ioctl.c:517
 tty_mode_ioctl+0x405/0x470
 n_tty_ioctl_helper+0x83/0x340 drivers/tty/tty_ioctl.c:980
 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2483
 tty_ioctl+0x6e9/0x940 drivers/tty/tty_io.c:2784
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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 0xffff88810391b121 of 1 bytes by task 5101 on cpu 1:
 n_tty_is_char_flow_ctrl drivers/tty/n_tty.c:1230 [inline]
 n_tty_receive_char_flow_ctrl drivers/tty/n_tty.c:1251 [inline]
 n_tty_lookahead_flow_ctrl+0x12a/0x2f0 drivers/tty/n_tty.c:1499
 tty_port_default_lookahead_buf+0x81/0xb0 drivers/tty/tty_port.c:61
 lookahead_bufs drivers/tty/tty_buffer.c:498 [inline]
 flush_to_ldisc+0x32d/0x460 drivers/tty/tty_buffer.c:568
 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 arch/x86/entry/entry_64.S:308

value changed: 0x11 -> 0x64

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5101 Comm: kworker/u4:8 Not tainted 6.2.0-rc5-syzkaller-00108-g83abd4d4c4be-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (52):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/28 07:58 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/26 08:13 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/24 20:09 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/23 07:06 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/17 12:34 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/12 01:09 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/09 15:27 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/08 05:37 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/04 23:06 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2023/01/03 02:01 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/28 01:50 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/21 05:30 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/19 23:49 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/18 15:05 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/14 23:32 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/13 07:18 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/12 07:28 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/10 21:24 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/12/09 21:58 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/11/30 02:35 upstream ca57f02295f1 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/11/29 06:02 upstream b7b275e60bcd ca9683b8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/11/20 20:36 upstream 77c51ba552a1 5bb70014 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/28 21:35 upstream 05c31d25cc96 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/23 10:59 upstream 4da34b7d175d c0b80a55 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/22 04:12 upstream 440b7895c990 63e790dd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/20 16:04 upstream aae703b02f92 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/18 12:09 upstream bb1a1146467a b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/12 04:30 upstream 60bb8154d1d7 02b6492e .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/07 09:13 upstream 833477fce7a1 80b58a42 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/10/03 00:58 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/30 00:18 upstream c3e0e1e23c70 45fd7169 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/27 14:10 upstream 3800a713b607 10323ddf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/26 21:37 upstream f76349cf4145 d59ba983 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/22 07:30 upstream 06f7db949993 60af5050 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/19 05:08 upstream 38eddeedbbea dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/16 13:45 upstream 3245cb65fd91 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/12 15:14 upstream 80e78fcce86d 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/10 23:33 upstream b96fbd602d35 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/08 23:37 upstream 26b1224903b3 f3027468 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/07 16:14 upstream 0066f1b0e275 c5b7bc57 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/02 17:46 upstream 42e66b1cc3a0 25194605 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/09/01 13:14 upstream c5e4d5e99162 b01ec571 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/30 10:28 upstream dcf8e5633e2e 4a380809 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/29 19:40 upstream b90cb1053190 d7593c58 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/23 06:56 upstream 072e51356cd5 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/22 13:08 upstream 1c23f9e627a7 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/22 08:30 upstream e3f259d33c0e 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/21 16:03 upstream 15b3f48a4339 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/21 05:26 upstream f31c32efd57c 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/13 15:09 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/11 23:53 upstream 2ae08b36c06e 21724cb2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
2022/08/10 17:41 upstream d4252071b97d aaa9eaa0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
* Struck through repros no longer work on HEAD.