syzbot


BUG: soft lockup in sys_bpf

Status: moderation: reported on 2025/04/09 10:37
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+d6b7a5d8fc0955fa8fc5@syzkaller.appspotmail.com
First crash: 10d, last: 10d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_bpf (5) bpf C unreliable 56 1178d 1271d 0/28 closed as invalid on 2022/02/08 10:34
android-5-15 BUG: soft lockup in sys_bpf origin:upstream C error 108 214d 382d 0/2 upstream: reported C repro on 2024/03/29 12:25
upstream INFO: rcu detected stall in sys_bpf (9) bpf net C error 74 82d 321d 0/28 auto-obsoleted due to no activity on 2025/04/03 05:23
android-5-10 BUG: soft lockup in sys_bpf 2 295d 299d 0/2 auto-obsoleted due to no activity on 2024/09/22 11:37
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 16 62d 370d 0/3 upstream: reported on 2024/04/09 19:57
linux-5.15 INFO: rcu detected stall in sys_bpf 2 494d 537d 0/3 auto-obsoleted due to no activity on 2024/03/16 17:33
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 513d 513d 0/28 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-6.1 INFO: rcu detected stall in sys_bpf 19 19d 360d 0/3 upstream: reported on 2024/04/20 10:27
upstream INFO: rcu detected stall in sys_bpf (6) net 7 990d 1140d 0/28 auto-obsoleted due to no activity on 2022/10/28 06:32

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 123s! [syz.1.617:8066]
Modules linked in:
irq event stamp: 11463135
hardirqs last  enabled at (11463134): [<ffffffff8c303183>] irqentry_exit+0x63/0x90 kernel/entry/common.c:357
hardirqs last disabled at (11463135): [<ffffffff8c300cce>] sysvec_apic_timer_interrupt+0xe/0xc0 arch/x86/kernel/apic/apic.c:1049
softirqs last  enabled at (11374854): [<ffffffff81844b9b>] __do_softirq kernel/softirq.c:613 [inline]
softirqs last  enabled at (11374854): [<ffffffff81844b9b>] invoke_softirq kernel/softirq.c:453 [inline]
softirqs last  enabled at (11374854): [<ffffffff81844b9b>] __irq_exit_rcu+0xfb/0x220 kernel/softirq.c:680
softirqs last disabled at (11374857): [<ffffffff81844b9b>] __do_softirq kernel/softirq.c:613 [inline]
softirqs last disabled at (11374857): [<ffffffff81844b9b>] invoke_softirq kernel/softirq.c:453 [inline]
softirqs last disabled at (11374857): [<ffffffff81844b9b>] __irq_exit_rcu+0xfb/0x220 kernel/softirq.c:680
CPU: 0 UID: 0 PID: 8066 Comm: syz.1.617 Not tainted 6.14.0-syzkaller-gc9661394850d #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:rcu_read_unlock_special+0x8a/0x570 kernel/rcu/tree_plugin.h:694
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 14 66 41 c7 44 14 09 f3 f3 41 c6 44 14 0b f3 65 44 8b 3d 3f 0c bf 11 41 f7 c7 00 00 f0 00 74 44 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 22 00 00 00 00 66 42 c7 44 22
RSP: 0018:ffffc900000075a0 EFLAGS: 00000206
RAX: 203c979e338bd500 RBX: 1ffff92000000ebc RCX: ffffffff93689020
RDX: dffffc0000000000 RSI: ffffffff8e69b310 RDI: ffffffff8ca1b0e0
RBP: ffffc90000007680 R08: ffffffff905fcf77 R09: 1ffffffff20bf9ee
R10: dffffc0000000000 R11: fffffbfff20bf9ef R12: 1ffff92000000eb8
R13: ffff88807b055e60 R14: ffffc900000075e0 R15: ffffffff8ed42d00
FS:  00007fd9eab5e6c0(0000) GS:ffff888124f97000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bfdfde7ff1 CR3: 0000000062fc4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 __rcu_read_unlock+0xa1/0x110 kernel/rcu/tree_plugin.h:438
 rcu_read_unlock include/linux/rcupdate.h:873 [inline]
 class_rcu_destructor include/linux/rcupdate.h:1155 [inline]
 unwind_next_frame+0x1aa4/0x23b0 arch/x86/kernel/unwind_orc.c:680
 arch_stack_walk+0x11e/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x11a/0x1d0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576
 poison_slab_object mm/kasan/common.c:247 [inline]
 __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264
 kasan_slab_free include/linux/kasan.h:233 [inline]
 slab_free_hook mm/slub.c:2389 [inline]
 slab_free_after_rcu_debug+0x11a/0x280 mm/slub.c:4696
 rcu_do_batch kernel/rcu/tree.c:2568 [inline]
 rcu_core+0xaac/0x17a0 kernel/rcu/tree.c:2824
 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579
 __do_softirq kernel/softirq.c:613 [inline]
 invoke_softirq kernel/softirq.c:453 [inline]
 __irq_exit_rcu+0xfb/0x220 kernel/softirq.c:680
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline]
 sysvec_irq_work+0xa3/0xc0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738
RIP: 0010:preempt_schedule_irq+0xf9/0x1c0 kernel/sched/core.c:7090
Code: 89 fe 49 c1 ee 03 eb 0d 48 f7 03 08 00 00 00 0f 84 89 00 00 00 bf 01 00 00 00 e8 a2 35 5f f5 e8 ad f5 99 f5 fb bf 01 00 00 00 <e8> 32 a5 ff ff 43 80 3c 26 00 74 08 4c 89 ff e8 c3 2d fc f5 48 c7
RSP: 0018:ffffc90003d8e7c0 EFLAGS: 00000286
RAX: 203c979e338bd500 RBX: 1ffff920007b1d00 RCX: 0000000000000007
RDX: 0000000000000007 RSI: ffffffff8e69b310 RDI: 0000000000000001
RBP: ffffc90003d8e870 R08: ffffffff905fcf77 R09: 1ffffffff20bf9ee
R10: dffffc0000000000 R11: fffffbfff20bf9ef R12: dffffc0000000000
R13: 1ffff920007b1cf8 R14: 1ffff920007b1cfc R15: ffffc90003d8e7e0
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:preempt_schedule_thunk+0x1/0x30 arch/x86/entry/thunk.S:12
Code: 98 00 48 c7 c0 60 58 40 8c c3 cc cc cc cc 0f 1f 00 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 <48> 89 e5 57 56 52 51 50 41 50 41 51 41 52 41 53 e8 4a c8 06 0b 41
RSP: 0018:ffffc90003d8e930 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff920007b1d2c RCX: 0000000000000001
RDX: 0000000000000007 RSI: ffffffff8e69b310 RDI: 0000000000000001
RBP: ffffc90003d8e9d0 R08: ffffffff905fcf77 R09: 1ffffffff20bf9ee
R10: dffffc0000000000 R11: fffffbfff20bf9ef R12: 1ffff920007b1d28
R13: dffffc0000000000 R14: ffffc90003d8e960 R15: 0000000000000246
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock_irqrestore+0x134/0x140 kernel/locking/spinlock.c:194
 rcu_preempt_deferred_qs_irqrestore+0x8c6/0xcb0 kernel/rcu/tree_plugin.h:-1
 rcu_read_unlock_special+0x49b/0x570 kernel/rcu/tree_plugin.h:693
 __rcu_read_unlock+0xa1/0x110 kernel/rcu/tree_plugin.h:438
 __reset_page_owner+0x6c/0x1e0 mm/page_owner.c:300
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1262 [inline]
 __free_frozen_pages+0xde8/0x10a0 mm/page_alloc.c:2680
 discard_slab mm/slub.c:2720 [inline]
 __put_partials+0x160/0x1c0 mm/slub.c:3189
 put_cpu_partial+0x17e/0x250 mm/slub.c:3264
 __slab_free+0x294/0x390 mm/slub.c:4516
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:250 [inline]
 slab_post_alloc_hook mm/slub.c:4151 [inline]
 slab_alloc_node mm/slub.c:4200 [inline]
 __do_kmalloc_node mm/slub.c:4330 [inline]
 __kvmalloc_node_noprof+0x2ca/0x5a0 mm/slub.c:5016
 kvmalloc_array_node_noprof include/linux/slab.h:1065 [inline]
 check_cfg+0xf9/0x1be0 kernel/bpf/verifier.c:17577
 bpf_check+0x15d57/0x1d1c0 kernel/bpf/verifier.c:24017
 bpf_prog_load+0x17ee/0x2250 kernel/bpf/syscall.c:2971
 __sys_bpf+0x5dd/0x8b0 kernel/bpf/syscall.c:5834
 __do_sys_bpf kernel/bpf/syscall.c:5941 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5939 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5939
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9e9d8d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd9eab5e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fd9e9fa5fa0 RCX: 00007fd9e9d8d169
RDX: 0000000000000048 RSI: 0000200000000200 RDI: 0000000000000005
RBP: 00007fd9e9e0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd9e9fa5fa0 R15: 00007ffc2c641c28
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 1298 Comm: aoe_tx0 Not tainted 6.14.0-syzkaller-gc9661394850d #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:strlen+0x43/0x70 lib/string.c:413
Code: 00 00 00 fc ff df 48 89 fb 49 89 c4 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01 00 <75> dd eb 13 89 d9 80 e1 07 38 c1 7c e5 48 89 df e8 78 be 01 f6 eb
RSP: 0018:ffffc90000a089d8 EFLAGS: 00000046
RAX: 0000000000000011 RBX: ffffffff8ca1b792 RCX: 000000008ca1b701
RDX: ffffffff850c0021 RSI: ffffffff9a98b9b8 RDI: ffffffff8ca1b780
RBP: ffffc90000a08b08 R08: 0000000000000003 R09: fffff52000141160
R10: dffffc0000000000 R11: fffff52000141160 R12: 0000000000000010
R13: ffffffff8ec0d280 R14: ffffffff8ca1b780 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff888125097000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c3d59c020 CR3: 000000004e9ae000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 _Z16__fortify_strlenPKcU25pass_dynamic_object_size1 include/linux/fortify-string.h:268 [inline]
 trace_event_get_offsets_lock include/trace/events/lock.h:50 [inline]
 do_perf_trace_lock include/trace/events/lock.h:50 [inline]
 perf_trace_lock+0x10c/0x4a0 include/trace/events/lock.h:50
 __do_trace_lock_release include/trace/events/lock.h:69 [inline]
 trace_lock_release include/trace/events/lock.h:69 [inline]
 lock_release+0x3b4/0x3e0 kernel/locking/lockdep.c:5877
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x7a/0x140 kernel/locking/spinlock.c:194
 debug_object_deactivate+0x2e1/0x390 lib/debugobjects.c:888
 debug_hrtimer_deactivate kernel/time/hrtimer.c:450 [inline]
 debug_deactivate+0x1b/0x220 kernel/time/hrtimer.c:492
 __run_hrtimer kernel/time/hrtimer.c:1759 [inline]
 __hrtimer_run_queues+0x310/0xd40 kernel/time/hrtimer.c:1855
 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1917
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline]
RIP: 0010:vprintk_emit+0x731/0xa40 kernel/printk/printk.c:2449
Code: 00 e8 d3 3b 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 c1 3b 21 00 eb 06 e8 ba 3b 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 60 9b c1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc9000406f300 EFLAGS: 00000293
RAX: ffffffff81a21bc6 RBX: 0000000000000000 RCX: ffff888028191e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000406f410 R08: ffffffff81a21b9f R09: 1ffffffff20bf9ee
R10: dffffc0000000000 R11: fffffbfff20bf9ef R12: dffffc0000000000
R13: 1ffff9200080de64 R14: ffffffff81a219f2 R15: ffffc9000406f3a0
 dev_vprintk_emit+0x358/0x420 drivers/base/core.c:4891
 dev_printk_emit+0xdf/0x130 drivers/base/core.c:4902
 __netdev_printk+0x3e0/0x4d0 net/core/dev.c:12392
 netdev_warn+0x12d/0x180 net/core/dev.c:12445
 ieee802154_subif_start_xmit+0x134/0x190 net/mac802154/tx.c:232
 __netdev_start_xmit include/linux/netdevice.h:5201 [inline]
 netdev_start_xmit include/linux/netdevice.h:5210 [inline]
 xmit_one net/core/dev.c:3780 [inline]
 dev_hard_start_xmit+0x2d4/0x840 net/core/dev.c:3796
 sch_direct_xmit+0x2b2/0x600 net/sched/sch_generic.c:343
 __dev_xmit_skb net/core/dev.c:4022 [inline]
 __dev_queue_xmit+0x1a9c/0x3f60 net/core/dev.c:4599
 dev_queue_xmit include/linux/netdevice.h:3350 [inline]
 tx+0x6b/0x180 drivers/block/aoe/aoenet.c:62
 kthread+0x23c/0x470 drivers/block/aoe/aoecmd.c:1237
 kthread+0x7b7/0x940 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/05 10:31 bpf-next c9661394850d 1c4febdb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: soft lockup in sys_bpf
* Struck through repros no longer work on HEAD.