syzbot


KCSAN: data-race in n_tty_poll / tty_set_termios (3)

Status: auto-closed as invalid on 2021/11/25 02:42
Subsystems: serial
[Documentation on labels]
First crash: 890d, last: 890d
Similar bugs (5)
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 809d 809d 0/26 auto-closed as invalid on 2022/02/14 10:19
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (6) serial 1 56d 56d 0/26 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 999d 1034d 0/26 auto-closed as invalid on 2021/08/07 13:54
upstream KCSAN: data-race in n_tty_poll / tty_set_termios serial 1 1077d 1077d 0/26 auto-closed as invalid on 2021/05/22 11:20
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (5) serial 1 199d 199d 0/26 auto-obsoleted due to no activity on 2023/10/17 08:33

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

write to 0xffff88812f75f51f of 1 bytes by task 25463 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:236 [inline]
 tty_set_termios+0x41b/0x8b0 drivers/tty/tty_ioctl.c:355
 set_termios+0x384/0x3c0 drivers/tty/tty_ioctl.c:438
 tty_mode_ioctl+0x5ad/0x6a0
 n_tty_ioctl_helper+0x89/0x4c0 drivers/tty/tty_ioctl.c:907
 n_tty_ioctl+0x102/0x200 drivers/tty/n_tty.c:2421
 tty_ioctl+0xaf9/0x11a0 drivers/tty/tty_io.c:2814
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812f75f51f of 1 bytes by task 25359 on cpu 0:
 input_available_p drivers/tty/n_tty.c:1868 [inline]
 n_tty_poll+0xee/0x4a0 drivers/tty/n_tty.c:2364
 tty_poll+0xa7/0x140 drivers/tty/tty_io.c:2227
 vfs_poll include/linux/poll.h:90 [inline]
 do_pollfd fs/select.c:869 [inline]
 do_poll fs/select.c:917 [inline]
 do_sys_poll+0x4b8/0xad0 fs/select.c:1011
 __do_sys_ppoll fs/select.c:1117 [inline]
 __se_sys_ppoll+0x18b/0x1d0 fs/select.c:1097
 __x64_sys_ppoll+0x63/0x70 fs/select.c:1097
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x01 -> 0xb9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25359 Comm: syz-executor.5 Not tainted 5.15.0-rc6-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/10/21 02:39 upstream 2f111a6fd5b5 f111d03b .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.