drm_gem_pin_locked drivers/gpu/drm/drm_gem.c:1190 [inline] drm_gem_pin+0x9f/0xf0 drivers/gpu/drm/drm_gem.c:1206 dma_buf_dynamic_attach+0x20f/0x920 drivers/dma-buf/dma-buf.c:930 drm_gem_prime_import_dev+0xeb/0x340 drivers/gpu/drm/drm_prime.c:952 drm_gem_prime_import drivers/gpu/drm/drm_prime.c:1001 [inline] drm_gem_prime_fd_to_handle+0x1ca/0x4a0 drivers/gpu/drm/drm_prime.c:319 drm_ioctl_kernel+0x2cf/0x390 drivers/gpu/drm/drm_ioctl.c:796 drm_ioctl+0x67f/0xb10 drivers/gpu/drm/drm_ioctl.c:893 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:3433! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6508 Comm: syz.2.181 Not tainted 6.15.0-syzkaller-01972-g914873bc7df9 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:filemap_fault+0x117d/0x1200 mm/filemap.c:3433 Code: 38 c1 0f 8c 8e fc ff ff 4c 89 e7 e8 3d 1c 29 00 e9 81 fc ff ff e8 23 62 c8 ff 48 89 df 48 c7 c6 20 1c 74 8b e8 44 ae 0d 00 90 <0f> 0b e8 0c 62 c8 ff 48 8b 3c 24 48 c7 c6 a0 22 74 8b e8 2c ae 0d RSP: 0000:ffffc9000ee273e0 EFLAGS: 00010246 RAX: 85d9e34e33059900 RBX: ffffea0000a3e580 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8d747175 RDI: 00000000ffffffff RBP: ffffc9000ee27518 R08: ffffffff8f7e98b7 R09: 1ffffffff1efd316 R10: dffffc0000000000 R11: fffffbfff1efd317 R12: dffffc0000000000 R13: 1ffffd4000147cb1 R14: ffffea0000a3e598 R15: ffffea0000a3e588 FS: 00007fb24e6286c0(0000) GS:ffff8881261c7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb24e6079c8 CR3: 00000000213d0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_fault+0x138/0x390 mm/memory.c:5098 do_read_fault mm/memory.c:5518 [inline] do_fault mm/memory.c:5652 [inline] do_pte_missing mm/memory.c:4160 [inline] handle_pte_fault mm/memory.c:5997 [inline] __handle_mm_fault+0x37c5/0x55e0 mm/memory.c:6140 handle_mm_fault+0x2d5/0x7f0 mm/memory.c:6309 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0xf/0x90 arch/x86/lib/copy_user_64.S:46 Code: c4 10 e9 d4 f3 03 00 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 83 f9 40 73 44 83 f9 08 73 25 85 c9 74 0f <8a> 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 2e RSP: 0018:ffffc9000ee27998 EFLAGS: 00050202 RAX: 00007ffffffff001 RBX: 0000000000000001 RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000200000001d1b RDI: ffff88805d4e8a5b RBP: 000000000000d5a5 R08: ffff88805d4e8a5b R09: 1ffff1100ba9d14b R10: dffffc0000000000 R11: ffffed100ba9d14c R12: 0000000000000000 R13: 0000000000000001 R14: ffff88805d4e8a5b R15: 0000200000001d1b copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:178 [inline] _copy_from_user+0x7a/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] snd_rawmidi_kernel_write1+0x3ab/0x650 sound/core/rawmidi.c:1560 snd_rawmidi_write+0x5ad/0xbd0 sound/core/rawmidi.c:1629 do_loop_readv_writev include/linux/uio.h:-1 [inline] vfs_writev+0x4a5/0x9a0 fs/read_write.c:1059 do_writev+0x14d/0x2d0 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x220 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb24d78e969 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:00007fb24e628038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb24d9b5fa0 RCX: 00007fb24d78e969 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000006 RBP: 00007fb24d810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb24d9b5fa0 R15: 00007ffc84051aa8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_fault+0x117d/0x1200 mm/filemap.c:3433 Code: 38 c1 0f 8c 8e fc ff ff 4c 89 e7 e8 3d 1c 29 00 e9 81 fc ff ff e8 23 62 c8 ff 48 89 df 48 c7 c6 20 1c 74 8b e8 44 ae 0d 00 90 <0f> 0b e8 0c 62 c8 ff 48 8b 3c 24 48 c7 c6 a0 22 74 8b e8 2c ae 0d RSP: 0000:ffffc9000ee273e0 EFLAGS: 00010246 RAX: 85d9e34e33059900 RBX: ffffea0000a3e580 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8d747175 RDI: 00000000ffffffff RBP: ffffc9000ee27518 R08: ffffffff8f7e98b7 R09: 1ffffffff1efd316 R10: dffffc0000000000 R11: fffffbfff1efd317 R12: dffffc0000000000 R13: 1ffffd4000147cb1 R14: ffffea0000a3e598 R15: ffffea0000a3e588 FS: 00007fb24e6286c0(0000) GS:ffff8881261c7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb24e6079c8 CR3: 00000000213d0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: e9 d4 f3 03 00 jmp 0x3f3d9 5: cc int3 6: cc int3 7: cc int3 8: cc int3 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 48 83 f9 40 cmp $0x40,%rcx 1d: 73 44 jae 0x63 1f: 83 f9 08 cmp $0x8,%ecx 22: 73 25 jae 0x49 24: 85 c9 test %ecx,%ecx 26: 74 0f je 0x37 * 28: 8a 06 mov (%rsi),%al <-- trapping instruction 2a: 88 07 mov %al,(%rdi) 2c: 48 ff c7 inc %rdi 2f: 48 ff c6 inc %rsi 32: 48 ff c9 dec %rcx 35: 75 f1 jne 0x28 37: c3 ret 38: cc int3 39: cc int3 3a: cc int3 3b: cc int3 3c: 66 data16 3d: 2e cs