------------[ 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#0: syz.0.0/5348 WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x132a/0x15a0 kernel/locking/mutex.c:821, CPU#0: syz.0.0/5348 Modules linked in: CPU: 0 UID: 0 PID: 5348 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:__mutex_lock_common kernel/locking/mutex.c:625 [inline] RIP: 0010:__mutex_lock+0x1331/0x15a0 kernel/locking/mutex.c:821 Code: cd bd 91 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 46 02 00 00 83 3d 33 00 b7 05 00 75 13 48 8d 3d 86 ff b9 05 48 c7 c6 80 27 2d 8c <67> 48 0f b9 3a 90 e9 1d ee ff ff 90 0f 0b 90 e9 f0 f1 ff ff 90 0f RSP: 0000:ffffc9000df1f820 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff888038f7a580 RDX: 0000000000000000 RSI: ffffffff8c2d2780 RDI: ffffffff91c0cd50 RBP: ffffc9000df1f9c0 R08: ffffffff91bdcdf3 R09: 1ffffffff237b9be R10: dffffc0000000000 R11: fffffbfff237b9bf R12: ffff8880362d5ec0 R13: 0000000000000000 R14: 1ffff92001be3f18 R15: 0000000000000000 FS: 0000555588e10540(0000) GS:ffff88808aa11000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c6308da610 CR3: 0000000044ff9000 CR4: 0000000000352ef0 Call Trace: virtio_gpu_remove_from_restore_list drivers/gpu/drm/virtio/virtgpu_object.c:70 [inline] virtio_gpu_free_object+0x90/0x1d0 drivers/gpu/drm/virtio/virtgpu_object.c:106 drm_gem_object_release_handle+0xc2/0x220 drivers/gpu/drm/drm_gem.c:387 idr_for_each+0x1c6/0x2a0 lib/idr.c:210 drm_gem_release+0x28/0x40 drivers/gpu/drm/drm_gem.c:1125 drm_file_free+0x780/0xa90 drivers/gpu/drm/drm_file.c:261 drm_close_helper drivers/gpu/drm/drm_file.c:290 [inline] drm_release+0x2f0/0x400 drivers/gpu/drm/drm_file.c:438 __fput+0x408/0xa40 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync+0x6e/0xa0 fs/open.c:1573 __range_close fs/file.c:919 [inline] __do_sys_close_range fs/file.c:1003 [inline] __se_sys_close_range+0xa77/0xef0 fs/file.c:954 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4c3299f559 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:00007ffc50c55a28 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: ffffffffffffffda RBX: 00007ffc50c55b10 RCX: 00007f4c3299f559 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000018fc1 R08: 0000000000000001 R09: 0000000000000000 R10: 00007f4c327ff02c R11: 0000000000000246 R12: 00007ffc50c55b50 R13: 00007f4c32c2609c R14: 0000000000019c7e R15: 00007f4c32c26090 ---------------- Code disassembly (best guess): 0: cd bd int $0xbd 2: 91 xchg %eax,%ecx 3: 48 c1 e8 03 shr $0x3,%rax 7: 0f b6 04 18 movzbl (%rax,%rbx,1),%eax b: 84 c0 test %al,%al d: 0f 85 46 02 00 00 jne 0x259 13: 83 3d 33 00 b7 05 00 cmpl $0x0,0x5b70033(%rip) # 0x5b7004d 1a: 75 13 jne 0x2f 1c: 48 8d 3d 86 ff b9 05 lea 0x5b9ff86(%rip),%rdi # 0x5b9ffa9 23: 48 c7 c6 80 27 2d 8c mov $0xffffffff8c2d2780,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 90 nop 30: e9 1d ee ff ff jmp 0xffffee52 35: 90 nop 36: 0f 0b ud2 38: 90 nop 39: e9 f0 f1 ff ff jmp 0xfffff22e 3e: 90 nop 3f: 0f .byte 0xf