====================================== | [ 2.327138] netdevsim netdevsim31936 eni31936np1: renamed from eth0 | [ 2.345423] ------------[ cut here ]------------ | [ 2.345490] kernel BUG at net/core/net-sysfs.c:2246! | [ 2.345529] Oops: invalid opcode: 0000 [#1] SMP [ 2.345632] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.345679] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 2.345732] 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 5d 4a a6 ff 48 89 ef 5d e9 14 51 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 5d 4a a6 ff call 0xffffffffffa64a7d 20: 48 89 ef mov %rbp,%rdi 23: 5d pop %rbp 24: e9 14 51 a6 ff jmp 0xffffffffffa6513d 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.345857] RSP: 0018:ffffb8eb4029f948 EFLAGS: 00010297 [ 2.345895] RAX: ffffffff84938130 RBX: 00000000ffffffff RCX: 0000000000000002 [ 2.345946] RDX: 0000000000000006 RSI: ffffffff847561a4 RDI: ffff95e20377a528 [ 2.345996] RBP: ffff95e20377a528 R08: 0000000000000000 R09: 0000000000000168 [ 2.346046] R10: 0000000000000400 R11: 0000000000000170 R12: ffff95e201c56c00 [ 2.346097] R13: ffffffff84cb1da0 R14: ffff95e201b75340 R15: ffff95e20377a000 [ 2.346154] FS: 00007f73fafb2800(0000) GS:ffff95e2b8dd6000(0000) knlGS:0000000000000000 [ 2.346210] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.346257] CR2: 00007fa4bd740bd8 CR3: 0000000004a07006 CR4: 0000000000772ef0 [ 2.346315] PKRU: 55555554 [ 2.346337] Call Trace: [ 2.346355] [ 2.346370] device_release (drivers/base/core.c:2569) [ 2.346403] kobject_put (lib/kobject.c:693 lib/kobject.c:720 ./include/linux/kref.h:65 lib/kobject.c:737) [ 2.346434] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 2.346468] nsim_destroy (drivers/net/netdevsim/netdevsim.h:396 drivers/net/netdevsim/netdev.c:1186) netdevsim [ 2.346511] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:441 drivers/net/netdevsim/dev.c:1474) netdevsim [ 2.346550] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1483 drivers/net/netdevsim/dev.c:1707) netdevsim [ 2.346590] nsim_dev_reload_down (drivers/net/netdevsim/dev.c:984) netdevsim [ 2.346630] devlink_reload (net/devlink/dev.c:462) [ 2.346657] devlink_nl_reload_doit (net/devlink/dev.c:584) [ 2.346696] genl_family_rcv_msg_doit (net/netlink/genetlink.c:1115) [ 2.346737] genl_rcv_msg (net/netlink/genetlink.c:1195 net/netlink/genetlink.c:1210) [ 2.346767] ? devlink_nl_pre_doit_port (net/devlink/netlink.c:257) [ 2.346807] ? devlink_reload (net/devlink/dev.c:520) [ 2.346833] ? devlink_nl_post_doit (net/devlink/netlink.c:288) [ 2.346872] ? genl_family_rcv_msg_dumpit (net/netlink/genetlink.c:1201) [ 2.346911] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 2.346938] genl_rcv (net/netlink/genetlink.c:1220) [ 2.346969] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 2.346994] ? __alloc_skb (net/core/skbuff.c:690) [ 2.347025] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 2.347056] __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2244) [ 2.347088] ? do_sys_openat2 (fs/open.c:1447) [ 2.347117] __x64_sys_sendto (net/socket.c:2251 net/socket.c:2247 net/socket.c:2247) [ 2.347147] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 2.347179] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 2.347218] RIP: 0033:0x7f73fb18027a [ 2.347243] 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 [ 2.347365] RSP: 002b:00007ffcaf977a28 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 2.347419] RAX: ffffffffffffffda RBX: 000000001f962b20 RCX: 00007f73fb18027a [ 2.347470] RDX: 0000000000000040 RSI: 000000001f962b20 RDI: 0000000000000003 [ 2.347527] RBP: 000000001f962910 R08: 00007f73fb364200 R09: 000000000000000c [ 2.347577] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000040f510 [ 2.347628] R13: 000000001f962910 R14: 0000000000000000 R15: 0000000000000001 | [ 2.365420] ------------[ cut here ]------------ | [ 2.365492] kernel BUG at net/core/net-sysfs.c:2246! | [ 2.365531] Oops: invalid opcode: 0000 [#2] SMP | [ 2.365654] Tainted: [D]=DIE [ 2.365679] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.365740] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 2.365785] 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 5d 4a a6 ff 48 89 ef 5d e9 14 51 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 5d 4a a6 ff call 0xffffffffffa64a7d 20: 48 89 ef mov %rbp,%rdi 23: 5d pop %rbp 24: e9 14 51 a6 ff jmp 0xffffffffffa6513d 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.365916] RSP: 0018:ffffb8eb405bfbf0 EFLAGS: 00010297 [ 2.365961] RAX: ffffffff84938130 RBX: 00000000ffffffff RCX: 0000000000000002 [ 2.366023] RDX: 0000000000000006 RSI: ffffffff847561a4 RDI: ffff95e203778528 [ 2.366079] RBP: ffff95e203778528 R08: 000000000000010c R09: 00000000000000b0 [ 2.366134] R10: 00000000000000c0 R11: 00000000000000b0 R12: ffff95e2034b5a00 [ 2.366193] R13: ffffffff84cb1da0 R14: ffff95e201b75350 R15: ffff95e203778000 [ 2.366252] FS: 00007f51b749f740(0000) GS:ffff95e2b8e56000(0000) knlGS:0000000000000000 [ 2.366318] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.366360] CR2: 00007fa4bd2770b0 CR3: 0000000004b3e001 CR4: 0000000000772ef0 [ 2.366417] PKRU: 55555554 [ 2.366439] Call Trace: [ 2.366465] [ 2.366481] device_release (drivers/base/core.c:2569) [ 2.366524] kobject_put (lib/kobject.c:693 lib/kobject.c:720 ./include/linux/kref.h:65 lib/kobject.c:737) [ 2.366556] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 2.366593] nsim_destroy (drivers/net/netdevsim/netdevsim.h:396 drivers/net/netdevsim/netdev.c:1186) netdevsim [ 2.366642] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:441 drivers/net/netdevsim/dev.c:1474) netdevsim [ 2.366682] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1483 drivers/net/netdevsim/dev.c:1707) netdevsim [ 2.366728] nsim_drv_remove (drivers/net/netdevsim/dev.c:1724) netdevsim [ 2.366771] device_release_driver_internal (drivers/base/dd.c:1276 drivers/base/dd.c:1297) [ 2.366816] bus_remove_device (./include/linux/kobject.h:193 (discriminator 3) drivers/base/base.h:73 (discriminator 3) drivers/base/bus.c:586 (discriminator 3)) [ 2.366852] device_del (drivers/base/core.c:3879) [ 2.366878] device_unregister (drivers/base/core.c:3796 drivers/base/core.c:3920) [ 2.366908] del_device_store (drivers/net/netdevsim/bus.c:248) netdevsim [ 2.366950] kernfs_fop_write_iter (fs/kernfs/file.c:88 fs/kernfs/file.c:356) [ 2.366991] vfs_write (fs/read_write.c:594 fs/read_write.c:686) [ 2.367029] ksys_write (fs/read_write.c:738) [ 2.367061] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 2.367093] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 2.367147] RIP: 0033:0x7f51b767e257 [ 2.367190] 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.367321] RSP: 002b:00007ffc3297ffc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2.367379] RAX: ffffffffffffffda RBX: 00007f51b749f6e0 RCX: 00007f51b767e257 [ 2.367440] RDX: 0000000000000005 RSI: 0000558405bacd20 RDI: 0000000000000005 [ 2.367496] RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000002 [ 2.367550] R10: 0000000000000002 R11: 0000000000000246 R12: 00007f51a938d580 Finger prints: netdev_release:device_release:kobject_put:netdev_run_todo:nsim_destroy