pin_user_pages_fast+0xa8/0xf0 mm/gup.c:3309 iov_iter_extract_user_pages lib/iov_iter.c:1782 [inline] iov_iter_extract_pages+0x29b/0x1870 lib/iov_iter.c:1845 __bio_iov_iter_get_pages block/bio.c:1255 [inline] bio_iov_iter_get_pages+0x37b/0xe80 block/bio.c:1333 __blkdev_direct_IO block/fops.c:210 [inline] blkdev_direct_IO.part.0+0xe4a/0x1830 block/fops.c:379 page_owner free stack trace missing ------------[ cut here ]------------ kernel BUG at mm/page_alloc.c:1101! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5236 Comm: syz-executor.2 Not tainted 6.5.0-rc7-next-20230825-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:free_pages_prepare mm/page_alloc.c:1101 [inline] RIP: 0010:free_unref_page_prepare+0x885/0xa40 mm/page_alloc.c:2342 Code: 48 89 d7 e8 2d 32 f4 ff 0f 0b c7 44 24 08 00 00 00 00 4d 8d 77 40 e9 79 fd ff ff 48 c7 c6 c0 be 99 8a 4c 89 ff e8 0b 32 f4 ff <0f> 0b 48 89 ef e8 61 de 0b 00 e9 aa f7 ff ff 4c 89 f7 e8 54 de 0b RSP: 0018:ffffc90004aa6d18 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000009 RCX: ffffc9000b60b000 RDX: 0000000000040000 RSI: ffffffff81d1ae65 RDI: 0000000000000000 RBP: ffffea00022e8008 R08: 0000000000000000 R09: fffffbfff1d9c252 R10: ffffffff8ece1297 R11: 00000000000006b7 R12: 000000000008ba00 R13: 0000000000000009 R14: ffffea00022e8040 R15: ffffea00022e8000 FS: 00007f34f1c716c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd96203e78 CR3: 000000002a7d7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_unref_page+0x33/0x3b0 mm/page_alloc.c:2435 __update_and_free_hugetlb_folio+0x3c1/0x4a0 mm/hugetlb.c:1770 update_and_free_hugetlb_folio+0x82/0x120 mm/hugetlb.c:1826 free_huge_folio+0x6e0/0xbb0 mm/hugetlb.c:1922 alloc_surplus_hugetlb_folio+0x277/0x300 mm/hugetlb.c:2405 alloc_buddy_hugetlb_folio_with_mpol mm/hugetlb.c:2466 [inline] alloc_hugetlb_folio+0x866/0x1230 mm/hugetlb.c:3085 hugetlb_no_page mm/hugetlb.c:5877 [inline] hugetlb_fault+0x1b98/0x2170 mm/hugetlb.c:6105 handle_mm_fault+0x907/0xa00 mm/memory.c:5285 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x4b3/0x1410 mm/gup.c:1239 __get_user_pages_locked mm/gup.c:1504 [inline] __gup_longterm_locked+0x755/0x2570 mm/gup.c:2198 internal_get_user_pages_fast+0x1cd6/0x2ce0 mm/gup.c:3203 pin_user_pages_fast+0xa8/0xf0 mm/gup.c:3309 iov_iter_extract_user_pages lib/iov_iter.c:1782 [inline] iov_iter_extract_pages+0x29b/0x1870 lib/iov_iter.c:1845 __bio_iov_iter_get_pages block/bio.c:1255 [inline] bio_iov_iter_get_pages+0x37b/0xe80 block/bio.c:1333 __blkdev_direct_IO block/fops.c:210 [inline] blkdev_direct_IO.part.0+0xe4a/0x1830 block/fops.c:379 blkdev_direct_IO block/fops.c:370 [inline] blkdev_read_iter+0x29d/0x510 block/fops.c:724 call_read_iter include/linux/fs.h:1979 [inline] aio_read+0x318/0x4e0 fs/aio.c:1551 __io_submit_one fs/aio.c:1952 [inline] io_submit_one+0x148c/0x1df0 fs/aio.c:2001 __do_sys_io_submit fs/aio.c:2060 [inline] __se_sys_io_submit fs/aio.c:2030 [inline] __x64_sys_io_submit+0x1c3/0x350 fs/aio.c:2030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f34f0e7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f34f1c710c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f34f0f9c050 RCX: 00007f34f0e7cae9 RDX: 00000000200000c0 RSI: 00000000000000ca RDI: 00007f34f1c72000 RBP: 00007f34f0ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f34f0f9c050 R15: 00007ffd69da9ab8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:free_pages_prepare mm/page_alloc.c:1101 [inline] RIP: 0010:free_unref_page_prepare+0x885/0xa40 mm/page_alloc.c:2342 Code: 48 89 d7 e8 2d 32 f4 ff 0f 0b c7 44 24 08 00 00 00 00 4d 8d 77 40 e9 79 fd ff ff 48 c7 c6 c0 be 99 8a 4c 89 ff e8 0b 32 f4 ff <0f> 0b 48 89 ef e8 61 de 0b 00 e9 aa f7 ff ff 4c 89 f7 e8 54 de 0b RSP: 0018:ffffc90004aa6d18 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000009 RCX: ffffc9000b60b000 RDX: 0000000000040000 RSI: ffffffff81d1ae65 RDI: 0000000000000000 RBP: ffffea00022e8008 R08: 0000000000000000 R09: fffffbfff1d9c252 R10: ffffffff8ece1297 R11: 00000000000006b7 R12: 000000000008ba00 R13: 0000000000000009 R14: ffffea00022e8040 R15: ffffea00022e8000 FS: 00007f34f1c716c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30727000 CR3: 000000002a7d7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400