__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4148 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_noprof+0x1cb/0x3b0 mm/slub.c:4204 getname_flags.part.0+0x4c/0x550 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:322 do_readlinkat+0xb4/0x3a0 fs/stat.c:575 __do_sys_readlink fs/stat.c:613 [inline] __se_sys_readlink fs/stat.c:610 [inline] __x64_sys_readlink+0x78/0xc0 fs/stat.c:610 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:3442! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 10604 Comm: syz.2.1234 Not tainted 6.16.0-rc4-syzkaller-00123-g4c06e63b9203 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:filemap_fault+0x1847/0x26c0 mm/filemap.c:3442 Code: 00 e9 d2 ec ff ff 48 8b 7c 24 28 e8 63 38 2e 00 e9 79 f3 ff ff e8 89 5c c7 ff 48 c7 c6 20 23 b9 8b 48 89 df e8 0a a0 10 00 90 <0f> 0b e8 72 5c c7 ff 48 c7 c6 20 19 b9 8b 48 89 df e8 f3 9f 10 00 RSP: 0018:ffffc90003cbf5a8 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffffea0001cbf180 RCX: ffffc9000cce4000 RDX: 0000000000080000 RSI: ffffffff81f4c426 RDI: ffff888027972884 RBP: ffffc90003cbf7d8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888148e6b678 R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f1c37fc56c0(0000) GS:ffff888124717000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001df0 CR3: 00000000359d0000 CR4: 00000000003526f0 Call Trace: __do_fault+0x10d/0x490 mm/memory.c:5169 do_read_fault mm/memory.c:5590 [inline] do_fault mm/memory.c:5724 [inline] do_pte_missing mm/memory.c:4251 [inline] handle_pte_fault mm/memory.c:6069 [inline] __handle_mm_fault+0x3c2a/0x5490 mm/memory.c:6212 handle_mm_fault+0x589/0xd10 mm/memory.c:6381 do_user_addr_fault+0x7a6/0x1370 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x5c/0xb0 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 c3 cc cc cc cc 0f 1f 40 00 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 e9 fd 10 04 00 66 66 RSP: 0018:ffffc90003cbfa78 EFLAGS: 00050202 RAX: 0000000000000001 RBX: 0000200000001df0 RCX: 0000000000000001 RDX: ffffed100ed83567 RSI: 0000200000001df0 RDI: ffff888076c1ab30 RBP: 0000000000000001 R08: 0000000000000001 R09: ffffed100ed83566 R10: ffff888076c1ab30 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888076c1ab30 R14: dffffc0000000000 R15: 0000200000001df0 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+0x98/0xd0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] snd_rawmidi_kernel_write1+0x50a/0x8a0 sound/core/rawmidi.c:1560 snd_rawmidi_write+0x26e/0xc10 sound/core/rawmidi.c:1629 do_loop_readv_writev fs/read_write.c:850 [inline] do_loop_readv_writev fs/read_write.c:835 [inline] vfs_writev+0x5dc/0xde0 fs/read_write.c:1059 do_writev+0x28c/0x340 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c3718e929 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:00007f1c37fc5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f1c373b5fa0 RCX: 00007f1c3718e929 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007f1c37210b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c373b5fa0 R15: 00007ffd8b31f2d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_fault+0x1847/0x26c0 mm/filemap.c:3442 Code: 00 e9 d2 ec ff ff 48 8b 7c 24 28 e8 63 38 2e 00 e9 79 f3 ff ff e8 89 5c c7 ff 48 c7 c6 20 23 b9 8b 48 89 df e8 0a a0 10 00 90 <0f> 0b e8 72 5c c7 ff 48 c7 c6 20 19 b9 8b 48 89 df e8 f3 9f 10 00 RSP: 0018:ffffc90003cbf5a8 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffffea0001cbf180 RCX: ffffc9000cce4000 RDX: 0000000000080000 RSI: ffffffff81f4c426 RDI: ffff888027972884 RBP: ffffc90003cbf7d8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888148e6b678 R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f1c37fc56c0(0000) GS:ffff888124717000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001df0 CR3: 00000000359d0000 CR4: 00000000003526f0 ---------------- 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: 0f 1f 40 00 nopl 0x0(%rax) 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: e9 fd 10 04 00 jmp 0x4113a 3d: 66 data16 3e: 66 data16