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: 1021d, last: 3d17h

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

write to 0xffff88811aa70d08 of 44 bytes by task 6821 on cpu 0:
 tty_set_termios+0xc0/0x8c0 drivers/tty/tty_ioctl.c:335
 set_termios+0x35b/0x4d0 drivers/tty/tty_ioctl.c:516
 tty_mode_ioctl+0x379/0x5c0 drivers/tty/tty_ioctl.c:-1
 n_tty_ioctl_helper+0x91/0x210 drivers/tty/tty_ioctl.c:982
 n_tty_ioctl+0x101/0x200 drivers/tty/n_tty.c:2509
 tty_ioctl+0x83f/0xb80 drivers/tty/tty_io.c:2801
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x1816/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811aa70d21 of 1 bytes by task 12 on cpu 1:
 n_tty_is_char_flow_ctrl drivers/tty/n_tty.c:1204 [inline]
 n_tty_receive_char_flow_ctrl+0x23/0x1a0 drivers/tty/n_tty.c:1225
 n_tty_lookahead_flow_ctrl+0xed/0x130 drivers/tty/n_tty.c:1500
 tty_port_default_lookahead_buf+0x91/0xc0 drivers/tty/tty_port.c:59
 lookahead_bufs drivers/tty/tty_buffer.c:428 [inline]
 flush_to_ldisc+0x288/0x340 drivers/tty/tty_buffer.c:498
 process_one_work kernel/workqueue.c:3263 [inline]
 process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3346
 worker_thread+0x582/0x770 kernel/workqueue.c:3427
 kthread+0x489/0x510 kernel/kthread.c:463
 ret_from_fork+0x122/0x1b0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x11 -> 0x4b

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:0 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (655):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/26 05:28 upstream 8a2bcda5e139 64219f15 .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
2025/11/20 12:09 upstream 23cb64fb7625 2cc4c24a .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
2025/11/15 20:45 upstream 7a0892d2836e f7988ea4 .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
2025/11/13 22:52 upstream 2ccec5944606 07e030de .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
2025/11/13 07:10 upstream e927c520e1ba 07e030de .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
2025/11/13 01:25 upstream 24172e0d7990 07e030de .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
2025/11/12 12:40 upstream 24172e0d7990 4e1406b4 .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
2025/11/09 01:21 upstream 7bb4d6512545 4e1406b4 .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
2025/11/01 05:30 upstream 58fdd8484c05 2c50b6a9 .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
2025/10/29 18:02 upstream e53642b87a4f fd2207e7 .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
2025/10/29 00:03 upstream 8eefed8f65cc fd2207e7 .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
2025/10/28 12:21 upstream fd57572253bc fd2207e7 .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
2025/10/27 13:48 upstream dcb6fa37fd7b fd2207e7 .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
2025/10/27 09:39 upstream dcb6fa37fd7b c0460fcd .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
2025/10/24 19:43 upstream 6fab32bb6508 c0460fcd .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
2025/10/20 18:10 upstream 211ddde0823f d422939c .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
2025/10/19 18:55 upstream d9043c79ba68 1c8c8cd8 .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
2025/10/18 03:21 upstream cf1ea8854e4f 1c8c8cd8 .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
2025/10/17 07:28 upstream 98ac9cc4b445 19568248 .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
2025/10/16 03:00 upstream 1f4a222b0e33 19568248 .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
2025/10/14 22:15 upstream 9b332cece987 b6605ba8 .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
2025/10/12 10:24 upstream 67029a49db6c ff1712fe .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
2025/10/10 13:29 upstream 5472d60c129f ff1712fe .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
2025/10/04 11:31 upstream cbf33b8e0b36 49379ee0 .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
2025/10/03 16:13 upstream e406d57be7bd 49379ee0 .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
2025/09/27 21:23 upstream fec734e8d564 001c9061 .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
2025/09/27 07:37 upstream 083fc6d7fa0d 001c9061 .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
2025/09/26 04:34 upstream 4ff71af020ae 0abd0691 .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
2025/09/23 15:34 upstream cec1e6e5d1ab 0ac7291c .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
2025/09/22 00:32 upstream 2d5bd41a4505 67c37560 .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
2025/09/21 13:47 upstream f975f08c2e89 67c37560 .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
2025/09/20 19:08 upstream 3b08f56fbbb9 67c37560 .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
2025/09/20 01:54 upstream cd89d487374c 67c37560 .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
2025/09/19 05:02 upstream cbf658dd0941 e2beed91 .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
2025/09/17 20:54 upstream d4b779985a6c e2beed91 .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
2025/09/17 17:42 upstream 5aca7966d2a7 e2beed91 .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
2025/09/16 08:08 upstream 46a51f4f5eda e2beed91 .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
2025/09/14 22:35 upstream 79e8447ec662 e2beed91 .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
2025/09/14 11:55 upstream f83a4f2a4d8c e2beed91 .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
2025/09/11 11:13 upstream 7aac71907bde fdeaa69b .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
2025/09/08 02:52 upstream 6ab41fca2e80 d291dd2d .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
2025/09/05 22:38 upstream c8ed9b5c02a5 d291dd2d .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
2025/09/04 20:38 upstream 08b06c30a445 d291dd2d .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
2025/09/02 08:26 upstream b320789d6883 807a3b61 .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
2025/09/01 03:56 upstream 5c3b3264e585 807a3b61 .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.