syzbot


KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (10)

Status: moderation: reported on 2025/06/12 09:54
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+3f6682fe2bea300dcde6@syzkaller.appspotmail.com
First crash: 3d15h, last: 18h23m
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios serial 5 1577d 1607d 0/28 auto-closed as invalid on 2021/03/26 07:48
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (9) serial 6 209d 216d 0/28 auto-obsoleted due to no activity on 2025/01/13 19:42
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (6) serial 1 539d 539d 0/28 auto-obsoleted due to no activity on 2024/01/28 03:42
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (4) serial 1 799d 799d 0/28 auto-obsoleted due to no activity on 2023/05/14 00:05
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (5) serial 16 712d 750d 0/28 auto-obsoleted due to no activity on 2023/08/08 14:34
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (3) serial 2 1099d 1111d 0/28 auto-closed as invalid on 2022/07/17 12:41
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (8) serial 3 258d 262d 0/28 auto-obsoleted due to no activity on 2024/11/04 04:52
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (7) serial 51 408d 492d 0/28 auto-obsoleted due to no activity on 2024/05/31 11:08
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (2) serial 1 1531d 1531d 0/28 auto-closed as invalid on 2021/05/17 11:47

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

write to 0xffff88811a11ed08 of 44 bytes by task 11955 on cpu 0:
 tty_set_termios+0xc0/0x8c0 drivers/tty/tty_ioctl.c:335
 set_termios+0x496/0x4e0 drivers/tty/tty_ioctl.c:512
 tty_mode_ioctl+0x379/0x5c0 drivers/tty/tty_ioctl.c:-1
 ppp_asynctty_ioctl+0x13f/0x2d0 drivers/net/ppp/ppp_async.c:324
 tty_ioctl+0x845/0xb80 drivers/tty/tty_io.c:2801
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x19a8/0x2fb0 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 0xffff88811a11ed22 of 1 bytes by task 1722 on cpu 1:
 ppp_async_input drivers/net/ppp/ppp_async.c:908 [inline]
 ppp_asynctty_receive+0x884/0xd40 drivers/net/ppp/ppp_async.c:342
 tty_ldisc_receive_buf+0xbf/0xf0 drivers/tty/tty_buffer.c:391
 tty_port_default_receive_buf+0x59/0x90 drivers/tty/tty_port.c:37
 receive_buf drivers/tty/tty_buffer.c:445 [inline]
 flush_to_ldisc+0x141/0x360 drivers/tty/tty_buffer.c:495
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3321
 worker_thread+0x582/0x770 kernel/workqueue.c:3402
 kthread+0x486/0x510 kernel/kthread.c:464
 ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x13 -> 0x31

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 1722 Comm: kworker/u8:6 Not tainted 6.16.0-rc1-syzkaller-00236-g8c6bc74c7f89 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/15 06:48 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2025/06/14 04:34 upstream 02adc1490e6d 0e8da31f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2025/06/14 04:33 upstream 02adc1490e6d 0e8da31f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2025/06/14 04:29 upstream 02adc1490e6d 0e8da31f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2025/06/13 20:36 upstream 02adc1490e6d 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2025/06/12 09:54 upstream 2c4a1f3fe03e 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
* Struck through repros no longer work on HEAD.