====================================== | [ 517.048550][ T6257] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) | [ 517.048732][ T6257] | [ 517.048806][ T6257] | [ 517.048806][ T6257] stack backtrace: [ 517.049214][ T6257] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 517.049533][ T6257] Call Trace: [ 517.049648][ T6257] [ 517.049733][ T6257] dump_stack_lvl (lib/dump_stack.c:117) [ 517.049885][ T6257] print_bad_irq_dependency (kernel/locking/lockdep.c:2626) [ 517.050036][ T6257] ? 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) [ 517.050185][ T6257] ? __pfx_print_bad_irq_dependency (kernel/locking/lockdep.c:2569) [ 517.050367][ T6257] ? __pfx_usage_skip (kernel/locking/lockdep.c:2264) [ 517.050512][ T6257] ? __bfs (kernel/locking/lockdep.c:1787) [ 517.050621][ T6257] ? __pfx_usage_match (kernel/locking/lockdep.c:2256) [ 517.050773][ T6257] check_irq_usage (kernel/locking/lockdep.c:2871) [ 517.050921][ T6257] ? __pfx_check_irq_usage (kernel/locking/lockdep.c:2790) [ 517.051064][ T6257] ? __bfs (kernel/locking/lockdep.c:1787) [ 517.051173][ T6257] ? __pfx_hlock_conflict (kernel/locking/lockdep.c:2016) [ 517.051323][ T6257] ? check_path.constprop.0 (kernel/locking/lockdep.c:2145) [ 517.051468][ T6257] ? check_noncircular (kernel/locking/lockdep.c:2172) [ 517.051622][ T6257] ? __pfx_check_noncircular (kernel/locking/lockdep.c:2163) [ 517.051768][ T6257] ? 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) [ 517.051913][ T6257] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 517.052025][ T6257] ? check_prev_add (kernel/locking/lockdep.c:3138) [ 517.052170][ T6257] check_prev_add (kernel/locking/lockdep.c:3138) [ 517.052314][ T6257] ? validate_chain (./include/linux/hash.h:78 kernel/locking/lockdep.c:3759 kernel/locking/lockdep.c:3782 kernel/locking/lockdep.c:3837) [ 517.052462][ T6257] validate_chain (kernel/locking/lockdep.c:3254 kernel/locking/lockdep.c:3869) [ 517.052617][ T6257] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 517.052726][ T6257] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 517.052872][ T6257] ? 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) [ 517.053021][ T6257] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 517.053132][ T6257] __lock_acquire (kernel/locking/lockdep.c:5137) [ 517.053282][ T6257] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 517.053428][ T6257] ? __get_task_comm (fs/exec.c:1234) [ 517.053572][ T6257] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 517.053687][ T6257] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 517.053833][ T6257] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 517.053978][ T6257] ? __get_task_comm (fs/exec.c:1234) [ 517.054123][ T6257] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 517.054266][ T6257] ? __get_task_comm (fs/exec.c:1234) [ 517.054411][ T6257] _raw_spin_lock (./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 517.054554][ T6257] ? __get_task_comm (fs/exec.c:1234) [ 517.054699][ T6257] __get_task_comm (fs/exec.c:1234) [ 517.054852][ T6257] ref_tracker_alloc (lib/ref_tracker.c:217) [ 517.055000][ T6257] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 517.055145][ T6257] ? __pfx_ref_tracker_alloc (lib/ref_tracker.c:193) [ 517.055292][ T6257] ? rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 517.055434][ T6257] ? fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 517.055578][ T6257] ? notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 517.055721][ T6257] ? unregister_netdevice_many_notify (net/core/dev.c:11171) [ 517.055909][ T6257] ? unregister_netdevice_queue (net/core/dev.c:11108) [ 517.056090][ T6257] ? nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 517.056246][ T6257] ? __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 517.056435][ T6257] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 517.056626][ T6257] ? del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 517.056816][ T6257] ? kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 517.056967][ T6257] ? vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 517.057114][ T6257] ? ksys_write (fs/read_write.c:643) [ 517.057274][ T6257] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 517.057421][ T6257] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 517.057601][ T6257] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 517.057747][ T6257] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 517.057895][ T6257] ? rt_flush_dev (net/ipv4/route.c:1551) [ 517.058044][ T6257] rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 517.058189][ T6257] ? __timer_delete_sync (kernel/time/timer.c:1648 (discriminator 1)) [ 517.058334][ T6257] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 517.058480][ T6257] fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 517.058628][ T6257] notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 517.058774][ T6257] unregister_netdevice_many_notify (net/core/dev.c:11171) [ 517.058954][ T6257] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 517.059110][ T6257] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 517.059255][ T6257] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 52)) [ 517.059400][ T6257] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11113) [ 517.059579][ T6257] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 517.059730][ T6257] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 517.059920][ T6257] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 517.060075][ T6257] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 517.060218][ T6257] unregister_netdevice_queue (net/core/dev.c:11108) [ 517.060364][ T6257] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 517.060552][ T6257] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11097) [ 517.060733][ T6257] ? __pfx___mutex_lock (kernel/locking/mutex.c:751) [ 517.060878][ T6257] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 517.061029][ T6257] nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 517.061184][ T6257] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 517.061372][ T6257] nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 517.061564][ T6257] del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 517.061719][ T6257] ? __pfx_del_port_store (drivers/net/netdevsim/bus.c:88) netdevsim [ 517.061908][ T6257] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 517.062051][ T6257] ? sysfs_file_ops (fs/sysfs/file.c:31 (discriminator 1)) [ 517.062198][ T6257] ? sysfs_kf_write (fs/sysfs/file.c:130) [ 517.062431][ T6257] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 517.062579][ T6257] vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 517.062689][ T6257] ? __pfx_locks_remove_posix (fs/locks.c:2608) [ 517.062835][ T6257] ? __pfx_vfs_write (fs/read_write.c:571) [ 517.063068][ T6257] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 517.063214][ T6257] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 517.063362][ T6257] ksys_write (fs/read_write.c:643) [ 517.063473][ T6257] ? __pfx_ksys_write (fs/read_write.c:633) [ 517.063619][ T6257] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 517.063850][ T6257] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 517.064029][ T6257] RIP: 0033:0x7fbfa5fb2957 [ 517.064182][ T6257] 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 [ 517.064883][ T6257] RSP: 002b:00007ffc7944a7c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 517.065107][ T6257] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fbfa5fb2957 [ 517.065324][ T6257] RDX: 0000000000000002 RSI: 0000558629810510 RDI: 0000000000000001 [ 517.065540][ T6257] RBP: 0000558629810510 R08: 0000000000000000 R09: 00007fbfa60254e0 [ 517.065756][ T6257] R10: 00007fbfa60253e0 R11: 0000000000000246 R12: 0000000000000002 Finger prints: dump_stack_lvl:print_bad_irq_dependency:check_irq_usage:check_prev_add