====================================== | [ 1.731152] netdevsim netdevsim1337 eni1337np1: renamed from eth0 | [ 1.756489] ------------[ cut here ]------------ | [ 1.756545] kernel BUG at net/core/net-sysfs.c:2246! | [ 1.756590] Oops: invalid opcode: 0000 [#1] SMP [ 1.756715] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1.756759] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 1.756810] Code: fa 0f 1f 44 00 00 80 7f e0 04 75 1d 55 48 8d af e0 fa ff ff 48 8b bf 10 fc ff ff e8 6d 99 a6 ff 48 89 ef 5d e9 24 a0 a6 ff 90 <0f> 0b 90 f3 0f 1e fa 0f 1f 44 00 00 55 48 89 f5 48 8d 97 f8 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 e0 fa ff ff lea -0x520(%rdi),%rbp 14: 48 8b bf 10 fc ff ff mov -0x3f0(%rdi),%rdi 1b: e8 6d 99 a6 ff call 0xffffffffffa6998d 20: 48 89 ef mov %rbp,%rdi 23: 5d pop %rbp 24: e9 24 a0 a6 ff jmp 0xffffffffffa6a04d 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: f8 clc 3e: fb 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: f8 clc 14: fb sti 15: ff .byte 0xff [ 1.756938] RSP: 0018:ffffa75940537948 EFLAGS: 00010297 [ 1.756980] RAX: ffffffffb9f30c30 RBX: 00000000ffffffff RCX: 0000000000000003 [ 1.757039] RDX: 0000000000000001 RSI: ffffffffb9d4f524 RDI: ffff8a39413bc520 [ 1.757096] RBP: ffff8a39413bc520 R08: 0000000000000000 R09: 00000000000001ec [ 1.757155] R10: 0000000000000250 R11: 00000000000001f0 R12: ffff8a3941afe700 [ 1.757207] R13: ffffffffba2b1420 R14: ffff8a39418bcd70 R15: ffff8a39413bc000 [ 1.757262] FS: 00007fa457a53800(0000) GS:ffff8a39c3c59000(0000) knlGS:0000000000000000 [ 1.757321] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.757371] CR2: 00007fa457b714d0 CR3: 0000000002e8d004 CR4: 0000000000772ef0 [ 1.757431] PKRU: 55555554 [ 1.757453] Call Trace: [ 1.757472] [ 1.757495] device_release (drivers/base/core.c:2569) [ 1.757534] kobject_put (lib/kobject.c:693 lib/kobject.c:720 ./include/linux/kref.h:65 lib/kobject.c:737) [ 1.757573] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 1.757610] nsim_destroy (drivers/net/netdevsim/netdevsim.h:396 drivers/net/netdevsim/netdev.c:1186) netdevsim [ 1.757660] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:441 drivers/net/netdevsim/dev.c:1474) netdevsim [ 1.757704] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1483 drivers/net/netdevsim/dev.c:1707) netdevsim [ 1.757747] nsim_dev_reload_down (drivers/net/netdevsim/dev.c:984) netdevsim [ 1.757791] devlink_reload (net/devlink/dev.c:462) [ 1.757826] devlink_nl_reload_doit (net/devlink/dev.c:584) [ 1.757871] genl_family_rcv_msg_doit (net/netlink/genetlink.c:1115) [ 1.757913] genl_rcv_msg (net/netlink/genetlink.c:1195 net/netlink/genetlink.c:1210) [ 1.757944] ? devlink_nl_pre_doit_port (net/devlink/netlink.c:257) [ 1.757986] ? devlink_reload (net/devlink/dev.c:520) [ 1.758019] ? devlink_nl_post_doit (net/devlink/netlink.c:288) [ 1.758061] ? genl_family_rcv_msg_dumpit (net/netlink/genetlink.c:1201) [ 1.758101] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 1.758135] genl_rcv (net/netlink/genetlink.c:1220) [ 1.758166] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 1.758199] ? __alloc_skb (net/core/skbuff.c:690) [ 1.758232] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 1.758265] __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2244) [ 1.758298] ? do_sys_openat2 (fs/open.c:1447) [ 1.758335] __x64_sys_sendto (net/socket.c:2251 net/socket.c:2247 net/socket.c:2247) [ 1.758367] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 1.758401] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 1.758442] RIP: 0033:0x7fa457c2127a [ 1.758468] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 15 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 7e c3 0f 1f 44 00 00 41 54 48 83 ec 30 44 89 All code ======== 0: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 4: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax b: eb b8 jmp 0xffffffffffffffc5 d: 0f 1f 00 nopl (%rax) 10: f3 0f 1e fa endbr64 14: 41 89 ca mov %ecx,%r10d 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 15 jne 0x38 23: b8 2c 00 00 00 mov $0x2c,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 7e ja 0xb0 32: c3 ret 33: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 38: 41 54 push %r12 3a: 48 83 ec 30 sub $0x30,%rsp 3e: 44 rex.R 3f: 89 .byte 0x89 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 7e ja 0x86 8: c3 ret 9: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) e: 41 54 push %r12 10: 48 83 ec 30 sub $0x30,%rsp 14: 44 rex.R 15: 89 .byte 0x89 [ 1.758595] RSP: 002b:00007ffeb9faa1b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 1.758654] RAX: ffffffffffffffda RBX: 000000002e0d0b20 RCX: 00007fa457c2127a [ 1.758711] RDX: 0000000000000040 RSI: 000000002e0d0b20 RDI: 0000000000000005 [ 1.758769] RBP: 000000002e0d0910 R08: 00007fa457e05200 R09: 000000000000000c [ 1.758829] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000040f510 Finger prints: netdev_release:device_release:kobject_put:netdev_run_todo:nsim_destroy