syzbot


KCSAN: data-race in __se_sys_ioctl / __tty_hangup (6)

Status: moderation: reported on 2025/09/13 08:11
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+957cf71f23c540181661@syzkaller.appspotmail.com
First crash: 50d, last: 1d03h
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __se_sys_ioctl / __tty_hangup serial 6 2 1572d 1597d 0/29 auto-closed as invalid on 2021/08/17 17:13
upstream KCSAN: data-race in __se_sys_ioctl / __tty_hangup (3) serial 6 1 927d 927d 0/29 auto-obsoleted due to no activity on 2023/05/25 00:29
upstream KCSAN: data-race in __se_sys_ioctl / __tty_hangup (4) serial 6 1 697d 696d 0/29 auto-obsoleted due to no activity on 2024/01/09 21:50
upstream KCSAN: data-race in __se_sys_ioctl / __tty_hangup (2) serial 6 1 1517d 1517d 0/29 auto-closed as invalid on 2021/10/11 17:38
upstream KCSAN: data-race in __se_sys_ioctl / __tty_hangup (5) serial 6 1 650d 650d 0/29 auto-obsoleted due to no activity on 2024/02/25 23:19

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

write to 0xffff8881049a6008 of 8 bytes by task 21659 on cpu 1:
 __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+0x1816/0x3000 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 0xffff8881049a6008 of 8 bytes by task 21653 on cpu 0:
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xa1/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x1816/0x3000 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

value changed: 0xffffffff858a5840 -> 0xffffffff858a5730

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/01 13:18 upstream ba36dd5ee6fd 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __se_sys_ioctl / __tty_hangup
2025/09/13 08:11 upstream 320475fbd590 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __se_sys_ioctl / __tty_hangup
* Struck through repros no longer work on HEAD.