syzbot


KCSAN: data-race in __tty_hangup / io_file_get_normal

Status: moderation: reported on 2025/12/20 03:21
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+ff47261bf0e5233fd700@syzkaller.appspotmail.com
First crash: 17d, last: 17d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __tty_hangup / io_file_get_normal

write to 0xffff888103de0d88 of 8 bytes by task 7956 on cpu 0:
 __tty_hangup+0x1ef/0x540 drivers/tty/tty_io.c:612
 tty_vhangup drivers/tty/tty_io.c:691 [inline]
 tty_ioctl+0x601/0xb80 drivers/tty/tty_io.c:2732
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888103de0d88 of 8 bytes by task 7953 on cpu 1:
 io_is_uring_fops io_uring/io_uring.c:3357 [inline]
 io_file_get_normal+0x3b/0x180 io_uring/io_uring.c:1990
 io_assign_file+0x9e/0x200 io_uring/io_uring.c:1767
 io_issue_sqe+0x40/0xa80 io_uring/io_uring.c:1812
 io_queue_sqe io_uring/io_uring.c:2042 [inline]
 io_submit_sqe io_uring/io_uring.c:2320 [inline]
 io_submit_sqes+0x78b/0x11b0 io_uring/io_uring.c:2434
 __do_sys_io_uring_enter io_uring/io_uring.c:3280 [inline]
 __se_sys_io_uring_enter+0x1bd/0x1a30 io_uring/io_uring.c:3219
 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3219
 x64_sys_call+0x27e4/0x3000 arch/x86/include/generated/asm/syscalls_64.h:427
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffffffff858a6020 -> 0xffffffff858a5f10

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7953 Comm: syz.3.1130 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/20 03:20 upstream dd9b004b7ff3 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tty_hangup / io_file_get_normal
* Struck through repros no longer work on HEAD.