syzbot


KCSAN: data-race in ppp_asynctty_receive / tty_set_termios

Status: auto-closed as invalid on 2021/03/26 07:48
Subsystems: serial
[Documentation on labels]
First crash: 1192d, last: 1162d
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 (6) serial 1 124d 124d 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 43 15h25m 77d 0/26 moderation: reported on 2024/02/09 22:19
upstream KCSAN: data-race in ppp_asynctty_receive / tty_set_termios (2) serial 1 1116d 1116d 0/26 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 0xffff88802b89f529 of 1 bytes by task 12471 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:257 [inline]
 tty_set_termios+0x49c/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:325
 tty_ioctl+0xa97/0x10c0 drivers/tty/tty_io.c:2684
 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/0xa9

read to 0xffff88802b89f529 of 1 bytes by task 38 on cpu 0:
 ppp_async_input drivers/net/ppp/ppp_async.c:912 [inline]
 ppp_asynctty_receive+0x7e0/0xdb0 drivers/net/ppp/ppp_async.c:350
 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:296

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

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/19 07:48 upstream f40ddce88593 14052202 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2021/02/08 12:26 upstream 92bf22614b21 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2021/01/24 19:48 upstream e68061375f79 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2021/01/22 19:57 upstream 83d09ad4b950 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ppp_asynctty_receive / tty_set_termios
2021/01/20 09:55 upstream 45dfb8a5659a d4f4eca5 .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.