memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5926 'syz-executor127' loop0: detected capacity change from 0 to 1024 hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5926 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 Modules linked in: CPU: 0 PID: 5926 Comm: syz-executor127 Not tainted 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 sp : ffff80001e496cb0 x29: ffff80001e496cc0 x28: dfff800000000000 x27: dfff800000000000 x26: ffff0000df6620f8 x25: dfff800000000000 x24: ffff0000d67bd288 x23: 0000000000000000 x22: ffff0000c28cc0e0 x21: ffff0000c28cc000 x20: 0000000000000000 x19: ffff0000d67bd200 x18: ffff80001e496320 x17: 0000000000000000 x16: ffff80001236e294 x15: 0000000000000001 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : b4fd8157f5226c00 x8 : b4fd8157f5226c00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001e4965b8 x4 : ffff800015e4ccc0 x3 : ffff80000aa6162c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 hfsplus_bmap_alloc+0x570/0x638 fs/hfsplus/btree.c:415 hfs_btree_inc_height+0xf8/0xa60 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x288/0x4ac fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa84 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x390/0x14cc fs/hfsplus/extents.c:461 hfsplus_get_block+0x398/0x1168 fs/hfsplus/extents.c:245 __block_write_begin_int+0x3ec/0x1640 fs/buffer.c:2034 __block_write_begin fs/buffer.c:2084 [inline] block_write_begin fs/buffer.c:2145 [inline] cont_write_begin+0x7b8/0xc78 fs/buffer.c:2504 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 generic_perform_write+0x278/0x55c mm/filemap.c:3926 __generic_file_write_iter+0x168/0x388 mm/filemap.c:4054 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 17844 hardirqs last enabled at (17843): [] __up_console_sem+0x60/0xb4 kernel/printk/printk.c:345 hardirqs last disabled at (17844): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (16582): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (16582): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:600 softirqs last disabled at (16549): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5926 Comm: syz-executor127 Tainted: G W 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 sp : ffff80001e496da0 x29: ffff80001e496da0 x28: dfff800000000000 x27: ffff700003c92dcc x26: 1fffe00018519803 x25: 1fffe0001acf7a40 x24: ffff0000c28cc000 x23: dfff800000000000 x22: ffff0000d67bd200 x21: ffff0000d67bd280 x20: 0000000000000000 x19: ffff0000d67bd200 x18: ffff80001e496320 x17: 0000000000000000 x16: ffff80001236e3b8 x15: 0000000000000001 x14: 1ffff00002bae0b0 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c6123680 x7 : ffff8000089c7fdc x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000907e96c x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 hfs_btree_inc_height+0x4fc/0xa60 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x288/0x4ac fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x84/0xa84 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x390/0x14cc fs/hfsplus/extents.c:461 hfsplus_get_block+0x398/0x1168 fs/hfsplus/extents.c:245 __block_write_begin_int+0x3ec/0x1640 fs/buffer.c:2034 __block_write_begin fs/buffer.c:2084 [inline] block_write_begin fs/buffer.c:2145 [inline] cont_write_begin+0x7b8/0xc78 fs/buffer.c:2504 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 generic_perform_write+0x278/0x55c mm/filemap.c:3926 __generic_file_write_iter+0x168/0x388 mm/filemap.c:4054 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: aa1403e0 97e39e5b 17ffffb7 97d1ece4 (d4210000) ---[ end trace 0000000000000000 ]---