syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/24 17:53
Subsystems: serial
[Documentation on labels]
First crash: 360d, last: 360d
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 (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
upstream KCSAN: data-race in n_tty_write / tty_set_termios (9) serial 7 451d 532d 0/26 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 0xffff888137387514 of 4 bytes by task 882 on cpu 0:
 unset_locked_termios drivers/tty/tty_ioctl.c:234 [inline]
 tty_set_termios+0x1a2/0x8a0 drivers/tty/tty_ioctl.c:358
 set_termios+0x241/0x270 drivers/tty/tty_ioctl.c:517
 tty_mode_ioctl+0x3e1/0x580
 n_tty_ioctl_helper+0x8d/0x240 drivers/tty/tty_ioctl.c:980
 n_tty_ioctl+0xfd/0x200 drivers/tty/n_tty.c:2483
 tty_ioctl+0x86f/0xbc0 drivers/tty/tty_io.c:2786
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888137387514 of 4 bytes by task 867 on cpu 1:
 n_tty_write+0xa0/0xa80 drivers/tty/n_tty.c:2327
 do_tty_write drivers/tty/tty_io.c:1018 [inline]
 file_tty_write+0x3a0/0x600 drivers/tty/tty_io.c:1089
 tty_write+0x28/0x30 drivers/tty/tty_io.c:1110
 do_iter_write+0x418/0x700 fs/read_write.c:861
 vfs_writev+0x1a2/0x310 fs/read_write.c:934
 do_writev+0xf8/0x220 fs/read_write.c:977
 __do_sys_writev fs/read_write.c:1050 [inline]
 __se_sys_writev fs/read_write.c:1047 [inline]
 __x64_sys_writev+0x45/0x50 fs/read_write.c:1047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000003 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 867 Comm: syz-executor.3 Not tainted 6.3.0-rc7-syzkaller-00060-g789b4a41c247 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/19 17:43 upstream 789b4a41c247 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_set_termios
* Struck through repros no longer work on HEAD.