------------[ cut here ]------------ Unexpected driver unregister! WARNING: CPU: 2 PID: 6100 at drivers/base/driver.c:273 driver_unregister drivers/base/driver.c:273 [inline] WARNING: CPU: 2 PID: 6100 at drivers/base/driver.c:273 driver_unregister+0x90/0xb0 drivers/base/driver.c:270 Modules linked in: CPU: 2 UID: 0 PID: 6100 Comm: syz.0.16 Not tainted 6.16.0-rc7-syzkaller-00120-g5f33ebd2018c #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:driver_unregister drivers/base/driver.c:273 [inline] RIP: 0010:driver_unregister+0x90/0xb0 drivers/base/driver.c:270 Code: 48 89 ef e8 52 6c 55 fc 48 89 df e8 7a 93 ff ff 5b 5d e9 c3 1f b0 fb e8 be 1f b0 fb 90 48 c7 c7 40 df 41 8c e8 31 27 6f fb 90 <0f> 0b 90 90 5b 5d e9 a5 1f b0 fb e8 80 73 15 fc eb 94 e8 79 73 15 RSP: 0018:ffffc900031e79d8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffffff9016fcc0 RCX: ffffffff817af1a8 RDX: ffff88802acb2440 RSI: ffffffff817af1b5 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888032572000 FS: 0000555558dcd500(0000) GS:ffff8880d6920000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056449fd2700d CR3: 0000000030e99000 CR4: 0000000000352ef0 Call Trace: comedi_device_detach+0x13d/0x9e0 drivers/comedi/drivers.c:207 comedi_device_attach+0x43d/0x900 drivers/comedi/drivers.c:1003 do_devconfig_ioctl+0x1a7/0x580 drivers/comedi/comedi_fops.c:855 comedi_unlocked_ioctl+0x165d/0x2f00 drivers/comedi/comedi_fops.c:2156 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0b9698e9a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff61178ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0b96bb5fa0 RCX: 00007f0b9698e9a9 RDX: 00002000000000c0 RSI: 0000000040946400 RDI: 0000000000000003 RBP: 00007f0b96a10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0b96bb5fa0 R14: 00007f0b96bb5fa0 R15: 0000000000000003