syzbot


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

Status: auto-closed as invalid on 2021/05/17 11:47
Subsystems: serial
[Documentation on labels]
First crash: 1116d, last: 1116d
Similar bugs (6)
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 1162d 1192d 0/26 auto-closed as invalid on 2021/03/26 07:48
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (6) serial 1 125d 125d 0/26 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 384d 384d 0/26 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 297d 335d 0/26 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 684d 696d 0/26 auto-closed as invalid on 2022/07/17 12:41
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (7) serial 44 1h22m 77d 0/26 moderation: reported on 2024/02/09 22:19

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

write to 0xffff88800b313910 of 4 bytes by task 20198 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:251 [inline]
 tty_set_termios+0xf1/0x8a0 drivers/tty/tty_ioctl.c:331
 set_termios+0x375/0x3b0 drivers/tty/tty_ioctl.c:414
 tty_mode_ioctl+0x573/0x670 drivers/tty/tty_ioctl.c:725
 ppp_asynctty_ioctl+0x229/0x300 drivers/net/ppp/ppp_async.c:326
 tty_ioctl+0xa97/0x10c0 drivers/tty/tty_io.c:2810
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88800b313910 of 4 bytes by task 59 on cpu 0:
 ppp_async_input drivers/net/ppp/ppp_async.c:912 [inline]
 ppp_asynctty_receive+0x760/0xdb0 drivers/net/ppp/ppp_async.c:351
 tty_ldisc_receive_buf+0xc6/0xf0 drivers/tty/tty_buffer.c:465
 tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:38
 receive_buf drivers/tty/tty_buffer.c:481 [inline]
 flush_to_ldisc+0x1c5/0x2c0 drivers/tty/tty_buffer.c:533
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 59 Comm: kworker/u4:2 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/06 21:15 upstream 2d743660786e 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
* Struck through repros no longer work on HEAD.