KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record

Status: moderation: reported on 2026/08/07 16:48
Subsystems: trace
Labels: race:benign prio:low
[Documentation on labels]
Reported-by: syzbot+41eedfcd53c5fa394d5b@syzkaller.appspotmail.com
First crash: 32d, last: 13d
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
bdf434bb assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record 2026/08/09 01:18 2026/08/09 01:18 2026/08/09 02:00 5d63f80b
96dbfb51 assessment-kcsan Benign: ✅ KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record 2026/08/09 01:18 2026/08/09 01:18 2026/08/09 01:57 5d63f80b

Sample crash report:
==================================================================
BUG: KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record

read-write to 0xffffffff895f01e0 of 4 bytes by task 25880 on cpu 0:
 tracing_stop_sched_switch kernel/trace/trace_sched_switch.c:120 [inline]
 tracing_stop_cmdline_record+0x28/0xc0 kernel/trace/trace_sched_switch.c:140
 __ftrace_event_enable_disable+0x323/0x4b0 kernel/trace/trace_events.c:848
 ftrace_event_enable_disable kernel/trace/trace_events.c:934 [inline]
 ftrace_clear_events kernel/trace/trace_events.c:1057 [inline]
 ftrace_event_set_open+0xe6/0x200 kernel/trace/trace_events.c:2892
 do_dentry_open+0x49f/0xa60 fs/open.c:996
 vfs_open+0x37/0x1e0 fs/open.c:1101
 do_open fs/namei.c:4837 [inline]
 path_openat+0xc01/0x10d0 fs/namei.c:5000
 do_file_open+0x16c/0x290 fs/namei.c:5029
 do_sys_openat2+0xa0/0x130 fs/open.c:1417
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1434
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff895f01e0 of 4 bytes by task 23 on cpu 1:
 probe_sched_switch+0x46/0xa0 kernel/trace/trace_sched_switch.c:32
 __do_trace_sched_switch include/trace/events/sched.h:220 [inline]
 trace_sched_switch include/trace/events/sched.h:220 [inline]
 __schedule+0xc31/0xd20 kernel/sched/core.c:7267
 __schedule_loop kernel/sched/core.c:7347 [inline]
 schedule+0x5b/0xa0 kernel/sched/core.c:7362
 smpboot_thread_fn+0x375/0x520 kernel/smpboot.c:156
 kthread+0x223/0x270 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000340 -> 0x0000033f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/26 08:53 upstream 73ae59e97596 6a91adb4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record
2026/08/20 17:54 upstream a4ff2be345d0 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record
2026/08/19 08:20 upstream bd5f485f3f02 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record
2026/08/19 08:17 upstream bd5f485f3f02 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record
2026/08/07 16:48 upstream f9a2394a2348 e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in probe_sched_switch / tracing_stop_cmdline_record
* Struck through repros no longer work on HEAD.