syzbot


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

Status: auto-closed as invalid on 2020/12/02 18:50
Subsystems: serial
[Documentation on labels]
First crash: 1417d, last: 1417d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_write / tty_set_termios (10) serial 1 514d 514d 0/28 auto-obsoleted due to no activity on 2023/05/24 17:53
upstream KCSAN: data-race in n_tty_write / tty_set_termios (8) serial 9 758d 884d 0/28 auto-closed as invalid on 2022/09/22 18:33
upstream KCSAN: data-race in n_tty_write / tty_set_termios (4) serial 3 1325d 1376d 0/28 auto-closed as invalid on 2021/03/04 08:49
upstream KCSAN: data-race in n_tty_write / tty_set_termios (2) serial 1 1481d 1481d 0/28 auto-closed as invalid on 2020/09/29 07:57
upstream KCSAN: data-race in n_tty_write / tty_set_termios (6) serial 8 1044d 1162d 0/28 auto-closed as invalid on 2021/12/10 21:01
upstream KCSAN: data-race in n_tty_write / tty_set_termios (11) serial 3 83d 87d 0/28 auto-obsoleted due to no activity on 2024/07/29 01:08
upstream KCSAN: data-race in n_tty_write / tty_set_termios (5) serial 2 1215d 1217d 0/28 auto-closed as invalid on 2021/06/22 15:42
upstream KCSAN: data-race in n_tty_write / tty_set_termios serial 1 1543d 1543d 0/28 auto-closed as invalid on 2020/07/29 04:13
upstream KCSAN: data-race in n_tty_write / tty_set_termios (7) serial 4 926d 963d 0/28 auto-closed as invalid on 2022/04/07 21:37
upstream KCSAN: data-race in n_tty_write / tty_set_termios (9) serial 7 605d 686d 0/28 auto-obsoleted due to no activity on 2023/02/26 21:46

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

read-write to 0xffff8881012d111c of 4 bytes by task 8158 on cpu 0:
 unset_locked_termios drivers/tty/tty_ioctl.c:254 [inline]
 tty_set_termios+0x1a3/0x870 drivers/tty/tty_ioctl.c:331
 set_termios+0x352/0x380 drivers/tty/tty_ioctl.c:414
 tty_mode_ioctl+0x644/0x7d0 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+0xa5b/0xfd0 drivers/tty/tty_io.c:2663
 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 0xffff8881012d111c of 4 bytes by task 18672 on cpu 1:
 n_tty_write+0x86/0xae0 drivers/tty/n_tty.c:2310
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x3fc/0x5e0 drivers/tty/tty_io.c:1046
 vfs_write+0x1b9/0x690 fs/read_write.c:603
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 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: 18672 Comm: syz-executor.1 Not tainted 5.10.0-rc1-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/10/28 18:42 upstream ed8780e3f2ec f24824d3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.