====================================== | xx__-> echo $? | 0 | xx__-> [ 27.796310][ C0] BUG: spinlock bad magic on CPU#0, kworker/u16:0/11 | [ 27.796533][ C0] lock: noop_qdisc+0x240/0x300, .magic: 00000000, .owner: kworker/u16:0/11, .owner_cpu: 0 [ 27.797052][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 27.797370][ C0] Workqueue: netns cleanup_net [ 27.797527][ C0] Call Trace: [ 27.797651][ C0] [ 27.797726][ C0] dump_stack_lvl (lib/dump_stack.c:122) [ 27.797881][ C0] do_raw_spin_unlock (kernel/locking/spinlock_debug.c:100 kernel/locking/spinlock_debug.c:141) [ 27.798034][ C0] _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 27.798183][ C0] 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) [ 27.798331][ C0] handle_softirqs (kernel/softirq.c:554) [ 27.798482][ C0] ? 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) [ 27.798629][ C0] do_softirq (kernel/softirq.c:455 kernel/softirq.c:442) [ 27.798740][ C0] [ 27.798815][ C0] [ 27.798888][ C0] __local_bh_enable_ip (kernel/softirq.c:382) [ 27.799036][ C0] dev_deactivate_many (net/sched/sch_generic.c:1356) [ 27.799185][ C0] __dev_close_many (net/core/dev.c:1547) [ 27.799328][ C0] ? __pfx___dev_close_many (net/core/dev.c:1522) [ 27.799471][ C0] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 27.799615][ C0] dev_close_many (net/core/dev.c:1585) [ 27.799755][ C0] ? lock_acquire.part.0 (kernel/locking/lockdep.c:466 kernel/locking/lockdep.c:5761) [ 27.799898][ C0] ? default_device_exit_batch (net/core/dev.c:11876) [ 27.800041][ C0] ? __pfx_dev_close_many (net/core/dev.c:1575) [ 27.800190][ C0] ? fou_exit_net (net/ipv4/fou_core.c:1215) [ 27.800346][ C0] ? __mutex_trylock_common (./arch/x86/include/asm/atomic64_64.h:101 ./include/linux/atomic/atomic-arch-fallback.h:4296 ./include/linux/atomic/atomic-long.h:1482 ./include/linux/atomic/atomic-instrumented.h:4458 kernel/locking/mutex.c:129) [ 27.800487][ C0] unregister_netdevice_many_notify (net/core/dev.c:11321) [ 27.800666][ C0] ? lock_acquire (kernel/locking/lockdep.c:5732) [ 27.800801][ C0] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 52)) [ 27.800946][ C0] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 27.801084][ C0] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11288) [ 27.801258][ C0] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 27.801419][ C0] ? find_held_lock (kernel/locking/lockdep.c:5249) [ 27.801570][ C0] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.c:81 kernel/locking/mutex.c:91) [ 27.801703][ C0] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 27.801854][ C0] ? unregister_netdevice_queue (net/core/dev.c:11273) [ 27.802024][ C0] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11272) [ 27.802196][ C0] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11272) [ 27.802367][ C0] default_device_exit_batch (net/core/dev.c:11890) [ 27.802504][ C0] ? __pfx_default_device_exit_batch (net/core/dev.c:11865) [ 27.802693][ C0] ? ops_exit_list (net/core/net_namespace.c:172 (discriminator 3)) [ 27.802835][ C0] cleanup_net (net/core/net_namespace.c:625 (discriminator 3)) [ 27.802972][ C0] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5724) [ 27.803112][ C0] ? __pfx_cleanup_net (net/core/net_namespace.c:570) [ 27.803261][ C0] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 27.803403][ C0] ? process_one_work (kernel/workqueue.c:3207) [ 27.803539][ C0] ? lock_acquire (kernel/locking/lockdep.c:5732) [ 27.803682][ C0] ? process_one_work (kernel/workqueue.c:3207) [ 27.803823][ C0] process_one_work (kernel/workqueue.c:3231) [ 27.803964][ C0] ? __pfx___lock_release (kernel/locking/lockdep.c:5411) [ 27.804107][ C0] ? __pfx_process_one_work (kernel/workqueue.c:3133) [ 27.804244][ C0] ? assign_work (kernel/workqueue.c:1202) [ 27.804386][ C0] worker_thread (kernel/workqueue.c:3306 kernel/workqueue.c:3390) [ 27.804528][ C0] ? __pfx_worker_thread (kernel/workqueue.c:3339) [ 27.804666][ C0] kthread (kernel/kthread.c:389) [ 27.804783][ C0] ? __pfx_kthread (kernel/kthread.c:342) [ 27.804924][ C0] ret_from_fork (arch/x86/kernel/process.c:147) [ 27.805073][ C0] ? __pfx_kthread (kernel/kthread.c:342) Finger prints: do_raw_spin_unlock:_raw_spin_unlock:net_tx_action:handle_softirqs:do_softirq