watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.2:4049] Modules linked in: irq event stamp: 5316479 hardirqs last enabled at (5316478): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (5316479): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1094 softirqs last enabled at (5195184): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (5195189): [] asm_call_irq_on_stack+0x12/0x20 CPU: 0 PID: 4049 Comm: syz-executor.2 Not tainted 5.10.223 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:168 [inline] RIP: 0010:unwind_next_frame+0x205/0x1a90 arch/x86/kernel/unwind_orc.c:448 Code: 52 ff 39 d6 0f 83 0f 11 00 00 48 ba 00 00 00 00 00 fc ff df 89 f1 48 8d 3c 8d e8 8f d6 85 49 89 f8 49 c1 e8 03 45 0f b6 04 10 <48> 89 fa 83 e2 07 83 c2 03 44 38 c2 7c 09 45 84 c0 0f 85 67 12 00 RSP: 0018:ffff88806ce09670 EFLAGS: 00000212 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000006c6e RDX: dffffc0000000000 RSI: 0000000000006c6e RDI: ffffffff85d841a0 RBP: ffff88806ce0977d R08: 0000000000000000 R09: ffff88806ce09870 R10: 0000000000032042 R11: 1ffff1100d9c12d6 R12: ffff88806ce09790 R13: ffff88806ce09748 R14: 1ffff1100d9c12d6 R15: ffffffff816c6e5a FS: 00007f8d54e39700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000b038 CR3: 00000000481bc000 CR4: 0000000000350ef0 Call Trace: arch_stack_walk+0x83/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc9/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:532 [inline] slab_alloc_node mm/slub.c:2896 [inline] kmem_cache_alloc_node+0x14b/0x330 mm/slub.c:2932 __alloc_skb+0x6d/0x5b0 net/core/skbuff.c:199 skb_copy+0x183/0x350 net/core/skbuff.c:1529 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb1d/0x13d0 drivers/net/wireless/mac80211_hwsim.c:1499 mac80211_hwsim_tx_frame+0x152/0x1e0 drivers/net/wireless/mac80211_hwsim.c:1716 mac80211_hwsim_beacon_tx+0x494/0x940 drivers/net/wireless/mac80211_hwsim.c:1770 __iterate_interfaces+0x1f0/0x550 net/mac80211/util.c:792 ieee80211_iterate_active_interfaces_atomic+0x71/0x1c0 net/mac80211/util.c:828 mac80211_hwsim_beacon+0xd1/0x1d0 drivers/net/wireless/mac80211_hwsim.c:1793 __run_hrtimer kernel/time/hrtimer.c:1584 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1648 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1665 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __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+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:unwind_next_frame+0x3b5/0x1a90 arch/x86/kernel/unwind_orc.c:471 Code: 84 83 0a 00 00 0f 87 48 03 00 00 3c 04 0f 84 7a 06 00 00 3c 05 0f 85 8c 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 08 <48> c1 ea 03 80 3c 02 00 0f 85 71 15 00 00 48 89 c8 4d 8b 4d 38 48 RSP: 0018:ffff888046ee6658 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8597dfb6 RDX: ffff888046ee67b8 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff888046ee67b5 R08: ffffffff8597dfbb R09: ffffffff8597dfbc R10: 0000000000032042 R11: 1ffff11008ddccd3 R12: ffff888046ee67c8 R13: ffff888046ee6780 R14: 1ffff11008ddccd3 R15: ffffffff8597dfba __unwind_start+0x523/0x7e0 arch/x86/kernel/unwind_orc.c:701 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0x5f/0xf0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0x110/0x160 mm/kasan/common.c:422 slab_free_hook mm/slub.c:1542 [inline] slab_free_freelist_hook+0xa9/0x180 mm/slub.c:1576 slab_free mm/slub.c:3149 [inline] kfree+0xd7/0x340 mm/slub.c:4125 skb_free_head net/core/skbuff.c:605 [inline] skb_release_data+0x604/0x820 net/core/skbuff.c:625 skb_release_all net/core/skbuff.c:679 [inline] __kfree_skb net/core/skbuff.c:693 [inline] kfree_skb net/core/skbuff.c:711 [inline] kfree_skb+0x115/0x2c0 net/core/skbuff.c:705 skb_queue_purge+0x14/0x30 net/core/skbuff.c:3111 ieee80211_ibss_leave+0x115/0x160 net/mac80211/ibss.c:1890 rdev_leave_ibss net/wireless/rdev-ops.h:545 [inline] __cfg80211_leave_ibss+0x183/0x4f0 net/wireless/ibss.c:212 __cfg80211_leave+0x14b/0x370 net/wireless/core.c:1177 cfg80211_leave net/wireless/core.c:1228 [inline] cfg80211_netdev_notifier_call+0x385/0x10c0 net/wireless/core.c:1341 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xb3/0x110 kernel/notifier.c:410 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2047 call_netdevice_notifiers_extack net/core/dev.c:2059 [inline] call_netdevice_notifiers net/core/dev.c:2073 [inline] __dev_close_many+0xf3/0x2f0 net/core/dev.c:1593 __dev_close net/core/dev.c:1631 [inline] __dev_change_flags+0x299/0x6e0 net/core/dev.c:8505 dev_change_flags+0x8a/0x160 net/core/dev.c:8578 do_setlink+0x90c/0x3ac0 net/core/rtnetlink.c:2729 __rtnl_newlink+0xc39/0x1700 net/core/rtnetlink.c:3407 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x41e/0xbb0 net/core/rtnetlink.c:5607 netlink_rcv_skb+0x14b/0x430 net/netlink/af_netlink.c:2500 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x549/0x7f0 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x90f/0xdf0 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0x154/0x190 net/socket.c:663 ____sys_sendmsg+0x70d/0x870 net/socket.c:2378 ___sys_sendmsg+0xf3/0x170 net/socket.c:2432 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2461 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f8d578c3b19 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:00007f8d54e39188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f8d579d6f60 RCX: 00007f8d578c3b19 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007f8d5791df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdf146923f R14: 00007f8d54e39300 R15: 0000000000022000 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4090 Comm: syz-executor.6 Not tainted 5.10.223 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:debug_spin_unlock kernel/locking/spinlock_debug.c:99 [inline] RIP: 0010:do_raw_spin_unlock+0x9c/0x220 kernel/locking/spinlock_debug.c:138 Code: d2 0f 85 68 01 00 00 8b 03 85 c0 0f 84 26 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 63 10 4c 89 e2 48 c1 ea 03 80 3c 02 00 <0f> 85 63 01 00 00 65 48 8b 04 25 80 6f 02 00 48 39 43 10 0f 85 b8 RSP: 0018:ffff88806cf09758 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88806cf2ea40 RCX: ffffffff8127eabf RDX: 1ffff1100d9e5d4a RSI: 0000000000000004 RDI: ffff88806cf2ea40 RBP: ffff88806cf2ea40 R08: 0000000000000000 R09: ffff88806cf2ea43 R10: ffffed100d9e5d48 R11: 0000000000000001 R12: ffff88806cf2ea50 R13: ffff88806cf2eac0 R14: ffff88806cf2ea40 R15: dffffc0000000000 FS: 00007f1cf3a2d700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c038 CR3: 0000000047cde000 CR4: 0000000000350ee0 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:159 [inline] _raw_spin_unlock_irqrestore+0x1e/0x40 kernel/locking/spinlock.c:191 __run_hrtimer kernel/time/hrtimer.c:1580 [inline] __hrtimer_run_queues+0x56e/0xb40 kernel/time/hrtimer.c:1648 hrtimer_interrupt+0x2fd/0x9b0 kernel/time/hrtimer.c:1710 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline] __sysvec_apic_timer_interrupt+0xfb/0x310 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+0x3e/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:19 [inline] RIP: 0010:virt_spin_lock arch/x86/include/asm/qspinlock.h:100 [inline] RIP: 0010:queued_spin_lock_slowpath+0x122/0x8c0 kernel/locking/qspinlock.c:326 Code: 00 00 00 65 48 2b 04 25 28 00 00 00 0f 85 09 07 00 00 48 81 c4 88 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 f0 a5 f8 02 f3 90 73 ff ff ff 44 8b 74 24 48 41 81 fe 00 01 00 00 0f 84 e1 00 00 RSP: 0018:ffff88806cf09a38 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff87a04180 RCX: ffffffff81279957 RDX: fffffbfff0f40831 RSI: 0000000000000004 RDI: ffffffff87a04180 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff87a04183 R10: fffffbfff0f40830 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40830 R14: 0000000000000001 R15: 1ffff1100d9e1348 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x1dc/0x260 kernel/locking/spinlock_debug.c:113 spin_lock include/linux/spinlock.h:354 [inline] mac80211_hwsim_tx_frame_no_nl.isra.0+0x695/0x13d0 drivers/net/wireless/mac80211_hwsim.c:1450 mac80211_hwsim_tx_frame+0x152/0x1e0 drivers/net/wireless/mac80211_hwsim.c:1716 mac80211_hwsim_beacon_tx+0x494/0x940 drivers/net/wireless/mac80211_hwsim.c:1770 __iterate_interfaces+0x1f0/0x550 net/mac80211/util.c:792 ieee80211_iterate_active_interfaces_atomic+0x71/0x1c0 net/mac80211/util.c:828 mac80211_hwsim_beacon+0xd1/0x1d0 drivers/net/wireless/mac80211_hwsim.c:1793 __run_hrtimer kernel/time/hrtimer.c:1584 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1648 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1665 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __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+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:strlen+0x28/0xa0 lib/string.c:568 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 89 fd 53 48 c1 ea 03 48 83 ec 08 0f b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 <84> c0 75 50 80 7d 00 00 74 3d 48 bb 00 00 00 00 00 fc ff df 48 89 RSP: 0018:ffff88801b53f110 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff110036a7e2e RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff84ff8c20 RDI: ffffffff8447d500 RBP: ffffffff8447d500 R08: 0000000000000002 R09: 0000000000000000 R10: fffffbfff0aceb01 R11: 0000000000000001 R12: ffff88801b53f1f0 R13: ffffffff84ff8c20 R14: 0000000000000000 R15: ffffffff84eff180 strlen include/linux/string.h:314 [inline] trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline] perf_trace_lock_acquire+0xbc/0x590 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x3dc/0x470 kernel/locking/lockdep.c:5537 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:717 [inline] __is_insn_slot_addr+0x3f/0x290 kernel/kprobes.c:299 is_kprobe_insn_slot include/linux/kprobes.h:309 [inline] kernel_text_address kernel/extable.c:149 [inline] kernel_text_address+0xf2/0x120 kernel/extable.c:120 __kernel_text_address+0x9/0x40 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:323 [inline] unwind_get_return_address+0x55/0xa0 arch/x86/kernel/unwind_orc.c:318 arch_stack_walk+0x99/0xf0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc9/0xd0 mm/kasan/common.c:461 kmalloc_node include/linux/slab.h:570 [inline] kzalloc_node include/linux/slab.h:675 [inline] __get_vm_area_node+0xd4/0x340 mm/vmalloc.c:2073 __vmalloc_node_range+0x13f/0x9e0 mm/vmalloc.c:2559 __vmalloc_node+0xb5/0x110 mm/vmalloc.c:2607 n_tty_open+0x16/0x170 drivers/tty/n_tty.c:1910 tty_ldisc_open+0xa2/0x120 drivers/tty/tty_ldisc.c:464 tty_ldisc_setup+0x43/0x100 drivers/tty/tty_ldisc.c:773 tty_init_dev.part.0+0x1fa/0x610 drivers/tty/tty_io.c:1449 tty_init_dev+0x5b/0x80 drivers/tty/tty_io.c:1415 ptmx_open drivers/tty/pty.c:836 [inline] ptmx_open+0x116/0x370 drivers/tty/pty.c:802 chrdev_open+0x268/0x6e0 fs/char_dev.c:414 do_dentry_open+0x4b7/0x1090 fs/open.c:817 do_open fs/namei.c:3307 [inline] path_openat+0x19ba/0x2770 fs/namei.c:3425 do_filp_open+0x190/0x3e0 fs/namei.c:3452 do_sys_openat2+0x171/0x4d0 fs/open.c:1227 do_sys_open fs/open.c:1243 [inline] __do_sys_openat fs/open.c:1259 [inline] __se_sys_openat fs/open.c:1254 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1254 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f1cf64f9b19 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:00007f1cf3a2d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f1cf660d0e0 RCX: 00007f1cf64f9b19 RDX: 0000000000000c02 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007f1cf6553f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd30e3f9ff R14: 00007f1cf3a2d300 R15: 0000000000022000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 39 d6 cmp %edx,%esi 2: 0f 83 0f 11 00 00 jae 0x1117 8: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx f: fc ff df 12: 89 f1 mov %esi,%ecx 14: 48 8d 3c 8d e8 8f d6 lea -0x7a297018(,%rcx,4),%rdi 1b: 85 1c: 49 89 f8 mov %rdi,%r8 1f: 49 c1 e8 03 shr $0x3,%r8 23: 45 0f b6 04 10 movzbl (%r8,%rdx,1),%r8d * 28: 48 89 fa mov %rdi,%rdx <-- trapping instruction 2b: 83 e2 07 and $0x7,%edx 2e: 83 c2 03 add $0x3,%edx 31: 44 38 c2 cmp %r8b,%dl 34: 7c 09 jl 0x3f 36: 45 84 c0 test %r8b,%r8b 39: 0f .byte 0xf 3a: 85 67 12 test %esp,0x12(%rdi)