syzbot


BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred

Status: auto-obsoleted due to no activity on 2024/09/03 01:55
Reported-by: syzbot+d1cfbaac8abb553c109a@syzkaller.appspotmail.com
First crash: 282d, last: 149d
Fix bisection: fixed by (bisect log) :
commit 95b7476f6f68d725c474e3348e89436b0abde62a
Author: Jiri Olsa <jolsa@kernel.org>
Date: Thu Dec 15 21:44:29 2022 +0000

  bpf: Do cleanup in bpf_bprintf_cleanup only when needed

  
Bug presence (2)
Date Name Commit Repro Result
2024/07/10 lts (merge base) 347385861c50 C Didn't crash
2024/07/10 upstream (ToT) 34afb82a3c67 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred C done 29 172d 277d 0/2 auto-obsoleted due to no activity on 2024/08/10 21:53

Sample crash report:
BUG: workqueue leaked lock or atomic: kworker/1:1/0x00000001/39
     last function: bpf_prog_free_deferred
CPU: 1 PID: 39 Comm: kworker/1:1 Not tainted 6.1.75-syzkaller-00069-gfa87a072a7fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events bpf_prog_free_deferred
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 process_one_work+0x94e/0xcb0 kernel/workqueue.c:2314
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
BUG: scheduling while atomic: kworker/1:1/39/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff81b0473f>] spin_lock include/linux/spinlock.h:350 [inline]
[<ffffffff81b0473f>] __get_locked_pte+0x28f/0x340 mm/memory.c:1863
CPU: 1 PID: 39 Comm: kworker/1:1 Not tainted 6.1.75-syzkaller-00069-gfa87a072a7fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue:  0x0 (events)
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 worker_thread+0xefa/0x1260 kernel/workqueue.c:2467
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
BUG: scheduling while atomic: kworker/1:1/39/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff814c2162>] worker_thread+0xf02/0x1260 kernel/workqueue.c:2396
CPU: 1 PID: 39 Comm: kworker/1:1 Tainted: G        W          6.1.75-syzkaller-00069-gfa87a072a7fc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events bpf_prog_free_deferred
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6864
 mutex_optimistic_spin kernel/locking/mutex.c:529 [inline]
 __mutex_lock_common kernel/locking/mutex.c:629 [inline]
 __mutex_lock+0x5b6/0x1ca0 kernel/locking/mutex.c:774
 __mutex_lock_slowpath+0xe/0x10 kernel/locking/mutex.c:1063
 mutex_lock+0x130/0x1e0 kernel/locking/mutex.c:295
 text_poke_set+0xac/0x170 arch/x86/kernel/alternative.c:1308
 bpf_arch_text_invalidate+0x22/0x40 arch/x86/net/bpf_jit_comp.c:233
 bpf_prog_pack_free+0x14b/0x3d0 kernel/bpf/core.c:943
 bpf_jit_binary_pack_free+0x38/0x80 kernel/bpf/core.c:1143
 bpf_jit_free+0x132/0x1e0 arch/x86/net/bpf_jit_comp.c:2538
 bpf_prog_free_deferred+0x63e/0x750 kernel/bpf/core.c:2571
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (46):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/28 11:33 android14-6.1 fa87a072a7fc 07b455f9 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/27 07:54 android14-6.1 fa87a072a7fc 07b455f9 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/25 07:57 android14-6.1 c61278bb705a 8bdc0f22 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/20 06:22 android14-6.1 dcb09569bbff af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/15 21:53 android14-6.1 99aea323a3fd b9af7e61 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/11 03:46 android14-6.1 ca4095789fda 33b9e058 .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/08 19:09 android14-6.1 56ba301cac0b 53df08b6 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/04 11:56 android14-6.1 ebcdb9dc211f 0ee3535e .config console log report syz C ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/03/20 18:34 android14-6.1 3f5807c586a6 5b7d42ae .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/03/14 06:11 android14-6.1 4c25eb8ea5a2 f919f202 .config console log report syz C ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/27 14:10 android14-6.1 7114c782ec16 05e69c83 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/25 10:37 android14-6.1 8c0f9174731d 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/23 10:32 android14-6.1 d6b58cc171f4 8d446f15 .config console log report syz C ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/21 05:31 android14-6.1 92432f07d663 3af7dd65 .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/20 03:31 android14-6.1 92432f07d663 3af7dd65 .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/19 07:23 android14-6.1 92432f07d663 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/18 23:14 android14-6.1 92432f07d663 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/16 03:14 android14-6.1 92432f07d663 fd39cf6f .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/02/13 02:24 android14-6.1 886c9d1fc2b3 77b23aa1 .config console log report syz C ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/19 02:54 android14-6.1 dcb09569bbff af24b050 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/11 08:44 android14-6.1 be55946e207c 33b9e058 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/27 07:04 android14-6.1 68c821783c76 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/19 09:09 android14-6.1 bd552fcbbd0f c0f1611a .config console log report info ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/18 02:51 android14-6.1 51c421385e7a c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/17 09:07 android14-6.1 a9dca663a7f2 c2e07261 .config console log report info ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/12 23:32 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/12 06:07 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/09 20:46 android14-6.1 cf685d2b0273 05079661 .config console log report info ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/07 10:06 android14-6.1 1794308d463f fa7a5cf0 .config console log report info ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/05/04 20:09 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/29 02:04 android14-6.1 08cc4037cf32 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/28 18:22 android14-6.1 fa87a072a7fc 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/22 16:38 android14-6.1 dcb09569bbff 36c961ad .config console log report info ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/20 15:25 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/20 11:48 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/20 07:47 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/19 23:06 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/19 06:21 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/18 03:08 android14-6.1 141ebdcb283b acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/15 03:51 android14-6.1 b76ed1185975 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/14 23:23 android14-6.1 b76ed1185975 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/10 15:30 android14-6.1 5dc2bc296647 4320ec32 .config console log report info ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/09 22:52 android14-6.1 5dc2bc296647 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/04/04 12:03 android14-6.1 ebcdb9dc211f 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/03/30 23:58 android14-6.1 5b8114ec3c92 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
2024/03/30 16:23 android14-6.1 5b8114ec3c92 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: workqueue leaked lock or atomic in bpf_prog_free_deferred
* Struck through repros no longer work on HEAD.