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: 1250d, last: 1250d
Similar bugs (8)
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 1169d 1169d 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 416d 416d 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 (8) serial 2 97d 105d 0/28 auto-obsoleted due to no activity on 2025/02/11 05:59
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (2) serial 2 1360d 1395d 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 240d 240d 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 serial 1 1437d 1437d 0/28 auto-closed as invalid on 2021/05/22 11:20
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (5) serial 1 559d 559d 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 (9) serial 1 1d18h 1d18h 0/28 moderation: reported on 2025/03/23 06:09

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.