------------[ 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.2.346/7399 WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x93f/0x1c10 kernel/locking/mutex.c:821, CPU#0: syz.2.346/7399 Modules linked in: CPU: 0 UID: 0 PID: 7399 Comm: syz.2.346 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 3d be 79 06 45 85 c0 75 13 48 8d 3d 11 cc 7c 06 48 c7 c6 c0 fc 0f 8c <67> 48 0f b9 3a 90 e9 1b f8 ff ff 4d 8d a7 f0 0a 00 00 4c 89 e7 e8 RSP: 0018:ffffc9000d1e7740 EFLAGS: 00010246 RAX: 0000000000000003 RBX: ffff8880292d5ec0 RCX: 1ffffffff24d6068 RDX: 0000000000000000 RSI: ffffffff8c0ffcc0 RDI: ffffffff926e1120 RBP: ffffc9000d1e78b0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff926b0347 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880240dcb60 FS: 0000000000000000(0000) GS:ffff8880d4471000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a278643300 CR3: 000000003753b000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 8000000000000000 DR3: 0000000000000000 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:1167 kref_put include/linux/kref.h:65 [inline] __drm_gem_object_put include/drm/drm_gem.h:573 [inline] drm_gem_object_put include/drm/drm_gem.h:586 [inline] drm_gem_object_put include/drm/drm_gem.h:583 [inline] drm_client_buffer_delete drivers/gpu/drm/drm_client.c:201 [inline] drm_client_buffer_delete+0x1d8/0x270 drivers/gpu/drm/drm_client.c:185 drm_fbdev_shmem_fb_destroy+0xc5/0x110 drivers/gpu/drm/drm_fbdev_shmem.c:67 put_fb_info drivers/video/fbdev/core/fbmem.c:61 [inline] put_fb_info+0xb8/0xf0 drivers/video/fbdev/core/fbmem.c:56 fb_release+0x13e/0x190 drivers/video/fbdev/core/fb_chrdev.c:381 __fput+0x3fb/0xb50 fs/file_table.c:512 fput_close_sync+0x118/0x250 fs/file_table.c:618 filp_close_sync+0x75/0xa0 fs/open.c:1574 close_files fs/file.c:572 [inline] put_files_struct fs/file.c:584 [inline] put_files_struct+0x1f7/0x390 fs/file.c:581 switch_files_struct fs/file.c:598 [inline] exit_files+0x85/0xb0 fs/file.c:604 do_exit+0x896/0x2a00 kernel/exit.c:977 do_group_exit+0xd5/0x2a0 kernel/exit.c:1123 get_signal+0x1f58/0x22e0 kernel/signal.c:3113 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/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/0x7b0 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faf7af6034e Code: Unable to access opcode bytes at 0x7faf7af60324. RSP: 002b:00007faf7bf31f58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007faf7bf326c0 RCX: 00007faf7af6034e RDX: 00007faf7bf31fb0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007faf7b037b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faf7b226038 R14: 00007faf7b225fa0 R15: 00007fff6f1fcf68 irq event stamp: 9345 hardirqs last enabled at (9345): [] kasan_quarantine_put+0x104/0x240 mm/kasan/quarantine.c:234 hardirqs last disabled at (9344): [] kasan_quarantine_put+0xc6/0x240 mm/kasan/quarantine.c:207 softirqs last enabled at (9328): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (9328): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (9328): [] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 softirqs last disabled at (9275): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (9275): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (9275): [] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 ---[ end trace 0000000000000000 ]--- ---------------- 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 3d be 79 06 mov 0x679be3d(%rip),%r8d # 0x679be54 17: 45 85 c0 test %r8d,%r8d 1a: 75 13 jne 0x2f 1c: 48 8d 3d 11 cc 7c 06 lea 0x67ccc11(%rip),%rdi # 0x67ccc34 23: 48 c7 c6 c0 fc 0f 8c mov $0xffffffff8c0ffcc0,%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