populate_vma_page_range+0x267/0x3f0 mm/gup.c:1880 __mm_populate+0x1d8/0x380 mm/gup.c:1983 mm_populate include/linux/mm.h:3367 [inline] vm_mmap_pgoff+0x37f/0x470 mm/util.c:585 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:604 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:867! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 8123 Comm: syz.3.512 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 78 c8 ff 48 c7 c6 e0 23 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 15 78 c8 ff 48 c7 c6 40 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 fe 77 c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 f0 77 c8 ff 48 RSP: 0018:ffffc90005187260 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000ceec000 RDX: 0000000000080000 RSI: ffffffff81f313fa RDI: ffff88807cdca884 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90ab4c97 R11: 0000000000000000 R12: 0000000000000002 R13: ffffea0000c6d680 R14: 0000000000000000 R15: 00000000000003d8 FS: 00007f34263e26c0(0000) GS:ffff8881246b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5a0ad5e588 CR3: 00000000771ed000 CR4: 00000000003526f0 Call Trace: filemap_add_folio+0x10e/0x220 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x5a7/0xd70 mm/readahead.c:506 do_sync_mmap_readahead mm/filemap.c:3304 [inline] filemap_fault+0x152e/0x2930 mm/filemap.c:3445 __do_fault+0x10d/0x490 mm/memory.c:5152 do_read_fault mm/memory.c:5573 [inline] do_fault mm/memory.c:5707 [inline] do_pte_missing+0xf50/0x3ba0 mm/memory.c:4234 handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x152a/0x2a50 mm/memory.c:6195 handle_mm_fault+0x589/0xd10 mm/memory.c:6364 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+0x30/0x90 arch/x86/lib/copy_user_64.S:60 Code: 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 66 2e 0f 1f 84 00 00 00 00 00 66 90 <48> 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 RSP: 0018:ffffc90005187a58 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 00002000003db000 RCX: 0000000000000038 RDX: fffff52000a30f5c RSI: 00002000003db000 RDI: ffffc90005187aa8 RBP: 0000000000000038 R08: 0000000000000001 R09: fffff52000a30f5b R10: ffffc90005187adf R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90005187aa8 R14: ffffc90005187b90 R15: ffffc90005187aa8 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] copy_msghdr_from_user+0x98/0x160 net/socket.c:2544 recvmsg_copy_msghdr net/socket.c:2800 [inline] ___sys_recvmsg+0xdb/0x1a0 net/socket.c:2872 do_recvmmsg+0x2fe/0x750 net/socket.c:2971 __sys_recvmmsg net/socket.c:3045 [inline] __do_sys_recvmmsg net/socket.c:3068 [inline] __se_sys_recvmmsg net/socket.c:3061 [inline] __x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3061 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:0x7f342558ebe9 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:00007f34263e2038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f34257b5fa0 RCX: 00007f342558ebe9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000005 RBP: 00007f3425611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f34257b6038 R14: 00007f34257b5fa0 R15: 00007ffd99dde768 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 78 c8 ff 48 c7 c6 e0 23 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 15 78 c8 ff 48 c7 c6 40 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 fe 77 c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 f0 77 c8 ff 48 RSP: 0018:ffffc90005187260 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000ceec000 RDX: 0000000000080000 RSI: ffffffff81f313fa RDI: ffff88807cdca884 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90ab4c97 R11: 0000000000000000 R12: 0000000000000002 R13: ffffea0000c6d680 R14: 0000000000000000 R15: 00000000000003d8 FS: 00007f34263e26c0(0000) GS:ffff8881246b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b320faff8 CR3: 00000000771ed000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 83 f9 08 cmp $0x8,%ecx 3: 73 25 jae 0x2a 5: 85 c9 test %ecx,%ecx 7: 74 0f je 0x18 9: 8a 06 mov (%rsi),%al b: 88 07 mov %al,(%rdi) d: 48 ff c7 inc %rdi 10: 48 ff c6 inc %rsi 13: 48 ff c9 dec %rcx 16: 75 f1 jne 0x9 18: c3 ret 19: cc int3 1a: cc int3 1b: cc int3 1c: cc int3 1d: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 24: 00 00 00 00 28: 66 90 xchg %ax,%ax * 2a: 48 8b 06 mov (%rsi),%rax <-- trapping instruction 2d: 48 89 07 mov %rax,(%rdi) 30: 48 83 c6 08 add $0x8,%rsi 34: 48 83 c7 08 add $0x8,%rdi 38: 83 e9 08 sub $0x8,%ecx 3b: 74 db je 0x18 3d: 83 f9 08 cmp $0x8,%ecx