------------[ cut here ]------------ kernel BUG at mm/page_alloc.c:1101! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15481 Comm: syz-executor.1 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:ffffc90004bcf510 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000009 RCX: ffffc9000a162000 RDX: 0000000000040000 RSI: ffffffff81d1ae65 RDI: 0000000000000000 RBP: ffffea0002578008 R08: 0000000000000000 R09: fffffbfff1d9c252 R10: ffffffff8ece1297 R11: 0000000000000a16 R12: 0000000000095e00 R13: 0000000000000009 R14: ffffea0002578040 R15: ffffea0002578000 FS: 00007f61287e86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f691dcffac5 CR3: 000000002011f000 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 release_pages+0x51b/0x14e0 mm/swap.c:1008 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] remove_inode_hugepages+0xb7b/0xe20 fs/hugetlbfs/inode.c:691 hugetlbfs_punch_hole fs/hugetlbfs/inode.c:805 [inline] hugetlbfs_fallocate+0xc7f/0xfd0 fs/hugetlbfs/inode.c:831 vfs_fallocate+0x46c/0xe80 fs/open.c:324 madvise_remove mm/madvise.c:1011 [inline] madvise_vma_behavior+0x1d63/0x1e60 mm/madvise.c:1035 madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270 do_madvise+0x333/0x660 mm/madvise.c:1450 __do_sys_madvise mm/madvise.c:1463 [inline] __se_sys_madvise mm/madvise.c:1461 [inline] __x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461 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:0x7f6127a7cae9 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:00007f61287e80c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f6127b9bf80 RCX: 00007f6127a7cae9 RDX: 0000000000000009 RSI: 0000000000f01200 RDI: 000000002012f000 RBP: 00007f6127ac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6127b9bf80 R15: 00007fff340b4f18 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:ffffc90004bcf510 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000009 RCX: ffffc9000a162000 RDX: 0000000000040000 RSI: ffffffff81d1ae65 RDI: 0000000000000000 RBP: ffffea0002578008 R08: 0000000000000000 R09: fffffbfff1d9c252 R10: ffffffff8ece1297 R11: 0000000000000a16 R12: 0000000000095e00 R13: 0000000000000009 R14: ffffea0002578040 R15: ffffea0002578000 FS: 00007f61287e86c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f21000 CR3: 000000002011f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400