====================================== | 0 | xx__-> [ 2.068179] ------------[ cut here ]------------ | [ 2.068302] kernel BUG at net/core/net-sysfs.c:2246! | [ 2.068392] Oops: invalid opcode: 0000 [#1] SMP [ 2.068554] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.068611] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 2.068674] Code: fa 0f 1f 44 00 00 80 7f e0 04 75 1d 55 48 8d af d8 fa ff ff 48 8b bf 08 fc ff ff e8 8d a3 a6 ff 48 89 ef 5d e9 44 aa a6 ff 90 <0f> 0b 90 f3 0f 1e fa 0f 1f 44 00 00 55 48 89 f5 48 8d 97 f0 fb ff All code ======== 0: fa cli 1: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 6: 80 7f e0 04 cmpb $0x4,-0x20(%rdi) a: 75 1d jne 0x29 c: 55 push %rbp d: 48 8d af d8 fa ff ff lea -0x528(%rdi),%rbp 14: 48 8b bf 08 fc ff ff mov -0x3f8(%rdi),%rdi 1b: e8 8d a3 a6 ff call 0xffffffffffa6a3ad 20: 48 89 ef mov %rbp,%rdi 23: 5d pop %rbp 24: e9 44 aa a6 ff jmp 0xffffffffffa6aa6d 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: f3 0f 1e fa endbr64 31: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 36: 55 push %rbp 37: 48 89 f5 mov %rsi,%rbp 3a: 48 rex.W 3b: 8d .byte 0x8d 3c: 97 xchg %eax,%edi 3d: f0 fb lock sti 3f: ff .byte 0xff Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: f3 0f 1e fa endbr64 7: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) c: 55 push %rbp d: 48 89 f5 mov %rsi,%rbp 10: 48 rex.W 11: 8d .byte 0x8d 12: 97 xchg %eax,%edi 13: f0 fb lock sti 15: ff .byte 0xff [ 2.068853] RSP: 0018:ffffa8a8005afcb8 EFLAGS: 00010297 [ 2.068906] RAX: ffffffffaab301e0 RBX: 00000000ffffffff RCX: ffff9af8c284c0c8 [ 2.068981] RDX: 000000000000000f RSI: ffffffffaa94f914 RDI: ffff9af8c284c528 [ 2.069057] RBP: ffff9af8c284c528 R08: 0000000000000001 R09: 0000000000000001 [ 2.069126] R10: ffffffffab55c008 R11: 0000000000000015 R12: ffff9af8c208d500 [ 2.069195] R13: ffffffffaaeb19c0 R14: ffff9af8c18ba278 R15: ffff9af8c284c000 [ 2.069272] FS: 00007f13f1d01000(0000) GS:ffff9af9530e8000(0000) knlGS:0000000000000000 [ 2.069348] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.069410] CR2: 00007f512e5b95c0 CR3: 0000000003082001 CR4: 0000000000772ef0 [ 2.069480] PKRU: 55555554 [ 2.069508] Call Trace: [ 2.069534] [ 2.069562] device_release (drivers/base/core.c:2569) [ 2.069611] kobject_put (lib/kobject.c:693 lib/kobject.c:720 ./include/linux/kref.h:65 lib/kobject.c:737) [ 2.069659] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 2.069705] unregister_netdev (net/core/dev.c:12456) [ 2.069746] virtnet_remove (drivers/net/virtio_net.c:7884 drivers/net/virtio_net.c:8341) [ 2.069792] virtio_dev_remove (drivers/virtio/virtio.c:378) [ 2.069837] device_release_driver_internal (drivers/base/dd.c:1276 drivers/base/dd.c:1297) [ 2.069889] unbind_store (drivers/base/bus.c:249) [ 2.069930] kernfs_fop_write_iter (fs/kernfs/file.c:88 fs/kernfs/file.c:356) [ 2.069989] vfs_write (fs/read_write.c:594 fs/read_write.c:686) [ 2.070039] ksys_write (fs/read_write.c:738) [ 2.070080] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 2.070125] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 2.070178] RIP: 0033:0x7f13f1e01257 [ 2.070219] Code: 0f 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: 0f 00 (bad) 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 [ 2.070385] RSP: 002b:00007ffdbdb08b38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2.070460] RAX: ffffffffffffffda RBX: 00007f13f1efd780 RCX: 00007f13f1e01257 [ 2.070529] RDX: 0000000000000008 RSI: 000056423141d290 RDI: 0000000000000001 [ 2.070604] RBP: 0000000000000008 R08: 0000000000000003 R09: 0000000000000077 [ 2.070680] R10: 0000000000000063 R11: 0000000000000246 R12: 0000000000000008 Finger prints: netdev_release:device_release:kobject_put:netdev_run_todo:unregister_netdev