syzbot


BUG: soft lockup in skb_release_data

Status: upstream: reported on 2023/02/15 16:04
Reported-by: syzbot+ace12d9c3da720e390e4@syzkaller.appspotmail.com
First crash: 520d, last: 520d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in skb_release_data mm fs 1 1048d 1048d 0/27 auto-closed as invalid on 2021/12/04 08:37

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [syz-executor.1:24247]
Modules linked in:
irq event stamp: 2449351
hardirqs last  enabled at (2449350): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2449351): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (8342): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (8345): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (8345): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 1 PID: 24247 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:kfree+0x123/0x210 mm/slab.c:3823
Code: 89 ea 48 89 ee 4c 89 e7 e8 da ee ff ff f6 c7 02 74 ca e8 20 74 cf ff 48 83 3d 60 4d 59 08 00 0f 84 eb 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 ea 4b 69 7e 83 f8 07
RSP: 0018:ffff8880ba107530 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff110154b492c
RDX: 0000000000000000 RSI: ffff8880aa5a4968 RDI: 0000000000000286
RBP: ffff888061c704c0 R08: 0000000000400000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813bff0ac0
R13: ffffffff8670bf6e R14: 0000000000000000 R15: ffff888061c707b0
FS:  00005555563cb400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc511c00000 CR3: 000000008ef1c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 skb_free_head net/core/skbuff.c:563 [inline]
 skb_release_data+0x6de/0x920 net/core/skbuff.c:583
 skb_release_all net/core/skbuff.c:640 [inline]
 __kfree_skb net/core/skbuff.c:654 [inline]
 kfree_skb+0x11a/0x3d0 net/core/skbuff.c:672
 __netif_receive_skb_core+0x535/0x3270 net/core/dev.c:4928
 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
 netif_receive_skb_internal+0xf0/0x3f0 net/core/dev.c:5156
 ieee80211_deliver_skb_to_local_stack net/mac80211/rx.c:2473 [inline]
 ieee80211_deliver_skb+0x9b6/0xe00 net/mac80211/rx.c:2563
 ieee80211_rx_h_data net/mac80211/rx.c:2915 [inline]
 ieee80211_rx_handlers+0x1b70/0x9730 net/mac80211/rx.c:3685
 ieee80211_invoke_rx_handlers net/mac80211/rx.c:3726 [inline]
 ieee80211_prepare_and_rx_handle+0x23fa/0x6790 net/mac80211/rx.c:4423
 __ieee80211_rx_handle_packet net/mac80211/rx.c:4483 [inline]
 ieee80211_rx_napi+0x108d/0x2470 net/mac80211/rx.c:4672
 ieee80211_rx include/net/mac80211.h:4109 [inline]
 ieee80211_tasklet_handler+0x101/0x160 net/mac80211/main.c:229
 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:536 [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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:150 [inline]
RIP: 0010:qlist_free_all+0xfc/0x140 mm/kasan/quarantine.c:166
Code: 50 08 48 8d 4a ff 83 e2 01 48 0f 45 c1 4c 8b 70 18 e9 40 ff ff ff e8 a3 36 cf ff 48 83 3d e3 0f 59 08 00 74 38 4c 89 ff 57 9d <0f> 1f 44 00 00 4d 85 e4 75 9e 49 c7 45 08 00 00 00 00 49 c7 45 00
RSP: 0018:ffff88804933f908 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff888098163180 RCX: 1ffff110154b491d
RDX: 0000000000000000 RSI: ffff8880aa5a48f0 RDI: 0000000000000286
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a211ad80
R13: ffff88804933f940 R14: ffff88823b33a540 R15: 0000000000000286
 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
 vm_area_alloc+0x1c/0x110 kernel/fork.c:321
 mmap_region+0xa2a/0x16b0 mm/mmap.c:1727
 do_mmap+0x8e8/0x1080 mm/mmap.c:1530
 do_mmap_pgoff include/linux/mm.h:2329 [inline]
 vm_mmap_pgoff+0x197/0x200 mm/util.c:357
 ksys_mmap_pgoff+0x45f/0x5a0 mm/mmap.c:1580
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f2217eb0142
Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 b8 ff ff ff 64
RSP: 002b:00007ffcf686fa38 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000020022 RCX: 00007f2217eb0142
RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000020022 R11: 0000000000000246 R12: 00007ffcf686fc40
R13: 00007f2216c23700 R14: 0000000000000000 R15: 0000000000022000
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 24256 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:lock_is_held_type+0x45/0x210 kernel/locking/lockdep.c:3939
Code: 8d bb 84 08 00 00 48 83 ec 08 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 5e 01 00 00 <8b> 83 84 08 00 00 85 c0 0f 85 38 01 00 00 48 c7 c0 80 82 f1 89 48
RSP: 0018:ffff8880a99beca8 EFLAGS: 00000246
RAX: 0000000000000007 RBX: ffff8880b0296680 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff8880b0296f04
RBP: ffffffff89f85fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809a07f4f8
R13: ffff8880565b2aa0 R14: 0000000000000002 R15: 0000000000000000
FS:  00007efe1d3dc700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00080e000 CR3: 00000000b465a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __iterate_interfaces+0x3f7/0x4a0 net/mac80211/util.c:618
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
 mac80211_hwsim_addr_match+0x128/0x180 drivers/net/wireless/mac80211_hwsim.c:970
 mac80211_hwsim_tx_frame_no_nl.isra.0+0xbb0/0x1330 drivers/net/wireless/mac80211_hwsim.c:1358
 mac80211_hwsim_tx+0x58f/0x12f0 drivers/net/wireless/mac80211_hwsim.c:1453
 drv_tx net/mac80211/driver-ops.h:36 [inline]
 ieee80211_tx_frags+0x570/0x9d0 net/mac80211/tx.c:1661
 __ieee80211_tx+0x1b1/0x5f0 net/mac80211/tx.c:1723
 ieee80211_tx+0x355/0x3e0 net/mac80211/tx.c:1909
 ieee80211_xmit+0x380/0x480 net/mac80211/tx.c:2003
 __ieee80211_subif_start_xmit+0x51b/0x970 net/mac80211/tx.c:3728
 ieee80211_subif_start_xmit+0xeb/0xf10 net/mac80211/tx.c:3864
 __netdev_start_xmit include/linux/netdevice.h:4349 [inline]
 netdev_start_xmit include/linux/netdevice.h:4363 [inline]
 xmit_one net/core/dev.c:3256 [inline]
 dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272
 sch_direct_xmit+0x2d6/0xf70 net/sched/sch_generic.c:332
 qdisc_restart net/sched/sch_generic.c:395 [inline]
 __qdisc_run+0x4d0/0x1640 net/sched/sch_generic.c:403
 qdisc_run include/net/pkt_sched.h:120 [inline]
 __dev_xmit_skb net/core/dev.c:3451 [inline]
 __dev_queue_xmit+0x2102/0x2e00 net/core/dev.c:3807
 __bpf_tx_skb net/core/filter.c:2015 [inline]
 __bpf_redirect_common net/core/filter.c:2054 [inline]
 __bpf_redirect+0x746/0xbc0 net/core/filter.c:2061
 ____bpf_clone_redirect net/core/filter.c:2094 [inline]
 bpf_clone_redirect+0x2c0/0x430 net/core/filter.c:2066
 ___bpf_prog_run+0x1bfa/0x4e80 kernel/bpf/core.c:1184

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/15 16:04 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: soft lockup in skb_release_data
* Struck through repros no longer work on HEAD.