====================================== | xx__-> echo $? | 0 | xx__-> [ 45.096818][ C1] BUG: spinlock bad magic on CPU#1, kworker/u16:1/73 | [ 45.097036][ C1] lock: noop_qdisc+0x240/0x300, .magic: 00000000, .owner: kworker/u16:1/73, .owner_cpu: 1 [ 45.097554][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 45.097845][ C1] Workqueue: netns cleanup_net [ 45.097983][ C1] Call Trace: [ 45.098089][ C1] [ 45.098162][ C1] dump_stack_lvl (lib/dump_stack.c:122) [ 45.098303][ C1] do_raw_spin_unlock (kernel/locking/spinlock_debug.c:100 kernel/locking/spinlock_debug.c:141) [ 45.098435][ C1] _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 45.098562][ 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) [ 45.098712][ C1] handle_softirqs (kernel/softirq.c:554) [ 45.098850][ 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) [ 45.098983][ C1] do_softirq (kernel/softirq.c:455 kernel/softirq.c:442) [ 45.099083][ C1] [ 45.099152][ C1] [ 45.099221][ C1] __local_bh_enable_ip (kernel/softirq.c:382) [ 45.099357][ C1] dev_deactivate_many (net/sched/sch_generic.c:1356) [ 45.099489][ C1] __dev_close_many (net/core/dev.c:1547) [ 45.099616][ C1] ? __pfx___dev_close_many (net/core/dev.c:1522) [ 45.099753][ C1] dev_close_many (net/core/dev.c:1585) [ 45.099878][ C1] ? lock_acquire.part.0 (kernel/locking/lockdep.c:466 kernel/locking/lockdep.c:5761) [ 45.100008][ C1] ? default_device_exit_batch (net/core/dev.c:11876) [ 45.100134][ C1] ? __pfx_dev_close_many (net/core/dev.c:1575) [ 45.100267][ C1] ? __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) [ 45.100399][ C1] unregister_netdevice_many_notify (net/core/dev.c:11321) [ 45.100563][ C1] ? lock_acquire (kernel/locking/lockdep.c:5732) [ 45.100687][ C1] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 52)) [ 45.100818][ C1] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 45.100962][ C1] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11288) [ 45.101121][ C1] ? mark_lock (kernel/locking/lockdep.c:4655 (discriminator 3)) [ 45.101228][ C1] ? 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) [ 45.101357][ C1] ? 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) [ 45.101484][ C1] ? rtnl_is_locked (net/core/rtnetlink.c:164) [ 45.101611][ C1] ? unregister_netdevice_queue (net/core/dev.c:11273) [ 45.101767][ C1] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11272) [ 45.101926][ C1] default_device_exit_batch (net/core/dev.c:11890) [ 45.102050][ C1] ? __pfx_default_device_exit_batch (net/core/dev.c:11865) [ 45.102210][ C1] ? 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) [ 45.102334][ C1] ? nexthop_net_exit_batch_rtnl (net/ipv4/nexthop.c:585 net/ipv4/nexthop.c:2146 net/ipv4/nexthop.c:2654 net/ipv4/nexthop.c:4004) [ 45.102498][ C1] cleanup_net (net/core/net_namespace.c:625 (discriminator 3)) [ 45.102652][ C1] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5724) [ 45.102795][ C1] ? __pfx_cleanup_net (net/core/net_namespace.c:570) [ 45.102926][ C1] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 45.103053][ C1] ? process_one_work (kernel/workqueue.c:3207) [ 45.103182][ C1] ? lock_acquire (kernel/locking/lockdep.c:5732) [ 45.103312][ C1] ? process_one_work (kernel/workqueue.c:3207) [ 45.103436][ C1] process_one_work (kernel/workqueue.c:3231) [ 45.103566][ C1] ? __pfx___lock_release (kernel/locking/lockdep.c:5411) [ 45.103687][ C1] ? __pfx_process_one_work (kernel/workqueue.c:3133) [ 45.103816][ C1] ? assign_work (kernel/workqueue.c:1202) [ 45.103950][ C1] worker_thread (kernel/workqueue.c:3306 kernel/workqueue.c:3390) [ 45.104076][ C1] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4299 kernel/locking/lockdep.c:4358) [ 45.104231][ C1] ? __pfx_worker_thread (kernel/workqueue.c:3339) [ 45.104357][ C1] ? __pfx_worker_thread (kernel/workqueue.c:3339) [ 45.104486][ C1] kthread (kernel/kthread.c:389) [ 45.104586][ C1] ? __pfx_kthread (kernel/kthread.c:342) [ 45.104710][ C1] ret_from_fork (arch/x86/kernel/process.c:147) [ 45.104847][ C1] ? __pfx_kthread (kernel/kthread.c:342) Finger prints: do_raw_spin_unlock:_raw_spin_unlock:net_tx_action:handle_softirqs:do_softirq