====================================== | xx__-> [ 33.452890][ T253] ip (253) used greatest stack depth: 23984 bytes left | [ 38.646138][ T276] eth1: renamed from tmp | [ 113.766635][ C3] BUG: spinlock bad magic on CPU#3, ip/477 | [ 113.766985][ C3] lock: noop_qdisc+0x240/0x300, .magic: 00000000, .owner: ip/477, .owner_cpu: 3 [ 113.767783][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 113.768306][ C3] Call Trace: [ 113.768481][ C3] [ 113.768605][ C3] dump_stack_lvl (lib/dump_stack.c:122) [ 113.768852][ C3] do_raw_spin_unlock (kernel/locking/spinlock_debug.c:100 kernel/locking/spinlock_debug.c:141) [ 113.769114][ C3] _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 113.769351][ C3] 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) [ 113.769578][ C3] handle_softirqs (kernel/softirq.c:554) [ 113.769811][ C3] ? 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) [ 113.770044][ C3] do_softirq (kernel/softirq.c:455 kernel/softirq.c:442) [ 113.770244][ C3] [ 113.770368][ C3] [ 113.770488][ C3] __local_bh_enable_ip (kernel/softirq.c:382) [ 113.770731][ C3] dev_deactivate_many (net/sched/sch_generic.c:1356) [ 113.770960][ C3] __dev_close_many (net/core/dev.c:1547) [ 113.771208][ C3] ? __pfx___dev_close_many (net/core/dev.c:1522) [ 113.771454][ C3] ? mark_held_locks (kernel/locking/lockdep.c:4273) [ 113.771692][ C3] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 113.771983][ C3] __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) [ 113.772218][ C3] ? __pfx___dev_change_flags (net/core/dev.c:8802) [ 113.772454][ C3] dev_change_flags (net/core/dev.c:8910) [ 113.772695][ C3] do_setlink (net/core/rtnetlink.c:2900) [ 113.772930][ C3] ? is_bpf_text_address (./include/linux/rcupdate.h:336 ./include/linux/rcupdate.h:869 ./kernel/bpf/core.c:769) [ 113.773168][ C3] ? __pfx_do_setlink (net/core/rtnetlink.c:2778) [ 113.773398][ C3] ? is_bpf_text_address (./kernel/bpf/core.c:772) [ 113.773643][ C3] ? kernel_text_address (kernel/extable.c:97 kernel/extable.c:94) [ 113.773867][ C3] ? __kernel_text_address (kernel/extable.c:79) [ 113.774090][ C3] ? unwind_get_return_address (arch/x86/kernel/unwind_orc.c:369 arch/x86/kernel/unwind_orc.c:364) [ 113.774342][ C3] ? __pfx_stack_trace_consume_entry (kernel/stacktrace.c:83) [ 113.774677][ C3] ? arch_stack_walk (arch/x86/kernel/stacktrace.c:26) [ 113.774916][ C3] ? stack_trace_save (kernel/stacktrace.c:123) [ 113.775139][ C3] ? __pfx_stack_trace_save (kernel/stacktrace.c:114) [ 113.775366][ C3] ? stack_depot_save_flags (lib/stackdepot.c:609) [ 113.775597][ C3] ? mark_lock (kernel/locking/lockdep.c:4655 (discriminator 3)) [ 113.775779][ C3] ? kasan_save_stack (mm/kasan/common.c:49) [ 113.776010][ C3] ? kasan_save_stack (mm/kasan/common.c:48) [ 113.776234][ C3] ? kasan_save_track (./arch/x86/include/asm/current.h:49 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 113.776506][ C3] ? __kasan_kmalloc (mm/kasan/common.c:391) [ 113.776776][ C3] ? rtnl_newlink (./include/linux/slab.h:681 net/core/rtnetlink.c:3739) [ 113.777013][ C3] ? rtnetlink_rcv_msg (net/core/rtnetlink.c:6647) [ 113.777246][ C3] ? netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 113.777488][ C3] ? netlink_unicast (net/netlink/af_netlink.c:1331 net/netlink/af_netlink.c:1357) [ 113.777724][ C3] ? __nla_validate_parse (./include/net/netlink.h:1267 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 113.777960][ C3] ? ____sys_sendmsg (net/socket.c:730 net/socket.c:745 net/socket.c:2597) [ 113.778192][ C3] ? ___sys_sendmsg (net/socket.c:2653) [ 113.778465][ C3] __rtnl_newlink (net/core/rtnetlink.c:3696) [ 113.778750][ C3] ? 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) [ 113.778994][ C3] ? __pfx___rtnl_newlink (net/core/rtnetlink.c:3557) [ 113.779232][ C3] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 113.779525][ C3] ? __create_object (mm/kmemleak.c:751) [ 113.779771][ C3] ? trace_kmalloc (./include/trace/events/kmem.h:54 (discriminator 52)) [ 113.780001][ C3] rtnl_newlink (net/core/rtnetlink.c:3744) [ 113.780172][ C3] rtnetlink_rcv_msg (net/core/rtnetlink.c:6647) [ 113.780400][ C3] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6541) [ 113.780660][ C3] ? 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) [ 113.780895][ C3] ? mark_lock (kernel/locking/lockdep.c:4655 (discriminator 3)) [ 113.781075][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5142) [ 113.781346][ C3] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 113.781583][ C3] ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:6541) [ 113.781821][ C3] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2527) [ 113.782065][ C3] ? netlink_deliver_tap (./include/linux/rcupdate.h:336 ./include/linux/rcupdate.h:869 net/netlink/af_netlink.c:340) [ 113.782298][ C3] ? 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) [ 113.782559][ C3] netlink_unicast (net/netlink/af_netlink.c:1331 net/netlink/af_netlink.c:1357) [ 113.782784][ C3] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1342) [ 113.783013][ C3] ? find_held_lock (kernel/locking/lockdep.c:5249) [ 113.783249][ C3] netlink_sendmsg (net/netlink/af_netlink.c:1901) [ 113.783483][ C3] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1820) [ 113.783707][ C3] ? __might_fault (mm/memory.c:6388 mm/memory.c:6381) [ 113.783944][ C3] ? __import_iovec (lib/iov_iter.c:1263 lib/iov_iter.c:1279) [ 113.784182][ C3] ____sys_sendmsg (net/socket.c:730 net/socket.c:745 net/socket.c:2597) [ 113.784721][ C3] ? __pfx_____sys_sendmsg (net/socket.c:2543) [ 113.784963][ C3] ? __pfx_copy_msghdr_from_user (net/socket.c:2523) [ 113.785288][ C3] ? __pfx_validate_chain (kernel/locking/lockdep.c:3824) [ 113.785536][ C3] ___sys_sendmsg (net/socket.c:2653) [ 113.785781][ C3] ? __pfx____sys_sendmsg (net/socket.c:2640) [ 113.785995][ C3] ? find_held_lock (kernel/locking/lockdep.c:5249) [ 113.786236][ C3] ? __lock_release (kernel/locking/lockdep.c:5435) [ 113.786487][ C3] ? __debug_check_no_obj_freed (lib/debugobjects.c:1001) [ 113.786775][ C3] ? __pfx___lock_release (kernel/locking/lockdep.c:5411) [ 113.787051][ C3] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 113.787284][ C3] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 113.787571][ C3] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 113.787801][ C3] __sys_sendmsg (./include/linux/file.h:34 net/socket.c:2682) [ 113.788047][ C3] ? __pfx___sys_sendmsg (net/socket.c:2668) [ 113.788274][ C3] ? __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) [ 113.788512][ C3] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 113.788745][ C3] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 113.789021][ C3] RIP: 0033:0x7fce8246c7b7 [ 113.789263][ C3] 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) [ 113.790056][ C3] RSP: 002b:00007ffdf6739e28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 113.790414][ C3] RAX: ffffffffffffffda RBX: 00007ffdf673a560 RCX: 00007fce8246c7b7 [ 113.790756][ C3] RDX: 0000000000000000 RSI: 00007ffdf6739e90 RDI: 0000000000000005 [ 113.791074][ C3] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 113.791403][ C3] R10: 00007fce8232a4a8 R11: 0000000000000246 R12: 0000000000000003 Finger prints: do_raw_spin_unlock:_raw_spin_unlock:net_tx_action:handle_softirqs:do_softirq