====================================== | [ 312.124345][ T4132] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) | [ 312.124534][ T4132] | [ 312.124610][ T4132] | [ 312.124610][ T4132] stack backtrace: [ 312.125016][ T4132] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 312.125343][ T4132] Call Trace: [ 312.125460][ T4132] [ 312.125536][ T4132] dump_stack_lvl (lib/dump_stack.c:117) [ 312.125693][ T4132] print_bad_irq_dependency (kernel/locking/lockdep.c:2626) [ 312.125944][ T4132] ? 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) [ 312.126090][ T4132] ? __pfx_print_bad_irq_dependency (kernel/locking/lockdep.c:2569) [ 312.126268][ T4132] ? __pfx_usage_skip (kernel/locking/lockdep.c:2264) [ 312.126412][ T4132] ? __bfs (kernel/locking/lockdep.c:1787) [ 312.126524][ T4132] ? __pfx_usage_match (kernel/locking/lockdep.c:2256) [ 312.126673][ T4132] check_irq_usage (kernel/locking/lockdep.c:2871) [ 312.126822][ T4132] ? __pfx_check_irq_usage (kernel/locking/lockdep.c:2790) [ 312.126971][ T4132] ? __bfs (kernel/locking/lockdep.c:1787) [ 312.127096][ T4132] ? __pfx_hlock_conflict (kernel/locking/lockdep.c:2016) [ 312.127245][ T4132] ? check_path.constprop.0 (kernel/locking/lockdep.c:2145) [ 312.127392][ T4132] ? check_noncircular (kernel/locking/lockdep.c:2172) [ 312.127539][ T4132] ? __pfx_check_noncircular (kernel/locking/lockdep.c:2163) [ 312.127690][ T4132] ? 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) [ 312.127939][ T4132] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 312.128053][ T4132] ? check_prev_add (kernel/locking/lockdep.c:3138) [ 312.128202][ T4132] check_prev_add (kernel/locking/lockdep.c:3138) [ 312.128350][ T4132] ? validate_chain (./include/linux/hash.h:78 kernel/locking/lockdep.c:3759 kernel/locking/lockdep.c:3782 kernel/locking/lockdep.c:3837) [ 312.128496][ T4132] validate_chain (kernel/locking/lockdep.c:3254 kernel/locking/lockdep.c:3869) [ 312.128642][ T4132] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 312.128753][ T4132] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 312.128900][ T4132] ? 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) [ 312.129045][ T4132] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 312.129157][ T4132] __lock_acquire (kernel/locking/lockdep.c:5137) [ 312.129306][ T4132] lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 312.129451][ T4132] ? __get_task_comm (fs/exec.c:1234) [ 312.129602][ T4132] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 3)) [ 312.129714][ T4132] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 312.129966][ T4132] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 312.130113][ T4132] ? __get_task_comm (fs/exec.c:1234) [ 312.130259][ T4132] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 312.130406][ T4132] ? __get_task_comm (fs/exec.c:1234) [ 312.130553][ T4132] _raw_spin_lock (./include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154) [ 312.130699][ T4132] ? __get_task_comm (fs/exec.c:1234) [ 312.130847][ T4132] __get_task_comm (fs/exec.c:1234) [ 312.130992][ T4132] ref_tracker_alloc (lib/ref_tracker.c:217) [ 312.131231][ T4132] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 312.131378][ T4132] ? __pfx_ref_tracker_alloc (lib/ref_tracker.c:193) [ 312.131525][ T4132] ? rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 312.131673][ T4132] ? fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 312.131822][ T4132] ? notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 312.132059][ T4132] ? unregister_netdevice_many_notify (net/core/dev.c:11171) [ 312.132246][ T4132] ? unregister_netdevice_queue (net/core/dev.c:11108) [ 312.132429][ T4132] ? nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 312.132676][ T4132] ? __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 312.132870][ T4132] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 312.133062][ T4132] ? del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 312.133253][ T4132] ? kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 312.133488][ T4132] ? vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 312.133637][ T4132] ? ksys_write (fs/read_write.c:643) [ 312.133783][ T4132] ? do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 312.133929][ T4132] ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 312.134203][ T4132] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 312.134350][ T4132] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 312.134495][ T4132] ? rt_flush_dev (net/ipv4/route.c:1551) [ 312.134641][ T4132] rt_flush_dev (./include/linux/netdevice.h:4036 ./include/linux/netdevice.h:4114 net/ipv4/route.c:1555) [ 312.134882][ T4132] ? __timer_delete_sync (kernel/time/timer.c:1648 (discriminator 1)) [ 312.135028][ T4132] ? __timer_delete_sync (kernel/time/timer.c:1668 (discriminator 34)) [ 312.135176][ T4132] fib_netdev_event (net/ipv4/fib_frontend.c:1520) [ 312.135323][ T4132] notifier_call_chain (kernel/notifier.c:93 (discriminator 2)) [ 312.135469][ T4132] unregister_netdevice_many_notify (net/core/dev.c:11171) [ 312.135651][ T4132] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 312.135810][ T4132] ? lock_acquire (kernel/locking/lockdep.c:5727) [ 312.135959][ T4132] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 52)) [ 312.136109][ T4132] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11113) [ 312.136292][ T4132] ? __mutex_lock (./arch/x86/include/asm/preempt.h:94 kernel/locking/mutex.c:618 kernel/locking/mutex.c:752) [ 312.136437][ T4132] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 312.136627][ T4132] ? nsim_destroy (drivers/net/netdevsim/netdev.c:497) netdevsim [ 312.136884][ T4132] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 312.137028][ T4132] unregister_netdevice_queue (net/core/dev.c:11108) [ 312.137257][ T4132] ? nsim_drv_port_del (drivers/net/netdevsim/dev.c:43 drivers/net/netdevsim/dev.c:1694 drivers/net/netdevsim/dev.c:1724) netdevsim [ 312.137473][ T4132] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11097) [ 312.137681][ T4132] ? __pfx___mutex_lock (kernel/locking/mutex.c:751) [ 312.137847][ T4132] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 312.138016][ T4132] nsim_destroy (drivers/net/netdevsim/netdev.c:502 (discriminator 2)) netdevsim [ 312.138195][ T4132] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1426) netdevsim [ 312.138415][ T4132] nsim_drv_port_del (drivers/net/netdevsim/dev.c:1729) netdevsim [ 312.138636][ T4132] del_port_store (drivers/net/netdevsim/bus.c:100) netdevsim [ 312.138818][ T4132] ? __pfx_del_port_store (drivers/net/netdevsim/bus.c:88) netdevsim [ 312.139041][ T4132] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:129) [ 312.139307][ T4132] ? sysfs_file_ops (fs/sysfs/file.c:31 (discriminator 1)) [ 312.139473][ T4132] ? sysfs_kf_write (fs/sysfs/file.c:130) [ 312.139641][ T4132] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 312.139810][ T4132] vfs_write (./include/linux/fs.h:2108 fs/read_write.c:497 fs/read_write.c:590) [ 312.140037][ T4132] ? __pfx_locks_remove_posix (fs/locks.c:2608) [ 312.140186][ T4132] ? __pfx_vfs_write (fs/read_write.c:571) [ 312.140330][ T4132] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 312.140478][ T4132] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 312.140715][ T4132] ksys_write (fs/read_write.c:643) [ 312.140829][ T4132] ? __pfx_ksys_write (fs/read_write.c:633) [ 312.140979][ T4132] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 312.141128][ T4132] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 312.141314][ T4132] RIP: 0033:0x7fa5210a8957 [ 312.141565][ T4132] 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 [ 312.142294][ T4132] RSP: 002b:00007ffef84259d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 312.142523][ T4132] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fa5210a8957 [ 312.142741][ T4132] RDX: 0000000000000002 RSI: 0000561097b02500 RDI: 0000000000000001 [ 312.143057][ T4132] RBP: 0000561097b02500 R08: 0000000000000000 R09: 00007fa52111b4e0 [ 312.143275][ T4132] R10: 00007fa52111b3e0 R11: 0000000000000246 R12: 0000000000000002 Finger prints: dump_stack_lvl:print_bad_irq_dependency:check_irq_usage:check_prev_add