====================================== | [ 13.452136][ T244] netdevsim netdevsim1337 eni1337np1: renamed from eth0 | [ 13.596159][ T250] ------------[ cut here ]------------ | [ 13.596638][ T250] kernel BUG at net/core/net-sysfs.c:2246! | [ 13.597094][ T250] Oops: invalid opcode: 0000 [#1] SMP KASAN [ 13.597683][ T250] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.597938][ T250] RIP: 0010:netdev_release (net/core/net-sysfs.c:2246 net/core/net-sysfs.c:2242) [ 13.598152][ T250] 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 [ 13.598844][ T250] RSP: 0018:ffffc900006e73c8 EFLAGS: 00010297 [ 13.599107][ T250] RAX: 0000000000000000 RBX: ffff88800a61a650 RCX: ffffffffb6d02b51 [ 13.599419][ T250] RDX: 1ffff110014c34c6 RSI: ffffffffb705d540 RDI: ffff88800a61a630 [ 13.599702][ T250] RBP: ffff88800a61a000 R08: 0000000000000001 R09: ffffed10014c34d1 [ 13.600004][ T250] R10: ffff88800a61a68b R11: ffffc900006e70e8 R12: ffff888007785000 [ 13.600291][ T250] R13: 0000000000000000 R14: dead000000000122 R15: dead000000000100 [ 13.600587][ T250] FS: 00007fc8ffd16800(0000) GS:ffff88807d3fc000(0000) knlGS:0000000000000000 [ 13.600942][ T250] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 13.601185][ T250] CR2: 00007fc8ffe32610 CR3: 0000000008d42005 CR4: 0000000000772ef0 [ 13.601478][ T250] PKRU: 55555554 [ 13.601623][ T250] Call Trace: [ 13.601782][ T250] [ 13.601896][ T250] device_release (drivers/base/core.c:2570) [ 13.602103][ T250] kobject_cleanup (lib/kobject.c:693) [ 13.602292][ T250] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 13.602500][ T250] ? kasan_quarantine_put (mm/kasan/quarantine.c:234 (discriminator 1)) [ 13.602710][ T250] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 13.602923][ T250] ? generic_xdp_install (net/core/dev.c:11630) [ 13.603127][ T250] ? kfree (mm/slub.c:6630 mm/slub.c:6837) [ 13.603288][ T250] nsim_destroy (drivers/net/netdevsim/netdev.c:1186) netdevsim [ 13.603489][ T250] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:441 drivers/net/netdevsim/dev.c:1474) netdevsim [ 13.603739][ T250] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1483 drivers/net/netdevsim/dev.c:1707) netdevsim [ 13.603991][ T250] nsim_dev_reload_down (drivers/net/netdevsim/dev.c:984) netdevsim [ 13.604262][ T250] devlink_reload (net/devlink/dev.c:462) [ 13.604469][ T250] ? devlink_notify_unregister (net/devlink/dev.c:446) [ 13.604663][ T250] ? ns_capable (./include/linux/security.h:695 kernel/capability.c:342 kernel/capability.c:363) [ 13.604826][ T250] devlink_nl_reload_doit (net/devlink/dev.c:584) [ 13.605037][ T250] ? devlink_reload (net/devlink/dev.c:520) [ 13.605238][ T250] ? __nla_parse (lib/nlattr.c:732) [ 13.605431][ T250] genl_family_rcv_msg_doit (net/netlink/genetlink.c:1117) [ 13.605620][ T250] ? genl_family_rcv_msg_attrs_parse.constprop.0 (net/netlink/genetlink.c:1088) [ 13.605907][ T250] ? is_bpf_text_address (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 kernel/bpf/core.c:746) [ 13.606098][ T250] ? cap_capable (security/commoncap.c:132) [ 13.606288][ T250] genl_family_rcv_msg (net/netlink/genetlink.c:1195) [ 13.606475][ T250] ? genl_family_rcv_msg_dumpit (net/netlink/genetlink.c:1160) [ 13.606707][ T250] ? devlink_nl_pre_doit_port (net/devlink/netlink.c:257) [ 13.606900][ T250] ? devlink_reload (net/devlink/dev.c:520) [ 13.607086][ T250] ? devlink_nl_post_doit (net/devlink/netlink.c:288) [ 13.607274][ T250] genl_rcv_msg (net/netlink/genetlink.c:65 net/netlink/genetlink.c:1211) [ 13.607464][ T250] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 13.607653][ T250] ? genl_family_rcv_msg (net/netlink/genetlink.c:1201) [ 13.607847][ T250] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 13.608042][ T250] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 13.608251][ T250] genl_rcv (net/netlink/genetlink.c:1220) [ 13.608392][ T250] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 13.608582][ T250] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 13.608777][ T250] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 13.608974][ T250] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 13.609168][ T250] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 13.609357][ T250] ? __might_fault (mm/memory.c:7081 mm/memory.c:7075) [ 13.609557][ T250] __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2244) [ 13.609755][ T250] ? __ia32_sys_getpeername (net/socket.c:2211) [ 13.609946][ T250] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 13.610134][ T250] ? trace_rseq_update (./include/trace/events/rseq.h:11 (discriminator 21)) [ 13.610321][ T250] ? rseq_update_cpu_node_id (kernel/rseq.c:189 (discriminator 10)) [ 13.610517][ T250] ? __rseq_handle_notify_resume (kernel/rseq.c:442) [ 13.610755][ T250] ? rseq_get_rseq_cs.isra.0 (kernel/rseq.c:425) [ 13.610945][ T250] ? __ia32_sys_open (fs/open.c:1463) [ 13.611133][ T250] __x64_sys_sendto (net/socket.c:2247) [ 13.611323][ T250] ? 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) [ 13.611508][ T250] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 13.611696][ T250] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 13.611890][ T250] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 13.612125][ T250] RIP: 0033:0x7fc8ffee427a [ 13.612319][ T250] 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 [ 13.612994][ T250] RSP: 002b:00007fffcf2f5c98 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 13.613284][ T250] RAX: ffffffffffffffda RBX: 0000000035be8b20 RCX: 00007fc8ffee427a [ 13.613565][ T250] RDX: 0000000000000040 RSI: 0000000035be8b20 RDI: 0000000000000005 [ 13.613848][ T250] RBP: 0000000035be8910 R08: 00007fc9000c8200 R09: 000000000000000c [ 13.614127][ T250] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000040f510 Finger prints: netdev_release:device_release:kobject_cleanup:netdev_run_todo:nsim_destroy