------------[ cut here ]------------ kernel BUG at mm/hugetlb.c:2333! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 UID: 0 PID: 18896 Comm: syz.0.4180 Not tainted 6.14.0-rc2-syzkaller-00185-g128c8f96eb86 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:alloc_hugetlb_folio_reserve+0xac/0xc0 mm/hugetlb.c:2333 Code: a3 d0 00 00 00 e8 e4 43 a2 ff 48 c7 c7 40 56 e1 8d e8 f8 f4 41 09 48 89 e8 5b 5d 41 5c 41 5d c3 cc cc cc cc e8 c5 43 a2 ff 90 <0f> 0b e8 2d 5c 05 00 eb ac 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 RSP: 0018:ffffc9000490f900 EFLAGS: 00010083 RAX: 0000000000001575 RBX: ffffffff9a8d8758 RCX: ffffc9000eaf2000 RDX: 0000000000080000 RSI: ffffffff8217901b RDI: 0000000000000007 RBP: ffffea0008eb0000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 00000000000000c0 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000015 FS: 00007f1c8d7e46c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e805ff8 CR3: 00000000620a6000 CR4: 00000000003526f0 Call Trace: memfd_alloc_folio+0x16c/0x3b0 mm/memfd.c:88 memfd_pin_folios+0xe8c/0x1150 mm/gup.c:3740 udmabuf_pin_folios drivers/dma-buf/udmabuf.c:346 [inline] udmabuf_create+0x641/0x11e0 drivers/dma-buf/udmabuf.c:443 udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:495 [inline] udmabuf_ioctl+0x193/0x310 drivers/dma-buf/udmabuf.c:526 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1c8c98cde9 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:00007f1c8d7e4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1c8cba6160 RCX: 00007f1c8c98cde9 RDX: 0000400000000040 RSI: 0000000040187542 RDI: 0000000000000008 RBP: 00007f1c8ca0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c8cba6160 R15: 00007ffe2e844558 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:alloc_hugetlb_folio_reserve+0xac/0xc0 mm/hugetlb.c:2333 Code: a3 d0 00 00 00 e8 e4 43 a2 ff 48 c7 c7 40 56 e1 8d e8 f8 f4 41 09 48 89 e8 5b 5d 41 5c 41 5d c3 cc cc cc cc e8 c5 43 a2 ff 90 <0f> 0b e8 2d 5c 05 00 eb ac 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 RSP: 0018:ffffc9000490f900 EFLAGS: 00010083 RAX: 0000000000001575 RBX: ffffffff9a8d8758 RCX: ffffc9000eaf2000 RDX: 0000000000080000 RSI: ffffffff8217901b RDI: 0000000000000007 RBP: ffffea0008eb0000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 00000000000000c0 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000015 FS: 00007f1c8d7e46c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e805ff8 CR3: 00000000620a6000 CR4: 00000000003526f0