====================================== | 0 | xx__-> [ 27.365703][ T243] ip (243) used greatest stack depth: 24512 bytes left | [ 69.002885][ C1] BUG: spinlock bad magic on CPU#1, ip/461 | [ 69.003124][ C1] lock: noop_qdisc+0x240/0x300, .magic: 00000000, .owner: ip/461, .owner_cpu: 1 [ 69.003686][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 69.004068][ C1] Call Trace: [ 69.004201][ C1] [ 69.004291][ C1] dump_stack_lvl (lib/dump_stack.c:122) [ 69.004490][ C1] do_raw_spin_unlock (kernel/locking/spinlock_debug.c:100 kernel/locking/spinlock_debug.c:141) [ 69.004686][ C1] _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 69.004871][ C1] net_tx_action (./include/net/sch_generic.h:226 ./include/net/sch_generic.h:217 ./include/net/pkt_sched.h:128 ./include/net/pkt_sched.h:124 net/core/dev.c:5323) [ 69.005045][ C1] handle_softirqs (kernel/softirq.c:554) [ 69.005231][ C1] ? dev_deactivate_many (./include/linux/bottom_half.h:33 ./include/linux/netdevice.h:4448 net/sched/sch_generic.c:571 net/sched/sch_generic.c:1363) [ 69.005397][ C1] do_softirq (kernel/softirq.c:455 kernel/softirq.c:442) [ 69.005536][ C1] [ 69.005636][ C1] [ 69.005721][ C1] __local_bh_enable_ip (kernel/softirq.c:382) [ 69.005888][ C1] dev_deactivate_many (net/sched/sch_generic.c:1356) [ 69.006052][ C1] __dev_close_many (net/core/dev.c:1547) [ 69.006217][ C1] ? __pfx___dev_close_many (net/core/dev.c:1522) [ 69.006380][ C1] ? mark_held_locks (kernel/locking/lockdep.c:4273) [ 69.006552][ C1] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 69.006753][ C1] __dev_change_flags (./include/linux/list.h:111 ./include/linux/list.h:215 ./include/linux/list.h:229 net/core/dev.c:1571 net/core/dev.c:8836) [ 69.006917][ C1] ? __pfx___dev_change_flags (net/core/dev.c:8802) [ 69.007083][ C1] dev_change_flags (net/core/dev.c:8910) [ 69.007249][ C1] do_setlink (net/core/rtnetlink.c:2900) [ 69.007415][ C1] ? is_bpf_text_address (./include/linux/rcupdate.h:336 ./include/linux/rcupdate.h:869 ./kernel/bpf/core.c:769) [ 69.007587][ C1] ? __pfx_do_setlink (net/core/rtnetlink.c:2778) [ 69.007749][ C1] ? is_bpf_text_address (./kernel/bpf/core.c:772) [ 69.007921][ C1] ? kernel_text_address (kernel/extable.c:97 kernel/extable.c:94) [ 69.008085][ C1] ? __kernel_text_address (kernel/extable.c:79) [ 69.008250][ C1] ? unwind_get_return_address (arch/x86/kernel/unwind_orc.c:369 arch/x86/kernel/unwind_orc.c:364) [ 69.008416][ C1] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 69.008629][ C1] ? arch_stack_walk (arch/x86/kernel/stacktrace.c:26) [ 69.008796][ C1] ? stack_trace_save (kernel/stacktrace.c:123) [ 69.008960][ C1] ? __pfx_stack_trace_save (kernel/stacktrace.c:114) [ 69.009123][ C1] ? stack_depot_save_flags (lib/stackdepot.c:609) [ 69.009289][ C1] ? mark_lock (kernel/locking/lockdep.c:4655 (discriminator 3)) [ 69.009414][ C1] ? kasan_save_stack (mm/kasan/common.c:49) [ 69.009590][ C1] ? kasan_save_stack (mm/kasan/common.c:48) [ 69.009761][ C1] ? kasan_save_track (./arch/x86/include/asm/current.h:49 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 69.009923][ C1] ? __kasan_kmalloc (mm/kasan/common.c:391) [ 69.010090][ C1] ? rtnl_newlink (./include/linux/slab.h:681 net/core/rtnetlink.c:3739) [ 69.010253][ C1] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6647) [ 69.010418][ C1] ? netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 69.010591][ C1] ? netlink_unicast (net/netlink/af_netlink.c:1331 net/netlink/af_netlink.c:1357) [ 69.010770][ C1] ? __nla_validate_parse (./include/net/netlink.h:1267 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 69.010936][ C1] ? ____sys_sendmsg (net/socket.c:730 net/socket.c:745 net/socket.c:2597) [ 69.011101][ C1] ? ___sys_sendmsg (net/socket.c:2653) [ 69.011265][ C1] __rtnl_newlink (net/core/rtnetlink.c:3696) [ 69.011432][ C1] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:227) [ 69.011610][ C1] ? __pfx___rtnl_newlink (net/core/rtnetlink.c:3557) [ 69.011774][ C1] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 69.011977][ C1] ? __create_object (mm/kmemleak.c:751) [ 69.012144][ C1] ? trace_kmalloc (./include/trace/events/kmem.h:54 (discriminator 52)) [ 69.012312][ C1] rtnl_newlink (net/core/rtnetlink.c:3744) [ 69.012436][ C1] rtnetlink_rcv_msg (net/core/rtnetlink.c:6647) [ 69.012611][ C1] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6541) [ 69.012772][ C1] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:227) [ 69.012936][ C1] ? mark_lock (kernel/locking/lockdep.c:4655 (discriminator 3)) [ 69.013062][ C1] ? __lock_acquire (kernel/locking/lockdep.c:5142) [ 69.013228][ C1] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 69.013392][ C1] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6541) [ 69.013572][ C1] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2527) [ 69.013742][ C1] ? netlink_deliver_tap (./include/linux/rcupdate.h:336 ./include/linux/rcupdate.h:869 net/netlink/af_netlink.c:340) [ 69.013907][ C1] ? netlink_deliver_tap (./include/linux/rcupdate.h:336 ./include/linux/rcupdate.h:869 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 69.014076][ C1] netlink_unicast (net/netlink/af_netlink.c:1331 net/netlink/af_netlink.c:1357) [ 69.014251][ C1] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1342) [ 69.014413][ C1] ? find_held_lock (kernel/locking/lockdep.c:5249) [ 69.014576][ C1] netlink_sendmsg (net/netlink/af_netlink.c:1901) [ 69.014729][ C1] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1820) [ 69.014893][ C1] ? __might_fault (mm/memory.c:6388 mm/memory.c:6381) [ 69.015045][ C1] ? __import_iovec (lib/iov_iter.c:1263 lib/iov_iter.c:1279) [ 69.015212][ C1] ____sys_sendmsg (net/socket.c:730 net/socket.c:745 net/socket.c:2597) [ 69.015361][ C1] ? __pfx_____sys_sendmsg (net/socket.c:2543) [ 69.015533][ C1] ? __pfx_copy_msghdr_from_user (net/socket.c:2523) [ 69.015720][ C1] ? __pfx_validate_chain (kernel/locking/lockdep.c:3824) [ 69.015868][ C1] ___sys_sendmsg (net/socket.c:2653) [ 69.016024][ C1] ? __pfx____sys_sendmsg (net/socket.c:2640) [ 69.016172][ C1] ? find_held_lock (kernel/locking/lockdep.c:5249) [ 69.016321][ C1] ? __lock_release (kernel/locking/lockdep.c:5435) [ 69.016474][ C1] ? __debug_check_no_obj_freed (lib/debugobjects.c:1001) [ 69.016663][ C1] ? __pfx___lock_release (kernel/locking/lockdep.c:5411) [ 69.016810][ C1] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 69.016960][ C1] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 69.017153][ C1] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 69.017313][ C1] __sys_sendmsg (./include/linux/file.h:34 net/socket.c:2682) [ 69.017472][ C1] ? __pfx___sys_sendmsg (net/socket.c:2668) [ 69.017641][ C1] ? __virt_addr_valid (./arch/x86/include/asm/preempt.h:94 ./include/linux/rcupdate.h:953 ./include/linux/mmzone.h:2034 arch/x86/mm/physaddr.c:65) [ 69.017793][ C1] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 69.017952][ C1] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 69.018147][ C1] RIP: 0033:0x7fe759bc97b7 [ 69.018302][ C1] Code: 0a 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0a 00 or (%rax),%al 2: f7 d8 neg %eax 4: 64 89 02 mov %eax,%fs:(%rdx) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 23: b8 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 69.018862][ C1] RSP: 002b:00007ffec72ec8e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 69.019100][ C1] RAX: ffffffffffffffda RBX: 00007ffec72ed010 RCX: 00007fe759bc97b7 [ 69.019332][ C1] RDX: 0000000000000000 RSI: 00007ffec72ec950 RDI: 0000000000000005 [ 69.019584][ C1] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 69.019828][ C1] R10: 00007fe759a87ef8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: do_raw_spin_unlock:_raw_spin_unlock:net_tx_action:handle_softirqs:do_softirq