------------[ cut here ]------------ Memory manager not clean during takedown. WARNING: drivers/gpu/drm/drm_mm.c:966 at drm_mm_takedown+0x54/0x70 drivers/gpu/drm/drm_mm.c:965, CPU#0: syz.0.0/5328 Modules linked in: CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:drm_mm_takedown+0x54/0x70 drivers/gpu/drm/drm_mm.c:965 Code: 4c 89 f7 e8 de 0f ab fc 49 8b 06 4c 39 f0 75 0e e8 31 dd 3b fc 5b 41 5e c3 cc cc cc cc cc e8 23 dd 3b fc 48 8d 3d 9c 85 d8 0a <67> 48 0f b9 3a 48 89 df 5b 41 5e eb 1f 66 66 66 66 66 66 2e 0f 1f RSP: 0018:ffffc9000e307720 EFLAGS: 00010287 RAX: ffffffff858b47fd RBX: ffff888034c7cc68 RCX: 0000000000100000 RDX: ffffc9000ec5a000 RSI: 0000000000011c21 RDI: ffffffff9063cda0 RBP: ffffffff8589f650 R08: ffff88801ae55080 R09: ffffffff8c5f1c60 R10: dffffc0000000000 R11: ffffffff8589f650 R12: ffff88801ae55080 R13: dffffc0000000000 R14: ffff888034c7cca0 R15: dffffc0000000000 FS: 00007faa7658a6c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ee04c89c0 CR3: 0000000013243000 CR4: 0000000000352ef0 Call Trace: drm_managed_release+0x208/0x380 drivers/gpu/drm/drm_managed.c:75 drm_dev_release drivers/gpu/drm/drm_drv.c:914 [inline] kref_put include/linux/kref.h:65 [inline] drm_dev_put+0xe0/0x120 drivers/gpu/drm/drm_drv.c:948 virtio_dev_remove+0x9c/0x1b0 drivers/virtio/virtio.c:375 device_remove drivers/base/dd.c:616 [inline] __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x48b/0x880 drivers/base/dd.c:1372 bus_remove_device+0x444/0x560 drivers/base/bus.c:664 device_del+0x524/0x8f0 drivers/base/core.c:3961 device_unregister+0x21/0xf0 drivers/base/core.c:4002 unregister_virtio_device+0x37/0x60 drivers/virtio/virtio.c:594 virtio_pci_remove+0x7f/0xf0 drivers/virtio/virtio_pci_common.c:758 pci_device_remove+0x99/0x1c0 drivers/pci/pci-driver.c:512 device_remove drivers/base/dd.c:616 [inline] __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x48b/0x880 drivers/base/dd.c:1372 pci_stop_dev drivers/pci/remove.c:27 [inline] pci_stop_bus_device+0xf6/0x120 drivers/pci/remove.c:93 pci_stop_and_remove_bus_device drivers/pci/remove.c:128 [inline] pci_stop_and_remove_bus_device_locked+0x77/0xb0 drivers/pci/remove.c:136 remove_store+0xe5/0x150 drivers/pci/pci-sysfs.c:523 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa7579e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faa76589fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007faa75a25fa0 RCX: 00007faa7579e019 RDX: 0000000000000001 RSI: 0000200000000800 RDI: 0000000000000005 RBP: 00007faa7583500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faa75a26038 R14: 00007faa75a25fa0 R15: 00007fff9895c328 ---------------- Code disassembly (best guess): 0: 4c 89 f7 mov %r14,%rdi 3: e8 de 0f ab fc call 0xfcab0fe6 8: 49 8b 06 mov (%r14),%rax b: 4c 39 f0 cmp %r14,%rax e: 75 0e jne 0x1e 10: e8 31 dd 3b fc call 0xfc3bdd46 15: 5b pop %rbx 16: 41 5e pop %r14 18: c3 ret 19: cc int3 1a: cc int3 1b: cc int3 1c: cc int3 1d: cc int3 1e: e8 23 dd 3b fc call 0xfc3bdd46 23: 48 8d 3d 9c 85 d8 0a lea 0xad8859c(%rip),%rdi # 0xad885c6 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 48 89 df mov %rbx,%rdi 32: 5b pop %rbx 33: 41 5e pop %r14 35: eb 1f jmp 0x56 37: 66 data16 38: 66 data16 39: 66 data16 3a: 66 data16 3b: 66 data16 3c: 66 data16 3d: 2e cs 3e: 0f .byte 0xf 3f: 1f (bad)