[ 2.391847] netdevsim netdevsim2025 nsim2025: renamed from eth0 [ 2.446488] ------------[ cut here ]------------ [ 2.446630] kernel BUG at net/core/net-sysfs.c:2246! [ 2.446700] Oops: invalid opcode: 0000 [#1] SMP [ 2.446760] CPU: 2 UID: 0 PID: 249 Comm: netns-name.sh Not tainted 6.18.0-rc4-virtme #1 PREEMPT(voluntary) [ 2.446852] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.446909] RIP: 0010:netdev_release+0x2d/0x30 [ 2.446964] Code: fa 0f 1f 44 00 00 80 7f d8 04 75 1d 55 48 8d af a8 fa ff ff 48 8b bf e0 fb ff ff e8 ed d7 a4 ff 48 89 ef 5d e9 a4 de a4 ff 90 <0f> 0b 90 f3 0f 1e fa 0f 1f 44 00 00 55 48 89 f5 48 8d 97 c8 fb ff [ 2.447074] RSP: 0018:ffffb10e005cfbf0 EFLAGS: 00010297 [ 2.447115] RAX: ffffffff83b51ca0 RBX: 00000000ffffffff RCX: 0000000000000004 [ 2.447184] RDX: 0000000000000008 RSI: ffffffff83958ea4 RDI: ffff973542cec558 [ 2.447252] RBP: ffff973542cec558 R08: 00000000000002cc R09: 0000000000000265 [ 2.447318] R10: 0000000000000280 R11: 0000000000000270 R12: ffff973542fc4600 [ 2.447386] R13: ffffffff83eb2ea0 R14: ffff973542e97bf0 R15: ffff973542cec000 [ 2.447456] FS: 00007fdb99337000(0000) GS:ffff9735f9c91000(0000) knlGS:0000000000000000 [ 2.447515] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.447558] CR2: 0000556d80750628 CR3: 0000000004a91002 CR4: 0000000000772ef0 [ 2.447631] PKRU: 55555554 [ 2.447659] Call Trace: [ 2.447683] [ 2.447710] device_release+0x35/0x90 [ 2.447754] kobject_put+0x64/0xc0 [ 2.447795] netdev_run_todo+0x21a/0x550 [ 2.447836] nsim_destroy+0x95/0x180 [netdevsim] [ 2.447894] __nsim_dev_port_del+0x47/0x70 [netdevsim] [ 2.447947] nsim_dev_reload_destroy+0x5b/0x120 [netdevsim] [ 2.447984] nsim_drv_remove+0x2f/0xb0 [netdevsim] [ 2.448028] device_release_driver_internal+0x193/0x200 [ 2.448080] bus_remove_device+0xc1/0x100 [ 2.448123] device_del+0x15f/0x480 [ 2.448157] device_unregister+0x12/0x30 [ 2.448196] del_device_store+0x117/0x1a0 [netdevsim] [ 2.448250] kernfs_fop_write_iter+0x12b/0x1c0 [ 2.448302] vfs_write+0x33a/0x470 [ 2.448350] ksys_write+0x65/0xe0 [ 2.448391] do_syscall_64+0xa4/0xfd0 [ 2.448435] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.448488] RIP: 0033:0x7fdb99437257 [ 2.448529] 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 [ 2.448694] RSP: 002b:00007ffdeb522f58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2.448763] RAX: ffffffffffffffda RBX: 00007fdb99533780 RCX: 00007fdb99437257 [ 2.448828] RDX: 0000000000000005 RSI: 0000556d8074f620 RDI: 0000000000000001 [ 2.448897] RBP: 0000000000000005 R08: 0000000000000003 R09: 0000000000000000 [ 2.448966] R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000005 [ 2.449033] R13: 0000556d8074f620 R14: 0000000000000005 R15: 00007fdb9952e9c0 [ 2.449101] [ 2.449123] Modules linked in: netdevsim psample [ 2.449203] ---[ end trace 0000000000000000 ]--- [ 2.449276] RIP: 0010:netdev_release+0x2d/0x30 [ 2.449350] Code: fa 0f 1f 44 00 00 80 7f d8 04 75 1d 55 48 8d af a8 fa ff ff 48 8b bf e0 fb ff ff e8 ed d7 a4 ff 48 89 ef 5d e9 a4 de a4 ff 90 <0f> 0b 90 f3 0f 1e fa 0f 1f 44 00 00 55 48 89 f5 48 8d 97 c8 fb ff [ 2.449544] RSP: 0018:ffffb10e005cfbf0 EFLAGS: 00010297 [ 2.449615] RAX: ffffffff83b51ca0 RBX: 00000000ffffffff RCX: 0000000000000004 [ 2.449714] RDX: 0000000000000008 RSI: ffffffff83958ea4 RDI: ffff973542cec558 [ 2.449808] RBP: ffff973542cec558 R08: 00000000000002cc R09: 0000000000000265 [ 2.449901] R10: 0000000000000280 R11: 0000000000000270 R12: ffff973542fc4600 [ 2.449995] R13: ffffffff83eb2ea0 R14: ffff973542e97bf0 R15: ffff973542cec000 [ 2.450089] FS: 00007fdb99337000(0000) GS:ffff9735f9c91000(0000) knlGS:0000000000000000 [ 2.450195] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.450277] CR2: 0000556d80750628 CR3: 0000000004a91002 CR4: 0000000000772ef0 [ 2.450376] PKRU: 55555554