syzbot


KCSAN: data-race in __tty_hangup / get_pipe_info

Status: moderation: reported on 2025/07/21 09:26
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+3eeb78314563650504d1@syzkaller.appspotmail.com
First crash: 7d10h, last: 7d10h

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

write to 0xffff888118a21548 of 8 bytes by task 3803 on cpu 0:
 __tty_hangup+0x1c2/0x510 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:907 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888118a21548 of 8 bytes by task 3798 on cpu 1:
 get_pipe_info+0x2f/0x60 fs/pipe.c:1417
 do_sendfile+0x2fa/0x650 fs/read_write.c:1365
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1417
 x64_sys_call+0xb39/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffffffff858a1010 -> 0xffffffff858a0f00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3798 Comm: syz.2.103 Not tainted 6.16.0-rc7-syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/21 09:25 upstream 89be9a83ccf1 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tty_hangup / get_pipe_info
* Struck through repros no longer work on HEAD.