reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xddf/0x10a0 mm/page_alloc.c:2725 __folio_put+0x2b5/0x360 mm/swap.c:112 folio_put include/linux/mm.h:1563 [inline] free_large_kmalloc+0x143/0x1e0 mm/slub.c:4781 kfree+0x216/0x430 mm/slub.c:4849 snd_seq_pool_done+0x142/0x220 sound/core/seq/seq_memory.c:506 snd_seq_fifo_delete+0xfd/0x150 sound/core/seq/seq_fifo.c:73 snd_seq_release+0x75/0xc0 sound/core/seq/seq_clientmgr.c:403 __fput+0x3e9/0x9f0 fs/file_table.c:465 task_work_run+0x251/0x310 kernel/task_work.c:227 get_signal+0x15db/0x1730 kernel/signal.c:2807 arch_do_signal_or_restart+0x98/0x810 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x210 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:3433! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 25443 Comm: syz.0.5204 Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:filemap_fault+0x1360/0x13d0 mm/filemap.c:3433 Code: c4 ff 48 8b 3c 24 48 c7 c6 40 0e 54 8c e8 a8 f9 0e 00 90 0f 0b e8 20 e7 c4 ff 48 89 df 48 c7 c6 c0 07 54 8c e8 91 f9 0e 00 90 <0f> 0b e8 09 e7 c4 ff 48 8b 3c 24 48 c7 c6 40 0e 54 8c e8 79 f9 0e RSP: 0018:ffffc90000b47120 EFLAGS: 00010246 RAX: a7d5742a5c6d6800 RBX: ffffea000187d480 RCX: 0000000000000000 RDX: ffffc9000b739000 RSI: ffffffff8e4c7ff1 RDI: ffffffff8ca0e180 RBP: ffffc90000b47258 R08: ffffffff82363556 R09: fffffbfff1d7a960 R10: dffffc0000000000 R11: fffffbfff1d7a960 R12: ffff888148c241f8 R13: 1ffffd400030fa91 R14: dffffc0000000000 R15: ffffea000187d488 FS: 00007f724e12d6c0(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001ffe CR3: 000000005db9c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_fault+0x135/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+0x3f0c/0x61c0 mm/memory.c:5997 __handle_mm_fault mm/memory.c:6140 [inline] handle_mm_fault+0x1030/0x1aa0 mm/memory.c:6309 do_user_addr_fault arch/x86/mm/fault.c:1388 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x2bb/0x920 arch/x86/mm/fault.c:1538 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 c3 cc cc cc cc 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:ffffc90000b47930 EFLAGS: 00050202 RAX: 00007ffffffff001 RBX: 0000200000001ffe RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000200000001ffe RDI: ffff888034cfcd3e RBP: 0000000000000001 R08: ffff888034cfcd3e R09: 1ffff1100699f9a7 R10: dffffc0000000000 R11: ffffed100699f9a8 R12: ffff888034cfcd3e R13: 1ffff1100b4e7287 R14: ffff888034cfcd3e R15: 0000000000000001 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+0x7b/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] snd_rawmidi_kernel_write1+0x390/0x620 sound/core/rawmidi.c:1560 snd_rawmidi_write+0x5f2/0xc00 sound/core/rawmidi.c:1629 do_loop_readv_writev fs/read_write.c:848 [inline] vfs_writev+0x5ba/0xbc0 fs/read_write.c:1057 do_writev+0x1b8/0x360 fs/read_write.c:1101 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f724d38e169 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:00007f724e12d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f724d5b5fa0 RCX: 00007f724d38e169 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000006 RBP: 00007f724d410a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f724d5b5fa0 R15: 00007ffe6856fde8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_fault+0x1360/0x13d0 mm/filemap.c:3433 Code: c4 ff 48 8b 3c 24 48 c7 c6 40 0e 54 8c e8 a8 f9 0e 00 90 0f 0b e8 20 e7 c4 ff 48 89 df 48 c7 c6 c0 07 54 8c e8 91 f9 0e 00 90 <0f> 0b e8 09 e7 c4 ff 48 8b 3c 24 48 c7 c6 40 0e 54 8c e8 79 f9 0e RSP: 0018:ffffc90000b47120 EFLAGS: 00010246 RAX: a7d5742a5c6d6800 RBX: ffffea000187d480 RCX: 0000000000000000 RDX: ffffc9000b739000 RSI: ffffffff8e4c7ff1 RDI: ffffffff8ca0e180 RBP: ffffc90000b47258 R08: ffffffff82363556 R09: fffffbfff1d7a960 R10: dffffc0000000000 R11: fffffbfff1d7a960 R12: ffff888148c241f8 R13: 1ffffd400030fa91 R14: dffffc0000000000 R15: ffffea000187d488 FS: 00007f724e12d6c0(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001ffe CR3: 000000005db9c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 10 c3 adc %al,%bl 2: cc int3 3: cc int3 4: cc int3 5: cc int3 6: cc int3 7: cc int3 8: cc int3 9: cc int3 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: 90 nop 1a: 48 83 f9 40 cmp $0x40,%rcx 1e: 73 44 jae 0x64 20: 83 f9 08 cmp $0x8,%ecx 23: 73 25 jae 0x4a 25: 85 c9 test %ecx,%ecx 27: 74 0f je 0x38 * 29: 8a 06 mov (%rsi),%al <-- trapping instruction 2b: 88 07 mov %al,(%rdi) 2d: 48 ff c7 inc %rdi 30: 48 ff c6 inc %rsi 33: 48 ff c9 dec %rcx 36: 75 f1 jne 0x29 38: c3 ret 39: cc int3 3a: cc int3 3b: cc int3 3c: cc int3 3d: 66 data16 3e: 2e cs