BUG: soft lockup in bpf

19 views
Skip to first unread message

syzbot

unread,
Apr 27, 2021, 7:47:21 AM4/27/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2965db2e Linux 4.19.188
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1364d983d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=66e717310a9b0f81
dashboard link: https://syzkaller.appspot.com/bug?extid=af484b9679e9454fe724

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+af484b...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.4:10292]
Modules linked in:
irq event stamp: 2033948
hardirqs last enabled at (2033947): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2033948): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (7004): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (6817): [<ffffffff813926d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (6817): [<ffffffff813926d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 10292 Comm: syz-executor.4 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:123 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:436 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3b5/0xae0 kernel/locking/qspinlock.c:474
Code: 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 <38> d8 7f 08 84 c0 0f 85 75 05 00 00 0f b6 45 00 84 c0 75 db be 02
RSP: 0018:ffff88804f30f930 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff1403130
RDX: 0000000000000001 RSI: ffffffff81678675 RDI: 0000000000000286
RBP: ffffffff8a018980 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000002c39
R13: fffffbfff1403130 R14: 0000000000000001 R15: ffff8880ba02bd80
FS: 00007f88277fa700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004e4dc1 CR3: 00000000a5656000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
alloc_vmap_area+0x186/0x980 mm/vmalloc.c:432
__get_vm_area_node+0x17b/0x3a0 mm/vmalloc.c:1401
__vmalloc_node_range mm/vmalloc.c:1748 [inline]
__vmalloc_node mm/vmalloc.c:1804 [inline]
__vmalloc+0x13e/0x220 mm/vmalloc.c:1810
bpf_prog_alloc+0x5f/0x290 kernel/bpf/core.c:86
bpf_prog_load+0x49a/0x1240 kernel/bpf/syscall.c:1399
__do_sys_bpf kernel/bpf/syscall.c:2418 [inline]
__se_sys_bpf+0xf22/0x3a20 kernel/bpf/syscall.c:2379
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f88277fa188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000048 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffc4fbd7f0f R14: 00007f88277fa300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10299 Comm: syz-executor.0 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lock_acquire+0x19f/0x3c0 kernel/locking/lockdep.c:3909
Code: 00 00 fc ff df 65 48 8b 1c 25 80 df 01 00 48 8d bb 84 08 00 00 48 83 c4 20 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 <83> c0 03 38 d0 7c 08 84 d2 0f 85 d6 01 00 00 48 c7 c0 48 82 f1 89
RSP: 0018:ffff8880ba1076a0 EFLAGS: 00000002
RAX: 0000000000000004 RBX: ffff88804ec5a1c0 RCX: 00000000000073ba
RDX: 0000000000000000 RSI: 0000000027a8b8bf RDI: ffff88804ec5aa44
RBP: ffff8880ba124c98 R08: ffffffff8cd4f310 R09: 0000000000000005
R10: ffff88804ec5ab10 R11: ffffffff8c66305b R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001
FS: 00007fc4c2ba0700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30423000 CR3: 00000000b051b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:152
hrtimer_interrupt+0xf9/0x9e0 kernel/time/hrtimer.c:1520
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:jhash2 include/linux/jhash.h:138 [inline]
RIP: 0010:hash_stack lib/stackdepot.c:165 [inline]
RIP: 0010:depot_save_stack+0x1b0/0x410 lib/stackdepot.c:234
Code: 89 da 41 31 da c1 c2 0b 41 29 d2 44 89 d2 44 31 d0 c1 ca 07 29 d0 89 c2 31 c3 c1 c2 10 29 d3 89 da 41 31 da c1 c2 04 41 29 d2 <44> 31 d0 41 c1 c2 0e 44 29 d0 31 c3 c1 c8 08 29 c3 e9 2e ff ff ff
RSP: 0018:ffff8880ba1078b0 EFLAGS: 00000287 ORIG_RAX: ffffffffffffff13
RAX: 0000000039394b30 RBX: 000000006a4b8b7f RCX: ffff8880ba107910
RDX: 00000000a4b8b7f6 RSI: 000000000000000d RDI: 000000000000000d
RBP: 000000003691c70e R08: 0000000000490220 R09: 0000000000000002
R10: 00000000f69d3f14 R11: 0000000026da764d R12: ffff8880ba1078f8
R13: 0000000000000000 R14: ffff88813bff0940 R15: 0000000000000200
save_stack mm/kasan/kasan.c:454 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0x139/0x160 mm/kasan/kasan.c:553
slab_post_alloc_hook mm/slab.h:445 [inline]
slab_alloc_node mm/slab.c:3340 [inline]
kmem_cache_alloc_node_trace+0x13c/0x3b0 mm/slab.c:3666
__do_kmalloc_node mm/slab.c:3688 [inline]
__kmalloc_node_track_caller+0x38/0x70 mm/slab.c:3703
__kmalloc_reserve net/core/skbuff.c:137 [inline]
__alloc_skb+0xae/0x560 net/core/skbuff.c:205
skb_copy+0x139/0x2f0 net/core/skbuff.c:1358
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:535 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:number+0x69e/0xa90 lib/vsprintf.c:518
Code: 00 00 41 c6 07 30 e8 81 bb 73 f9 49 83 c7 01 41 83 ec 01 44 89 ef 44 89 e6 e8 5e bc 73 f9 45 39 e5 7e a9 e8 64 bb 73 f9 31 ff <89> ee 89 6c 24 04 e8 c7 bc 73 f9 85 ed 0f 88 fb 02 00 00 48 63 c5
RSP: 0018:ffff88804ee0fa10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: 00000000fffffffa RCX: ffffc90005c09000
RDX: 000000000001caff RSI: ffffffff87eea25c RDI: 0000000000000000
RBP: 0000000000000001 R08: 000000000000000f R09: 0000000000000002
R10: 0000000000000004 R11: 000000009e5a96b2 R12: 0000000000000001
R13: 0000000000000002 R14: ffff88804ecf3680 R15: ffff88804ecf26dc
vsnprintf+0xf07/0x14f0 lib/vsprintf.c:2359
seq_vprintf fs/seq_file.c:391 [inline]
seq_printf+0x195/0x240 fs/seq_file.c:406
show_numa_info mm/vmalloc.c:2700 [inline]
s_show mm/vmalloc.c:2753 [inline]
s_show+0x705/0x840 mm/vmalloc.c:2704
traverse.part.0+0xcf/0x590 fs/seq_file.c:113
traverse fs/seq_file.c:103 [inline]
seq_lseek+0x1c1/0x470 fs/seq_file.c:325
proc_reg_llseek+0x1b6/0x2b0 fs/proc/inode.c:217
vfs_llseek fs/read_write.c:300 [inline]
ksys_lseek+0x14f/0x1b0 fs/read_write.c:313
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc4c2ba0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000008
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 0000000000006080 RDI: 0000000000000003
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffdf71d90af R14: 00007fc4c2ba0300 R15: 0000000000022000


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Aug 25, 2021, 7:47:16 AM8/25/21
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages