syzbot


KCSAN: data-race in n_tty_poll / n_tty_set_termios

Status: auto-closed as invalid on 2020/10/07 08:58
Subsystems: serial
[Documentation on labels]
First crash: 1814d, last: 1814d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_poll / n_tty_set_termios (4) serial 6 1 323d 323d 0/29 auto-obsoleted due to no activity on 2024/11/06 23:03
upstream KCSAN: data-race in n_tty_poll / n_tty_set_termios (2) serial 6 1 891d 891d 0/29 auto-obsoleted due to no activity on 2023/04/26 05:55
upstream KCSAN: data-race in n_tty_poll / n_tty_set_termios (3) serial 6 1 440d 440d 0/29 auto-obsoleted due to no activity on 2024/07/12 11:40

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

write to 0xffffc9000b22505d of 1 bytes by task 30915 on cpu 0:
 n_tty_set_termios+0x211/0x800 drivers/tty/n_tty.c:1815
 tty_set_termios+0x846/0x8a0 drivers/tty/tty_ioctl.c:341
 set_termios+0x343/0x370 drivers/tty/tty_ioctl.c:414
 tty_mode_ioctl+0x636/0x7c0 drivers/tty/tty_ioctl.c:770
 n_tty_ioctl_helper+0x8b/0x460 drivers/tty/tty_ioctl.c:940
 n_tty_ioctl+0x102/0x200 drivers/tty/n_tty.c:2466
 tty_ioctl+0xa5a/0xfd0 drivers/tty/tty_io.c:2665
 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 0xffffc9000b22505d of 1 bytes by task 14201 on cpu 1:
 input_available_p drivers/tty/n_tty.c:1936 [inline]
 n_tty_poll+0x112/0x4a0 drivers/tty/n_tty.c:2409
 tty_poll+0xa7/0x140 drivers/tty/tty_io.c:2112
 vfs_poll include/linux/poll.h:90 [inline]
 do_select+0x8f6/0xf70 fs/select.c:534
 core_sys_select+0x3e3/0x610 fs/select.c:677
 kern_select fs/select.c:718 [inline]
 __do_sys_select fs/select.c:725 [inline]
 __se_sys_select+0x17e/0x1c0 fs/select.c:722
 __x64_sys_select+0x63/0x70 fs/select.c:722
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14201 Comm: agetty Not tainted 5.9.0-rc3-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
2020/09/02 08:54 upstream b765a32a2e91 abf9ba4f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.