syzbot


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

Status: auto-closed as invalid on 2021/11/25 02:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 408d, last: 408d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (4) 1 327d 327d 0/24 auto-closed as invalid on 2022/02/14 10:19
upstream KCSAN: data-race in n_tty_poll / tty_set_termios (2) 2 517d 552d 0/24 auto-closed as invalid on 2021/08/07 13:54
upstream KCSAN: data-race in n_tty_poll / tty_set_termios 1 595d 595d 0/24 auto-closed as invalid on 2021/05/22 11:20

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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/21 02:39 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in n_tty_poll / tty_set_termios
* Struck through repros no longer work on HEAD.