====================================== | [ 13.795563][ T262] netdevsim netdevsim5417 eni5417np1: renamed from eth2 | [ 14.000221][ T273] ------------[ cut here ]------------ | [ 14.000763][ T273] kernel BUG at net/core/net-sysfs.c:2246! | [ 14.001248][ T273] Oops: invalid opcode: 0000 [#1] SMP KASAN [ 14.001926][ T273] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.002205][ T273] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 14.002435][ T273] Code: 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 20 48 8b bb e0 fa ff ff e8 8c f4 d7 fe 48 89 ef 5b 5d e9 52 01 d8 fe 90 <0f> 0b e8 fa d7 de fe eb bc e8 53 d8 de fe eb d9 90 f3 0f 1e fa 0f All code ======== 0: 00 00 add %al,(%rax) 2: 00 fc add %bh,%ah 4: ff lcall (bad) 5: df 48 89 fisttps -0x77(%rax) 8: fa cli 9: 48 c1 ea 03 shr $0x3,%rdx d: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 11: 75 20 jne 0x33 13: 48 8b bb e0 fa ff ff mov -0x520(%rbx),%rdi 1a: e8 8c f4 d7 fe call 0xfffffffffed7f4ab 1f: 48 89 ef mov %rbp,%rdi 22: 5b pop %rbx 23: 5d pop %rbp 24: e9 52 01 d8 fe jmp 0xfffffffffed8017b 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: e8 fa d7 de fe call 0xfffffffffeded82b 31: eb bc jmp 0xffffffffffffffef 33: e8 53 d8 de fe call 0xfffffffffeded88b 38: eb d9 jmp 0x13 3a: 90 nop 3b: f3 0f 1e fa endbr64 3f: 0f .byte 0xf Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: e8 fa d7 de fe call 0xfffffffffeded801 7: eb bc jmp 0xffffffffffffffc5 9: e8 53 d8 de fe call 0xfffffffffeded861 e: eb d9 jmp 0xffffffffffffffe9 10: 90 nop 11: f3 0f 1e fa endbr64 15: 0f .byte 0xf [ 14.003195][ T273] RSP: 0018:ffffc900005c73c8 EFLAGS: 00010297 [ 14.003487][ T273] RAX: 0000000000000000 RBX: ffff88800abd2650 RCX: ffffffff95f02b51 [ 14.003829][ T273] RDX: 1ffff1100157a4c6 RSI: ffffffff9625d540 RDI: ffff88800abd2630 [ 14.004149][ T273] RBP: ffff88800abd2000 R08: 0000000000000001 R09: ffffed100157a4d1 [ 14.004478][ T273] R10: ffff88800abd268b R11: ffffc900005c70e8 R12: ffff88800c32b200 [ 14.004818][ T273] R13: 0000000000000000 R14: dead000000000122 R15: dead000000000100 [ 14.005138][ T273] FS: 00007f5cdc448800(0000) GS:ffff8880985fc000(0000) knlGS:0000000000000000 [ 14.005520][ T273] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 14.005799][ T273] CR2: 00005560880c0540 CR3: 000000000a3ce003 CR4: 0000000000772ef0 [ 14.006129][ T273] PKRU: 55555554 [ 14.006293][ T273] Call Trace: [ 14.006470][ T273] [ 14.006600][ T273] device_release (drivers/base/core.c:2570) [ 14.006820][ T273] kobject_cleanup (lib/kobject.c:693) [ 14.007036][ T273] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 14.007248][ T273] ? kasan_quarantine_put (mm/kasan/quarantine.c:234 (discriminator 1)) [ 14.007479][ T273] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 14.007702][ T273] ? generic_xdp_install (net/core/dev.c:11630) [ 14.007916][ T273] ? kfree (mm/slub.c:6630 mm/slub.c:6837) [ 14.008079][ T273] nsim_destroy (drivers/net/netdevsim/netdev.c:1186) netdevsim [ 14.008299][ T273] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:441 drivers/net/netdevsim/dev.c:1474) netdevsim [ 14.008587][ T273] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1483 drivers/net/netdevsim/dev.c:1707) netdevsim [ 14.008856][ T273] nsim_dev_reload_down (drivers/net/netdevsim/dev.c:984) netdevsim [ 14.009121][ T273] devlink_reload (net/devlink/dev.c:462) [ 14.009340][ T273] ? devlink_notify_unregister (net/devlink/dev.c:446) [ 14.009563][ T273] ? ns_capable (./include/linux/security.h:695 kernel/capability.c:342 kernel/capability.c:363) [ 14.009726][ T273] devlink_nl_reload_doit (net/devlink/dev.c:584) [ 14.009935][ T273] ? devlink_reload (net/devlink/dev.c:520) [ 14.010142][ T273] ? __nla_parse (lib/nlattr.c:732) [ 14.010356][ T273] genl_family_rcv_msg_doit (net/netlink/genetlink.c:1117) [ 14.010573][ T273] ? genl_family_rcv_msg_attrs_parse.constprop.0 (net/netlink/genetlink.c:1088) [ 14.010887][ T273] ? is_bpf_text_address (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/bpf/core.c:746) [ 14.011105][ T273] ? cap_capable (security/commoncap.c:132) [ 14.011327][ T273] genl_family_rcv_msg (net/netlink/genetlink.c:1195) [ 14.011552][ T273] ? genl_family_rcv_msg_dumpit (net/netlink/genetlink.c:1160) [ 14.011811][ T273] ? devlink_nl_pre_doit_port (net/devlink/netlink.c:257) [ 14.012019][ T273] ? devlink_reload (net/devlink/dev.c:520) [ 14.012225][ T273] ? devlink_nl_post_doit (net/devlink/netlink.c:288) [ 14.012443][ T273] genl_rcv_msg (net/netlink/genetlink.c:65 net/netlink/genetlink.c:1211) [ 14.012662][ T273] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 14.012867][ T273] ? genl_family_rcv_msg (net/netlink/genetlink.c:1201) [ 14.013080][ T273] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 14.013292][ T273] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 14.013516][ T273] genl_rcv (net/netlink/genetlink.c:1220) [ 14.013676][ T273] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 14.013888][ T273] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 14.014103][ T273] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 14.014312][ T273] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 14.014538][ T273] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 14.014760][ T273] ? __might_fault (mm/memory.c:7081 mm/memory.c:7075) [ 14.014978][ T273] __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2244) [ 14.015193][ T273] ? __ia32_sys_getpeername (net/socket.c:2211) [ 14.015422][ T273] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 14.015646][ T273] ? trace_rseq_update (./include/trace/events/rseq.h:11 (discriminator 21)) [ 14.015863][ T273] ? rseq_update_cpu_node_id (kernel/rseq.c:189 (discriminator 10)) [ 14.016077][ T273] ? __rseq_handle_notify_resume (kernel/rseq.c:442) [ 14.016349][ T273] ? rseq_get_rseq_cs.isra.0 (kernel/rseq.c:425) [ 14.016580][ T273] ? __ia32_sys_open (fs/open.c:1463) [ 14.016794][ T273] __x64_sys_sendto (net/socket.c:2247) [ 14.017007][ T273] ? do_syscall_64 (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:119 ./include/linux/entry-common.h:124 arch/x86/entry/syscall_64.c:90) [ 14.017221][ T273] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 14.017443][ T273] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 14.017665][ T273] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 14.017933][ T273] RIP: 0033:0x7f5cdc61627a [ 14.018150][ T273] 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 [ 14.018935][ T273] RSP: 002b:00007ffe4938c308 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 14.019258][ T273] RAX: ffffffffffffffda RBX: 000000001dd63b20 RCX: 00007f5cdc61627a [ 14.019596][ T273] RDX: 0000000000000040 RSI: 000000001dd63b20 RDI: 0000000000000005 [ 14.019916][ T273] RBP: 000000001dd63910 R08: 00007f5cdc7fa200 R09: 000000000000000c [ 14.020247][ T273] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000040f510 Finger prints: netdev_release:device_release:kobject_cleanup:netdev_run_todo:nsim_destroy