====================================== | [ 179.738018][ T5338] netconsole selftest: netcons_R1xiJ | [ 180.324869][ T5338] ------------[ cut here ]------------ | [ 180.325345][ T5338] WARNING: drivers/net/netdevsim/netdev.c:1234 at nsim_destroy+0x128/0x7b0 [netdevsim], CPU#0: bash/5338 | [ 180.325742][ T5338] Modules linked in: netconsole netdevsim [last unloaded: netdevsim] [ 180.326332][ T5338] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 180.326535][ T5338] RIP: 0010:nsim_destroy (drivers/net/netdevsim/netdev.c:1234 (discriminator 2)) netdevsim [ 180.326744][ T5338] Code: 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 01 00 0f 85 47 06 00 00 48 8b 3b e8 84 17 4c cd 31 c0 48 8d ab 48 07 00 00 eb 07 90 <0f> 0b 90 83 c0 01 0f b7 d0 be 00 10 00 00 48 89 ef e8 e2 22 90 cc All code ======== 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 fc add %bh,%ah 6: ff lcall (bad) 7: df 48 c1 fisttps -0x3f(%rax) a: e9 03 80 3c 01 jmp 0x13c8012 f: 00 0f add %cl,(%rdi) 11: 85 47 06 test %eax,0x6(%rdi) 14: 00 00 add %al,(%rax) 16: 48 8b 3b mov (%rbx),%rdi 19: e8 84 17 4c cd call 0xffffffffcd4c17a2 1e: 31 c0 xor %eax,%eax 20: 48 8d ab 48 07 00 00 lea 0x748(%rbx),%rbp 27: eb 07 jmp 0x30 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 83 c0 01 add $0x1,%eax 30: 0f b7 d0 movzwl %ax,%edx 33: be 00 10 00 00 mov $0x1000,%esi 38: 48 89 ef mov %rbp,%rdi 3b: e8 e2 22 90 cc call 0xffffffffcc902322 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 83 c0 01 add $0x1,%eax 6: 0f b7 d0 movzwl %ax,%edx 9: be 00 10 00 00 mov $0x1000,%esi e: 48 89 ef mov %rbp,%rdi 11: e8 e2 22 90 cc call 0xffffffffcc9022f8 [ 180.327341][ T5338] RSP: 0018:ffa0000001e179b8 EFLAGS: 00010293 [ 180.327548][ T5338] RAX: 0000000000000000 RBX: ff11000010fa2d00 RCX: ff11000010fa3448 [ 180.327786][ T5338] RDX: 0000000000000000 RSI: 0000000000000000 RDI: dffffc0000000000 [ 180.328036][ T5338] RBP: ff11000010fa3448 R08: ff11000010fa3448 R09: 0000000000000000 [ 180.328275][ T5338] R10: 1fe22000021f4689 R11: 0000000000000001 R12: ff11000011520c98 [ 180.328514][ T5338] R13: dffffc0000000000 R14: ff11000011520800 R15: ffffffffc057b380 [ 180.328753][ T5338] FS: 00007fa0687febc0(0000) GS:ff1100009f285000(0000) knlGS:0000000000000000 [ 180.329037][ T5338] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 180.329240][ T5338] CR2: 00005626f5090168 CR3: 000000000b8a2001 CR4: 0000000000771ef0 [ 180.329484][ T5338] PKRU: 55555554 [ 180.329605][ T5338] Call Trace: [ 180.329724][ T5338] [ 180.329812][ T5338] ? rcu_is_watching (./include/linux/context_tracking.h:128 (discriminator 1) kernel/rcu/tree.c:752 (discriminator 1)) [ 180.329977][ T5338] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:444 drivers/net/netdevsim/dev.c:1529) netdevsim [ 180.330177][ T5338] ? devl_lock_is_held (net/devlink/core.c:285 (discriminator 1)) [ 180.330334][ T5338] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1538 (discriminator 4) drivers/net/netdevsim/dev.c:1764 (discriminator 4)) netdevsim [ 180.330533][ T5338] nsim_drv_remove (drivers/net/netdevsim/dev.c:1781) netdevsim [ 180.330688][ T5338] device_release_driver_internal (drivers/base/dd.c:1286 drivers/base/dd.c:1307) [ 180.330895][ T5338] ? sysfs_file_ops (fs/sysfs/file.c:135) [ 180.331054][ T5338] bus_remove_device (./include/linux/kobject.h:193 drivers/base/base.h:73 drivers/base/bus.c:623) [ 180.331214][ T5338] ? sysfs_file_ops (fs/sysfs/file.c:135) [ 180.331369][ T5338] device_del (drivers/base/core.c:3879) [ 180.331493][ T5338] ? __device_link_del (drivers/base/core.c:3833) [ 180.331654][ T5338] ? sysfs_file_ops (fs/sysfs/file.c:135) [ 180.331816][ T5338] device_unregister (drivers/base/core.c:3796 drivers/base/core.c:3920) [ 180.331971][ T5338] del_device_store (drivers/net/netdevsim/bus.c:248) netdevsim [ 180.332178][ T5338] ? sysfs_file_kobj (./include/linux/rcupdate.h:322 (discriminator 1) ./include/linux/rcupdate.h:881 (discriminator 1) ./include/linux/rcupdate.h:1193 (discriminator 1) fs/sysfs/file.c:24 (discriminator 1)) [ 180.332331][ T5338] ? nsim_bus_dev_numvfs_show (drivers/net/netdevsim/bus.c:215) netdevsim [ 180.332534][ T5338] ? sysfs_file_kobj (fs/sysfs/file.c:26) [ 180.332687][ T5338] ? sysfs_kf_write (fs/sysfs/file.c:139) [ 180.332854][ T5338] kernfs_fop_write_iter (fs/kernfs/file.c:88 fs/kernfs/file.c:356) [ 180.333012][ T5338] ? kernfs_ops (fs/kernfs/file.c:312) [ 180.333133][ T5338] new_sync_write (fs/read_write.c:596 (discriminator 1)) [ 180.333299][ T5338] ? new_sync_read (fs/read_write.c:586) [ 180.333462][ T5338] ? lock_acquire.part.0 (kernel/locking/lockdep.c:470 kernel/locking/lockdep.c:5870) [ 180.333622][ T5338] ? ksys_write (fs/read_write.c:741) [ 180.333782][ T5338] vfs_write (fs/read_write.c:688) [ 180.333910][ T5338] ksys_write (fs/read_write.c:741) [ 180.334032][ T5338] ? __ia32_sys_read (fs/read_write.c:730) [ 180.334196][ T5338] ? do_raw_spin_unlock (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/asm-generic/qspinlock.h:57 kernel/locking/spinlock_debug.c:101 kernel/locking/spinlock_debug.c:141) [ 180.334352][ T5338] ? rcu_is_watching (./include/linux/context_tracking.h:128 (discriminator 1) kernel/rcu/tree.c:752 (discriminator 1)) [ 180.334517][ T5338] do_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1)) [ 180.334674][ T5338] ? exc_page_fault (arch/x86/mm/fault.c:1480 (discriminator 3) arch/x86/mm/fault.c:1527 (discriminator 3)) [ 180.334840][ T5338] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 180.335040][ T5338] RIP: 0033:0x7fa06886ec5e [ 180.335214][ T5338] Code: 4d 89 d8 e8 34 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 13 ff ff ff 0f 1f 00 f3 0f 1e fa All code ======== 0: 4d 89 d8 mov %r11,%r8 3: e8 34 bd 00 00 call 0xbd3c 8: 4c 8b 5d f8 mov -0x8(%rbp),%r11 c: 41 8b 93 08 03 00 00 mov 0x308(%r11),%edx 13: 59 pop %rcx 14: 5e pop %rsi 15: 48 83 f8 fc cmp $0xfffffffffffffffc,%rax 19: 74 11 je 0x2c 1b: c9 leave 1c: c3 ret 1d: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 24: 48 8b 45 10 mov 0x10(%rbp),%rax 28: 0f 05 syscall 2a:* c9 leave <-- trapping instruction 2b: c3 ret 2c: 83 e2 39 and $0x39,%edx 2f: 83 fa 08 cmp $0x8,%edx 32: 75 e7 jne 0x1b 34: e8 13 ff ff ff call 0xffffffffffffff4c 39: 0f 1f 00 nopl (%rax) 3c: f3 0f 1e fa endbr64 Code starting with the faulting instruction =========================================== 0: c9 leave 1: c3 ret 2: 83 e2 39 and $0x39,%edx 5: 83 fa 08 cmp $0x8,%edx 8: 75 e7 jne 0xfffffffffffffff1 a: e8 13 ff ff ff call 0xffffffffffffff22 f: 0f 1f 00 nopl (%rax) 12: f3 0f 1e fa endbr64 [ 180.335774][ T5338] RSP: 002b:00007ffeabe13550 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 180.336022][ T5338] RAX: ffffffffffffffda RBX: 00007fa0689ea5c0 RCX: 00007fa06886ec5e [ 180.336264][ T5338] RDX: 0000000000000004 RSI: 00005626f50e1d10 RDI: 0000000000000001 [ 180.336507][ T5338] RBP: 00007ffeabe13560 R08: 0000000000000000 R09: 0000000000000000 [ 180.336742][ T5338] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000004 Finger prints: nsim_destroy:__nsim_dev_port_del:nsim_dev_reload_destroy:nsim_drv_remove:device_release_driver_internal