syzbot


KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios

Status: moderation: reported on 2023/12/08 00:02
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+fbbe380cd0f9624f998b@syzkaller.appspotmail.com
First crash: 383d, last: 14m

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

write to 0xffff8881552ee121 of 1 bytes by task 30984 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:220 [inline]
 tty_set_termios+0x47f/0x8a0 drivers/tty/tty_ioctl.c:340
 set_termios+0x47e/0x4c0 drivers/tty/tty_ioctl.c:516
 tty_mode_ioctl+0x391/0x5d0
 n_tty_ioctl_helper+0x8d/0x240 drivers/tty/tty_ioctl.c:986
 n_tty_ioctl+0xfd/0x200 drivers/tty/n_tty.c:2511
 tty_ioctl+0x875/0xbc0 drivers/tty/tty_io.c:2812
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881552ee121 of 1 bytes by task 6341 on cpu 0:
 n_tty_is_char_flow_ctrl drivers/tty/n_tty.c:1220 [inline]
 n_tty_receive_char_flow_ctrl+0x22/0x190 drivers/tty/n_tty.c:1241
 n_tty_lookahead_flow_ctrl+0xee/0x130 drivers/tty/n_tty.c:1516
 tty_port_default_lookahead_buf+0x87/0xb0 drivers/tty/tty_port.c:59
 lookahead_bufs drivers/tty/tty_buffer.c:427 [inline]
 flush_to_ldisc+0x30c/0x400 drivers/tty/tty_buffer.c:497
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243

value changed: 0x11 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6341 Comm: kworker/u4:24 Not tainted 6.8.0-rc6-syzkaller-00194-g17ba56605bfd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (296):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/02 05:38 upstream 17ba56605bfd 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/03/01 18:06 upstream 87adedeba51a 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/03/01 07:23 upstream 87adedeba51a 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/29 18:34 upstream 805d849d7c3c 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/24 05:31 upstream 603c04e27c3e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/23 01:52 upstream 1c892cdd8fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/22 08:33 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/21 15:33 upstream 9fc1ccccfd8d 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/21 03:38 upstream fca7526b7d89 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/19 23:35 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/18 20:43 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/17 22:03 upstream ced590523156 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/17 09:09 upstream c1ca10ceffbb 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/15 03:11 upstream 8d3dea210042 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/14 20:18 upstream 7e90b5c295ec d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/14 06:24 upstream 7e90b5c295ec d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/13 16:42 upstream c664e16bb1ba e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/13 11:31 upstream c664e16bb1ba 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/12 20:26 upstream 716f4aaa7b48 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/12 02:20 upstream 841c35169323 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/11 00:07 upstream a5b6244cf87c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/10 14:26 upstream 4a7bbe7519b6 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/09 05:24 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/08 21:41 upstream 047371968ffc 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/08 01:00 upstream 547ab8fc4cb0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/07 11:58 upstream 6d280f4d760e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/06 11:21 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/06 04:05 upstream 54be6c6c5ae8 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/05 13:05 upstream 54be6c6c5ae8 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/03 17:50 upstream b555d191561a a67b2c42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/03 05:07 upstream 56897d51886f 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/02 15:04 upstream 021533194476 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/02 12:11 upstream 5c24e4e9e708 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/02/01 07:22 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/31 00:44 upstream 2a6526c4f389 7f400fcb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/30 15:19 upstream 861c0981648f 7f400fcb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/29 11:50 upstream 41bccc98fb79 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/28 09:53 upstream 8a696a29c690 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/27 19:39 upstream cd2286fc5775 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/26 05:39 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/25 11:51 upstream 6098d87eaf31 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/25 09:28 upstream 443b349019f2 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/24 16:38 upstream 615d30064886 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/24 00:21 upstream 7ed2632ec7d7 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/23 14:00 upstream 5d9248eed480 1c0ecc51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/21 23:34 upstream 4fbbed787267 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2024/01/21 15:27 upstream 7a396820222d 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2023/12/07 12:32 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
2023/12/03 06:38 upstream 1b8af6552cb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char_flow_ctrl / tty_set_termios
* Struck through repros no longer work on HEAD.