syzbot


KCSAN: data-race in n_tty_write / tty_reopen

Status: auto-closed as invalid on 2021/05/31 23:44
Subsystems: serial
[Documentation on labels]
First crash: 1100d, last: 1088d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_write / tty_reopen (3) serial 5 917d 983d 0/26 auto-closed as invalid on 2021/11/19 17:25
upstream KCSAN: data-race in n_tty_write / tty_reopen (6) serial 1 264d 264d 0/26 auto-obsoleted due to no activity on 2023/09/03 02:21
upstream KCSAN: data-race in n_tty_write / tty_reopen (4) serial 3 821d 850d 0/26 auto-closed as invalid on 2022/02/23 15:12
upstream KCSAN: data-race in n_tty_write / tty_reopen (7) serial 1 146d 129d 0/26 auto-obsoleted due to no activity on 2023/12/30 14:50
upstream KCSAN: data-race in n_tty_write / tty_reopen (8) serial 4 19d 91d 0/26 moderation: reported on 2024/01/19 08:53
upstream KCSAN: data-race in n_tty_write / tty_reopen (5) serial 1 759d 759d 0/26 auto-closed as invalid on 2022/04/26 05:30
upstream KCSAN: data-race in n_tty_write / tty_reopen (2) serial 1 1036d 1036d 0/26 auto-closed as invalid on 2021/07/23 04:44

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

write to 0xffff8881067f79c0 of 4 bytes by task 19529 on cpu 1:
 tty_reopen+0x114/0x1c0 drivers/tty/tty_io.c:1385
 tty_open_by_driver drivers/tty/tty_io.c:2097 [inline]
 tty_open+0x900/0xb60 drivers/tty/tty_io.c:2151
 chrdev_open+0x39c/0x420 fs/char_dev.c:414
 do_dentry_open+0x53e/0x830 fs/open.c:826
 vfs_open+0x43/0x50 fs/open.c:940
 do_open fs/namei.c:3367 [inline]
 path_openat+0x184e/0x20b0 fs/namei.c:3500
 do_filp_open+0xd9/0x1f0 fs/namei.c:3527
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_openat fs/open.c:1219 [inline]
 __se_sys_openat fs/open.c:1214 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1214
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881067f79c0 of 4 bytes by task 19514 on cpu 0:
 n_tty_write+0x2e7/0xaf0 drivers/tty/n_tty.c:2347
 do_tty_write drivers/tty/tty_io.c:1043 [inline]
 file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1133
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1140
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x69d/0x770 fs/read_write.c:605
 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+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19514 Comm: syz-executor.2 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/26 23:38 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_reopen
2021/04/15 17:41 upstream 7f75285ca572 c59079a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_reopen
* Struck through repros no longer work on HEAD.