------------[ cut here ]------------ Unexpected driver unregister! WARNING: CPU: 3 PID: 6091 at drivers/base/driver.c:273 driver_unregister drivers/base/driver.c:273 [inline] WARNING: CPU: 3 PID: 6091 at drivers/base/driver.c:273 driver_unregister+0x90/0xb0 drivers/base/driver.c:270 Modules linked in: CPU: 3 UID: 0 PID: 6091 Comm: syz.0.17 Not tainted syzkaller #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 b2 0c 83 fc 48 89 df e8 3a 93 ff ff 5b 5d e9 d3 a6 d9 fb e8 ce a6 d9 fb 90 48 c7 c7 80 e4 1f 8c e8 61 df 97 fb 90 <0f> 0b 90 90 5b 5d e9 b5 a6 d9 fb e8 00 1b 42 fc eb 94 e8 f9 1a 42 RSP: 0018:ffffc90003c2f9a0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8ff23c20 RCX: ffffffff817aaee8 RDX: ffff88802449c900 RSI: ffffffff817aaef5 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8ff23b60 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888031b99000 FS: 0000555570b3e500(0000) GS:ffff8880d6cdf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f163fff CR3: 000000005068a000 CR4: 0000000000352ef0 Call Trace: comedi_device_detach_locked+0x12c/0xa50 drivers/comedi/drivers.c:207 comedi_device_detach+0x67/0xb0 drivers/comedi/drivers.c:215 comedi_device_attach+0x43d/0x900 drivers/comedi/drivers.c:1011 do_devconfig_ioctl+0x1b1/0x710 drivers/comedi/comedi_fops.c:872 comedi_unlocked_ioctl+0x165d/0x2f00 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f800d98eec9 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:00007ffefc54b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f800dbe5fa0 RCX: 00007f800d98eec9 RDX: 0000200000000180 RSI: 0000000040946400 RDI: 0000000000000003 RBP: 00007f800da11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f800dbe5fa0 R14: 00007f800dbe5fa0 R15: 0000000000000003