netdevsim netdevsim3 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5813 at net/core/devlink.c:10331 devl_port_unregister+0x25c/0x2d0 net/core/devlink.c:10331 Modules linked in: CPU: 1 PID: 5813 Comm: syz-executor.3 Not tainted 6.2.0-rc8-syzkaller-00021-ge1c04510f521 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:devl_port_unregister+0x25c/0x2d0 net/core/devlink.c:10331 Code: e8 c9 f4 9d f9 85 ed 0f 85 20 fe ff ff e8 0c f8 9d f9 0f 0b e9 14 fe ff ff e8 00 f8 9d f9 0f 0b e9 4b ff ff ff e8 f4 f7 9d f9 <0f> 0b e9 3a fe ff ff e8 38 0b ec f9 e9 d8 fe ff ff e8 2e 0b ec f9 RSP: 0018:ffffc90002aff990 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880203cf810 RCX: 0000000000000000 RDX: ffff88801e01ba80 RSI: ffffffff87e3101c RDI: 0000000000000005 RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: ffff8880203cf810 R13: ffff8880203cf830 R14: ffff8880203c9000 R15: ffff8880203cf800 FS: 0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:0000000056666380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f1b7a9f0300 CR3: 000000006f1dd000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __nsim_dev_port_del+0x1bb/0x240 drivers/net/netdevsim/dev.c:1430 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline] nsim_dev_reload_destroy+0x171/0x510 drivers/net/netdevsim/dev.c:1657 nsim_drv_remove+0x5a/0x1d0 drivers/net/netdevsim/dev.c:1673 device_remove+0xc8/0x170 drivers/base/dd.c:548 __device_release_driver drivers/base/dd.c:1253 [inline] device_release_driver_internal+0x4a5/0x700 drivers/base/dd.c:1279 bus_remove_device+0x2e7/0x5a0 drivers/base/bus.c:529 device_del+0x4f7/0xc80 drivers/base/core.c:3666 device_unregister+0x1e/0xc0 drivers/base/core.c:3698 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x34e/0x470 drivers/net/netdevsim/bus.c:219 bus_attr_store+0x76/0xa0 drivers/base/bus.c:122 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xdd0 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f11549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff78080 EFLAGS: 00000286 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000fff780d0 RDX: 0000000000000001 RSI: 00000000f734d000 RDI: 0000000000000000 RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi