syzbot


KCSAN: data-race in n_tty_poll / tty_set_termios

Status: auto-closed as invalid on 2021/05/22 11:20
Subsystems: serial
[Documentation on labels]
First crash: 1248d, last: 1248d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (4) serial 1 980d 980d 0/28 auto-closed as invalid on 2022/02/14 10:19
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (6) serial 1 227d 227d 0/28 auto-obsoleted due to no activity on 2024/03/08 03:04
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (2) serial 2 1171d 1206d 0/28 auto-closed as invalid on 2021/08/07 13:54
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (7) serial 1 51d 51d 0/28 auto-obsoleted due to no activity on 2024/08/31 07:27
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (5) serial 1 370d 370d 0/28 auto-obsoleted due to no activity on 2023/10/17 08:33
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (3) serial 1 1061d 1061d 0/28 auto-closed as invalid on 2021/11/25 02:42

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

write to 0xffff88812bd5191c of 4 bytes by task 12127 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:254 [inline]
 tty_set_termios+0x1c2/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
 n_tty_ioctl_helper+0x8b/0x4c0 drivers/tty/tty_ioctl.c:883
 n_tty_ioctl+0x102/0x200 drivers/tty/n_tty.c:2486
 tty_ioctl+0xa9b/0x1130 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+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812bd5191c of 4 bytes by task 12114 on cpu 0:
 input_available_p drivers/tty/n_tty.c:1935 [inline]
 n_tty_poll+0x144/0x4a0 drivers/tty/n_tty.c:2429
 tty_poll+0xa7/0x140 drivers/tty/tty_io.c:2232
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll fs/eventpoll.c:840 [inline]
 ep_insert fs/eventpoll.c:1507 [inline]
 do_epoll_ctl+0x100e/0x1860 fs/eventpoll.c:2127
 __do_sys_epoll_ctl fs/eventpoll.c:2178 [inline]
 __se_sys_epoll_ctl fs/eventpoll.c:2169 [inline]
 __x64_sys_epoll_ctl+0xb3/0xe0 fs/eventpoll.c:2169
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12114 Comm: syz-executor.3 Not tainted 5.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/17 11:12 upstream 9cdbf6467424 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_poll / tty_set_termios
* Struck through repros no longer work on HEAD.