syzbot


BUG: soft lockup in sys_bpf

Status: auto-obsoleted due to no activity on 2024/09/22 11:37
Reported-by: syzbot+58016710505e6584ccea@syzkaller.appspotmail.com
First crash: 189d, last: 185d
Similar bugs (8)
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 1068d 1161d 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 105d 272d 0/2 upstream: reported C repro on 2024/03/29 12:25
upstream INFO: rcu detected stall in sys_bpf (9) bpf C error 67 1d06h 212d 0/28 upstream: reported C repro on 2024/05/28 13:32
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 14 66d 260d 0/3 upstream: reported on 2024/04/09 19:57
linux-5.15 INFO: rcu detected stall in sys_bpf 2 384d 427d 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 403d 403d 0/28 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-6.1 INFO: rcu detected stall in sys_bpf 16 20d 250d 0/3 upstream: reported on 2024/04/20 10:27
upstream INFO: rcu detected stall in sys_bpf (6) net 7 880d 1030d 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-executor.4:20961]
Modules linked in:
CPU: 0 PID: 20961 Comm: syz-executor.4 Tainted: G        W         5.10.215-syzkaller-00370-gb58b8f9dad93 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5a1/0xc70 kernel/locking/qspinlock.c:508
Code: 85 ba 01 00 00 c6 03 00 48 8b 44 24 28 42 0f b6 04 30 84 c0 0f 85 bf 01 00 00 48 8b 04 24 c6 00 01 bb 00 80 ff ff eb 06 f3 90 <ff> c3 74 50 43 0f b6 44 35 00 84 c0 75 32 41 80 3c 24 00 75 e9 4c
RSP: 0018:ffffc90000ed73c0 EFLAGS: 00000206
RAX: 0000000000000004 RBX: 00000000fffffd01 RCX: 00000000870ba400
RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffc90000ed7340
RBP: ffffc90000ed74b0 R08: dffffc0000000000 R09: 0000000000000000
R10: fffffbfff0e17494 R11: dffffc0000000001 R12: ffffffff870ba4a0
R13: 1ffffffff0e17494 R14: dffffc0000000000 R15: ffff88823ff521c0
FS:  00007f46e8b436c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000786c6c257830 CR3: 000000011d0e4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:554 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:183 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:151
 spin_lock include/linux/spinlock.h:354 [inline]
 alloc_vmap_area+0x20d/0x1a90 mm/vmalloc.c:1210
 __get_vm_area_node+0x156/0x470 mm/vmalloc.c:2093
 __vmalloc_node_range+0xdc/0x7c0 mm/vmalloc.c:2591
 __vmalloc_node mm/vmalloc.c:2682 [inline]
 __vmalloc+0x7a/0x90 mm/vmalloc.c:2696
 bpf_prog_alloc_no_stats+0x39/0x2a0 kernel/bpf/core.c:92
 bpf_prog_alloc+0x21/0x1e0 kernel/bpf/core.c:120
 bpf_prog_load kernel/bpf/syscall.c:2180 [inline]
 __do_sys_bpf kernel/bpf/syscall.c:4435 [inline]
 __se_sys_bpf+0x9856/0x11cb0 kernel/bpf/syscall.c:4391
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:4391
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f46e97c90a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f46e8b430c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f46e98fff80 RCX: 00007f46e97c90a9
RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00007f46e9838074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f46e98fff80 R15: 00007ffed24682d8
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 20956 Comm: syz-executor.2 Tainted: G        W         5.10.215-syzkaller-00370-gb58b8f9dad93 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__hrtimer_run_queues+0x169/0xa50
Code: 48 83 c0 40 48 89 44 24 20 0f 84 90 08 00 00 4d 8d 74 1e 78 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 57 20 4d 00 <4c> 89 7c 24 10 4d 8b 36 4c 03 74 24 78 48 8b 44 24 40 42 80 3c 20
RSP: 0018:ffffc90000170900 EFLAGS: 00000046
RAX: 1ffff1103ee29337 RBX: 0000000000000000 RCX: ffff888114b9cf00
RDX: 0000000000010102 RSI: 0000000000000000 RDI: 0000000000000009
RBP: ffffc90000170a28 R08: ffffffff815b2068 R09: 0000000000000003
R10: fffff5200002e134 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: ffff8881f71499b8 R15: 0000000000000000
FS:  00007f088003a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c126000 CR3: 0000000110f55000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 hrtimer_interrupt+0x39a/0x8b0 kernel/time/hrtimer.c:1709
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline]
 __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1100
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
 sysvec_apic_timer_interrupt+0xba/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:ipv6_get_lladdr+0x4e/0x1f0 net/ipv6/addrconf.c:1885
Code: e8 77 c8 45 fd e8 c2 d3 32 fd 48 81 c3 e0 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f5 5b 83 fd 48 8b 1b <48> 85 db 0f 84 2b 01 00 00 48 8d bb 00 01 00 00 48 89 7d c0 e8 d9
RSP: 0018:ffffc90000170c50 EFLAGS: 00000246
RAX: 1ffff11024bcac5c RBX: ffff888124950800 RCX: dffffc0000000000
RDX: 0000000000000101 RSI: ffffc90000170d00 RDI: ffff888125e56000
RBP: ffffc90000170c90 R08: ffffffff8427863a R09: 0000000000000003
R10: fffff5200002e184 R11: dffffc0000000001 R12: 0000000000000004
R13: ffffc90000170d00 R14: 1ffff9200002e19c R15: dffffc0000000000
 addrconf_rs_timer+0x26b/0x600 net/ipv6/addrconf.c:3961
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1450
 expire_timers kernel/time/timer.c:1495 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1789
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__alloc_vmap_area mm/vmalloc.c:1119 [inline]
RIP: 0010:alloc_vmap_area+0x173c/0x1a90 mm/vmalloc.c:1219
Code: 3c 28 00 48 8b 5c 24 28 74 08 48 89 df e8 9c da 05 00 49 89 5f 10 48 8b 3d 31 3d 69 05 4c 89 fe e8 59 30 05 00 4c 8b 74 24 30 <4d> 89 ef 48 c7 c7 a0 a4 0b 87 e8 d5 35 0f 03 4c 89 f7 48 8b 9c 24
RSP: 0018:ffffc90000c67560 EFLAGS: 00000286
RAX: e6d1f08ba5e4fc00 RBX: ffff88812391e7f0 RCX: ffffc90000c67508
RDX: ffff88812391e7e0 RSI: ffffc90000c67510 RDI: ffffffff856019e0
RBP: ffffc90000c676a8 R08: 0000000000000002 R09: ffffc90000c67278
R10: 00000000d9f86f0a R11: 00000000d7e7a252 R12: 0000000000000001
R13: dffffc0000000000 R14: ffffc9000011b000 R15: ffff88812391e7e0
 __get_vm_area_node+0x156/0x470 mm/vmalloc.c:2093
 __vmalloc_node_range+0xdc/0x7c0 mm/vmalloc.c:2591
 __vmalloc_node mm/vmalloc.c:2682 [inline]
 __vmalloc+0x7a/0x90 mm/vmalloc.c:2696
 bpf_prog_alloc_no_stats+0x39/0x2a0 kernel/bpf/core.c:92
 bpf_prog_alloc+0x21/0x1e0 kernel/bpf/core.c:120
 bpf_prog_load kernel/bpf/syscall.c:2180 [inline]
 __do_sys_bpf kernel/bpf/syscall.c:4435 [inline]
 __se_sys_bpf+0x9856/0x11cb0 kernel/bpf/syscall.c:4391
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:4391
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f0880cc00a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f088003a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f0880df6f80 RCX: 00007f0880cc00a9
RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00007f0880d2f074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f0880df6f80 R15: 00007ffe2948cd58

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/24 11:30 android13-5.10-lts b58b8f9dad93 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in sys_bpf
2024/06/20 06:42 android13-5.10-lts b58b8f9dad93 41b7e219 .config console log report info ci2-android-5-10-perf BUG: soft lockup in sys_bpf
* Struck through repros no longer work on HEAD.