====================================== | [ 62.544275][ T227] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) | [ 62.544591][ T227] | [ 62.544736][ T227] | [ 62.544736][ T227] stack backtrace: [ 62.545417][ T227] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 62.546137][ T227] Call Trace: [ 62.546336][ T227] [ 62.546469][ T227] dump_stack_lvl (lib/dump_stack.c:117) [ 62.546730][ T227] print_bad_irq_dependency (kernel/locking/lockdep.c:2626) [ 62.546993][ T227] ? 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:228) [ 62.547564][ T227] ? __pfx_print_bad_irq_dependency (kernel/locking/lockdep.c:2569) [ 62.547877][ T227] ? __pfx_usage_skip (kernel/locking/lockdep.c:2264) [ 62.548131][ T227] ? __bfs (kernel/locking/lockdep.c:1787) [ 62.548325][ T227] ? __pfx_usage_match (kernel/locking/lockdep.c:2256) [ 62.548577][ T227] check_irq_usage (kernel/locking/lockdep.c:2871) [ 62.548835][ T227] ? __pfx_check_irq_usage (kernel/locking/lockdep.c:2790) [ 62.549085][ T227] ? __bfs (kernel/locking/lockdep.c:1787) [ 62.549277][ T227] ? __pfx_hlock_conflict (kernel/locking/lockdep.c:2016) [ 62.549532][ T227] ? check_path.constprop.0 (kernel/locking/lockdep.c:2145) [ 62.549778][ T227] ? check_noncircular (kernel/locking/lockdep.c:2172) [ 62.550030][ T227] ? __pfx_check_noncircular (kernel/locking/lockdep.c:2163) [ 62.550287][ T227] ? check_prev_add (kernel/locking/lockdep.c:3138) [ 62.550541][ T227] check_prev_add (kernel/locking/lockdep.c:3138) [ 62.550791][ T227] ? validate_chain (./include/linux/hash.h:78 kernel/locking/lockdep.c:3759 kernel/locking/lockdep.c:3782 kernel/locking/lockdep.c:3837) [ 62.551046][ T227] validate_chain (kernel/locking/lockdep.c:3254 kernel/locking/lockdep.c:3869) [ 62.551298][ T227] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 62.551487][ T227] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 62.551887][ T227] ? 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:228) [ 62.552134][ T227] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 62.552320][ T227] __lock_acquire (kernel/locking/lockdep.c:5137) [ 62.552583][ T227] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 62.552832][ T227] ? __get_task_comm (fs/exec.c:1234) [ 62.553242][ T227] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 62.553436][ T227] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 62.553684][ T227] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 62.553937][ T227] ? __get_task_comm (fs/exec.c:1234) [ 62.554349][ T227] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 62.554614][ T227] ? __get_task_comm (fs/exec.c:1234) [ 62.554876][ T227] _raw_spin_lock (./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 62.555128][ T227] ? __get_task_comm (fs/exec.c:1234) [ 62.555531][ T227] __get_task_comm (fs/exec.c:1234) [ 62.555783][ T227] ref_tracker_alloc (lib/ref_tracker.c:217) [ 62.556039][ T227] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 62.556295][ T227] ? __pfx_ref_tracker_alloc (lib/ref_tracker.c:193) [ 62.556556][ T227] ? rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 62.556964][ T227] ? fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 62.557218][ T227] ? notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 62.557484][ T227] ? unregister_netdevice_many_notify (net/core/dev.c:11171) [ 62.557806][ T227] ? unregister_netdevice_queue (net/core/dev.c:11108) [ 62.558272][ T227] ? nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 62.558547][ T227] ? __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 62.558881][ T227] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 62.559354][ T227] ? del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 62.559683][ T227] ? kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 62.559942][ T227] ? vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 62.560192][ T227] ? ksys_write (fs/read_write.c:643) [ 62.560593][ T227] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 62.560842][ T227] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 62.561147][ T227] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 62.561394][ T227] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 62.561645][ T227] ? rt_flush_dev (net/ipv4/route.c:1551) [ 62.561899][ T227] rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 62.562152][ T227] ? __timer_delete_sync (kernel/time/timer.c:1648 (discriminator 1)) [ 62.562402][ T227] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 62.562800][ T227] fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 62.563053][ T227] notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 62.563309][ T227] unregister_netdevice_many_notify (net/core/dev.c:11171) [ 62.563618][ T227] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 62.564038][ T227] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 62.564291][ T227] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 52)) [ 62.564552][ T227] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11113) [ 62.564878][ T227] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 62.565273][ T227] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 62.565597][ T227] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 62.565863][ T227] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 62.566114][ T227] unregister_netdevice_queue (net/core/dev.c:11108) [ 62.566530][ T227] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 62.566870][ T227] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11097) [ 62.567180][ T227] ? __pfx___mutex_lock (kernel/locking/mutex.c:751) [ 62.567430][ T227] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 62.567681][ T227] nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 62.567949][ T227] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 62.568275][ T227] nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 62.568608][ T227] del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 62.568888][ T227] ? __pfx_del_port_store (drivers/net/netdevsim/bus.c:88) netdevsim [ 62.569218][ T227] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 62.569465][ T227] ? sysfs_file_ops (fs/sysfs/file.c:31 (discriminator 1)) [ 62.569711][ T227] ? sysfs_kf_write (fs/sysfs/file.c:130) [ 62.569961][ T227] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 62.570214][ T227] vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 62.570408][ T227] ? __pfx_locks_remove_posix (fs/locks.c:2608) [ 62.570657][ T227] ? __pfx_vfs_write (fs/read_write.c:571) [ 62.571058][ T227] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 62.571312][ T227] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 62.571564][ T227] ksys_write (fs/read_write.c:643) [ 62.571758][ T227] ? __pfx_ksys_write (fs/read_write.c:633) [ 62.572009][ T227] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 62.572429][ T227] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 62.572743][ T227] RIP: 0033:0x7f5d622f9957 [ 62.573008][ T227] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 All code ======== 0: 0b 00 or (%rax),%eax 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 b7 jmp 0xffffffffffffffc7 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 01 00 00 00 mov $0x1,%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: 48 89 54 24 18 mov %rdx,0x18(%rsp) 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 74 24 je 0x64 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: 48 89 54 24 18 mov %rdx,0x18(%rsp) 12: 48 rex.W 13: 89 .byte 0x89 14: 74 24 je 0x3a [ 62.574071][ T227] RSP: 002b:00007fff88f31c38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 62.574457][ T227] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f5d622f9957 [ 62.574940][ T227] RDX: 0000000000000002 RSI: 0000559a2ba75510 RDI: 0000000000000001 [ 62.575219][ T227] RBP: 0000559a2ba75510 R08: 0000000000000000 R09: 00007f5d6236c4e0 [ 62.575507][ T227] R10: 00007f5d6236c3e0 R11: 0000000000000246 R12: 0000000000000002 Finger prints: dump_stack_lvl:print_bad_irq_dependency:check_irq_usage:check_prev_add