------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: kernel/locking/mutex.c:625 at __mutex_lock_common kernel/locking/mutex.c:625 [inline], CPU#2: syz.5.1293/9473 WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x93f/0x1c10 kernel/locking/mutex.c:821, CPU#2: syz.5.1293/9473 Modules linked in: CPU: 2 UID: 0 PID: 9473 Comm: syz.5.1293 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:625 [inline] RIP: 0010:__mutex_lock+0x946/0x1c10 kernel/locking/mutex.c:821 Code: 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 75 12 00 00 44 8b 05 9d 22 6e 06 45 85 c0 75 13 48 8d 3d 61 2e 71 06 48 c7 c6 60 f3 ef 8b <67> 48 0f b9 3a 90 e9 1b f8 ff ff 4d 8d a7 f0 0a 00 00 4c 89 e7 e8 RSP: 0018:ffffc90021ad7b10 EFLAGS: 00010246 RAX: 0000000000000003 RBX: ffff888101ed51c0 RCX: 1ffffffff248c160 RDX: 0000000000000000 RSI: ffffffff8beff360 RDI: ffffffff924916d0 RBP: ffffc90021ad7c80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880288b9360 FS: 00007f87239ee6c0(0000) GS:ffff8880d4930000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f70266d3e9c CR3: 0000000058702000 CR4: 0000000000352ef0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: virtio_gpu_remove_from_restore_list drivers/gpu/drm/virtio/virtgpu_object.c:70 [inline] virtio_gpu_free_object+0xec/0x280 drivers/gpu/drm/virtio/virtgpu_object.c:106 drm_gem_object_free+0x60/0xa0 drivers/gpu/drm/drm_gem.c:1164 kref_put include/linux/kref.h:65 [inline] __drm_gem_object_put include/drm/drm_gem.h:562 [inline] drm_gem_object_put include/drm/drm_gem.h:575 [inline] drm_gem_object_put include/drm/drm_gem.h:572 [inline] drm_gem_dmabuf_release+0xd1/0xf0 drivers/gpu/drm/drm_prime.c:272 dma_buf_release+0x159/0x2d0 drivers/dma-buf/dma-buf.c:183 dentry_kill+0x2ce/0xca0 fs/dcache.c:845 finish_dput fs/dcache.c:1015 [inline] dput.part.0+0xd2/0x240 fs/dcache.c:1056 dput+0x1f/0x30 fs/dcache.c:1051 __fput+0x515/0xb50 fs/file_table.c:520 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f872579f559 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:00007f87239ee028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: 0000000000000001 RBX: 00007f8725a25fa0 RCX: 00007f872579f559 RDX: 0000000000000001 RSI: 00002000000004c0 RDI: 0000000000000003 RBP: 00007f8725836b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8725a26038 R14: 00007f8725a25fa0 R15: 00007ffd5a9a7068 ---------------- Code disassembly (best guess): 0: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx 4: 38 d0 cmp %dl,%al 6: 7c 08 jl 0x10 8: 84 d2 test %dl,%dl a: 0f 85 75 12 00 00 jne 0x1285 10: 44 8b 05 9d 22 6e 06 mov 0x66e229d(%rip),%r8d # 0x66e22b4 17: 45 85 c0 test %r8d,%r8d 1a: 75 13 jne 0x2f 1c: 48 8d 3d 61 2e 71 06 lea 0x6712e61(%rip),%rdi # 0x6712e84 23: 48 c7 c6 60 f3 ef 8b mov $0xffffffff8beff360,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 90 nop 30: e9 1b f8 ff ff jmp 0xfffff850 35: 4d 8d a7 f0 0a 00 00 lea 0xaf0(%r15),%r12 3c: 4c 89 e7 mov %r12,%rdi 3f: e8 .byte 0xe8