syzbot


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

Status: auto-obsoleted due to no activity on 2023/02/26 21:46
Subsystems: serial
[Documentation on labels]
First crash: 532d, last: 451d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_write / tty_set_termios (3) serial 1 1263d 1263d 0/26 auto-closed as invalid on 2020/12/02 18:50
upstream KCSAN: data-race in n_tty_write / tty_set_termios (10) serial 1 360d 360d 0/26 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 604d 730d 0/26 auto-closed as invalid on 2022/09/22 18:33
upstream KCSAN: data-race in n_tty_write / tty_set_termios (4) serial 3 1172d 1222d 0/26 auto-closed as invalid on 2021/03/04 08:49
upstream KCSAN: data-race in n_tty_write / tty_set_termios (2) serial 1 1328d 1328d 0/26 auto-closed as invalid on 2020/09/29 07:57
upstream KCSAN: data-race in n_tty_write / tty_set_termios (6) serial 8 890d 1009d 0/26 auto-closed as invalid on 2021/12/10 21:01
upstream KCSAN: data-race in n_tty_write / tty_set_termios (5) serial 2 1062d 1063d 0/26 auto-closed as invalid on 2021/06/22 15:42
upstream KCSAN: data-race in n_tty_write / tty_set_termios serial 1 1390d 1390d 0/26 auto-closed as invalid on 2020/07/29 04:13
upstream KCSAN: data-race in n_tty_write / tty_set_termios (7) serial 4 772d 810d 0/26 auto-closed as invalid on 2022/04/07 21:37

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

read-write to 0xffff888133329d14 of 4 bytes by task 16770 on cpu 1:
 unset_locked_termios drivers/tty/tty_ioctl.c:234 [inline]
 tty_set_termios+0x1b0/0x8a0 drivers/tty/tty_ioctl.c:358
 set_termios+0x251/0x280 drivers/tty/tty_ioctl.c:517
 tty_mode_ioctl+0x405/0x470
 n_tty_ioctl_helper+0x83/0x340 drivers/tty/tty_ioctl.c:980
 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2483
 tty_ioctl+0x6e9/0x940 drivers/tty/tty_io.c:2784
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888133329d14 of 4 bytes by task 16763 on cpu 0:
 n_tty_write+0x88/0xb10 drivers/tty/n_tty.c:2327
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3b8/0x620 drivers/tty/tty_io.c:1089
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1110
 call_write_iter include/linux/fs.h:2189 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00008a3b -> 0x0000585c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16763 Comm: syz-executor.4 Not tainted 6.2.0-rc4-syzkaller-00041-gc1649ec55708-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/18 22:08 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2023/01/08 20:27 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2022/12/24 21:29 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2022/12/17 10:37 upstream 77856d911a8c 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2022/11/20 09:19 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2022/11/12 22:02 upstream 8f2975c2bb4c f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
2022/10/29 18:54 upstream 91562cf99364 2a71366b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
* Struck through repros no longer work on HEAD.