syzbot


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

Status: auto-closed as invalid on 2021/11/03 05:49
Subsystems: serial
[Documentation on labels]
First crash: 931d, last: 931d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_write / tty_release (2) serial 1 1097d 1097d 0/26 auto-closed as invalid on 2021/05/21 10:47
upstream KCSAN: data-race in n_tty_write / tty_release serial 2 1533d 1549d 0/26 auto-closed as invalid on 2020/04/15 20:43

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

write to 0xffff8881008a89a8 of 4 bytes by task 9136 on cpu 0:
 tty_release+0x6cc/0xa10 drivers/tty/tty_io.c:1832
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881008a89a8 of 4 bytes by task 9160 on cpu 1:
 n_tty_write+0x2e8/0xaf0 drivers/tty/n_tty.c:2282
 do_tty_write drivers/tty/tty_io.c:1038 [inline]
 file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1110
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1131
 call_write_iter include/linux/fs.h:2163 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x7bc/0x900 fs/read_write.c:594
 ksys_write+0xd9/0x190 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:656
 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: 0x00000002 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9160 Comm: syz-executor.4 Not tainted 5.15.0-rc3-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
2021/09/29 05:41 upstream a4e6f95a891a d82cb927 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_write / tty_release
* Struck through repros no longer work on HEAD.