syzbot


KCSAN: assert: race in dequeue_entities

Status: upstream: reported on 2024/09/27 14:57
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+0ec1e96c2cdf5c0e512a@syzkaller.appspotmail.com
First crash: 21d, last: now
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] KCSAN: assert: race in dequeue_entities 0 (1) 2024/09/27 14:57

Sample crash report:
==================================================================
BUG: KCSAN: assert: race in __block_task kernel/sched/sched.h:2773 [inline]
BUG: KCSAN: assert: race in dequeue_entities+0x6df/0x760 kernel/sched/fair.c:7177

race at unknown origin, with assert no writes to 0xffff88811561c268 of 4 bytes by task 7442 on cpu 1:
 __block_task kernel/sched/sched.h:2773 [inline]
 dequeue_entities+0x6df/0x760 kernel/sched/fair.c:7177
 pick_next_entity kernel/sched/fair.c:5627 [inline]
 pick_task_fair kernel/sched/fair.c:8856 [inline]
 pick_next_task_fair+0x7d/0x410 kernel/sched/fair.c:8876
 __pick_next_task kernel/sched/core.c:5962 [inline]
 pick_next_task kernel/sched/core.c:6484 [inline]
 __schedule+0x284/0x940 kernel/sched/core.c:6636
 __schedule_loop kernel/sched/core.c:6759 [inline]
 schedule+0x55/0xc0 kernel/sched/core.c:6774
 schedule_timeout+0x55/0x2c0 kernel/time/timer.c:2591
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common kernel/sched/completion.c:116 [inline]
 wait_for_common+0xfb/0x1c0 kernel/sched/completion.c:127
 __synchronize_srcu+0x11c/0x150 kernel/rcu/srcutree.c:1401
 synchronize_srcu+0x198/0x1b0
 tracepoint_synchronize_unregister include/linux/tracepoint.h:112 [inline]
 perf_trace_event_unreg+0x7a/0x1a0 kernel/trace/trace_event_perf.c:168
 perf_trace_destroy+0x6a/0xe0 kernel/trace/trace_event_perf.c:241
 tp_perf_event_destroy+0x15/0x20 kernel/events/core.c:10341
 _free_event+0x7ca/0xa10 kernel/events/core.c:5357
 put_event kernel/events/core.c:5454 [inline]
 perf_event_release_kernel+0x61a/0x670 kernel/events/core.c:5579
 perf_release+0x1f/0x30 kernel/events/core.c:5589
 __fput+0x17a/0x6d0 fs/file_table.c:431
 ____fput+0x1c/0x30 fs/file_table.c:459
 task_work_run+0x13a/0x1a0 kernel/task_work.c:228
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7442 Comm: syz.0.1131 Not tainted 6.12.0-rc2-syzkaller-00100-geb952c47d154 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1027):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/10 22:54 upstream eb952c47d154 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 21:36 upstream eb952c47d154 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 21:29 upstream eb952c47d154 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 19:46 upstream eb952c47d154 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 17:46 upstream d3d1556696c1 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 16:15 upstream d3d1556696c1 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 13:35 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 10:57 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 10:24 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 08:44 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 06:15 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 04:44 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 03:32 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 03:16 upstream d3d1556696c1 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/10 01:15 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 23:28 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 22:02 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 21:02 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 19:14 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 19:13 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 18:03 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 16:51 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 14:46 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 13:22 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 11:52 upstream 75b607fab38d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 10:26 upstream 75b607fab38d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 09:43 upstream 75b607fab38d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 07:03 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/09 02:36 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 21:43 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 20:37 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 18:06 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 15:35 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 13:52 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 13:51 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 12:33 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 11:32 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 07:50 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 06:44 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 05:38 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 04:07 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 03:57 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/10/08 02:54 upstream 87d6aab2389e d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/09/27 13:47 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
2024/09/19 21:19 upstream 2004cef11ea0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: assert: race in dequeue_entities
* Struck through repros no longer work on HEAD.