memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5971 'syz-executor421' loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:2949 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2949! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5971 Comm: syz-executor421 Not tainted 6.4.0-rc7-syzkaller-ge40939bbfc68 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x3e0/0x3e4 fs/jfs/jfs_dmap.c:2949 lr : dbFindLeaf+0x3e0/0x3e4 fs/jfs/jfs_dmap.c:2949 sp : ffff8000966b6e30 x29: ffff8000966b6e40 x28: 0000000000000012 x27: dfff800000000000 x26: 00000000ffffffff x25: 0000000000000014 x24: ffff80008e48ab70 x23: 0000000000000011 x22: 0000000000000003 x21: 0000000000000000 x20: ffff0000cac90010 x19: ffff8000966b6ee0 x18: ffff8000966b6460 x17: 0000000000000000 x16: ffff80008a4483a0 x15: 0000000000000001 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ac2c16bf29ff7100 x8 : ac2c16bf29ff7100 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000966b6738 x4 : ffff80008dfcee80 x3 : ffff800082a98004 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x3e0/0x3e4 fs/jfs/jfs_dmap.c:2949 dbAllocDmapLev+0xc4/0x3b8 fs/jfs/jfs_dmap.c:1953 dbAllocCtl+0x104/0x840 fs/jfs/jfs_dmap.c:1809 dbAllocAG+0x208/0xe4c fs/jfs/jfs_dmap.c:1350 dbAlloc+0x520/0xb68 fs/jfs/jfs_dmap.c:874 extBalloc fs/jfs/jfs_extent.c:321 [inline] extAlloc+0x3f0/0xdd0 fs/jfs/jfs_extent.c:122 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x460/0x1790 fs/buffer.c:2064 __block_write_begin fs/buffer.c:2114 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2175 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x278/0x55c mm/filemap.c:3929 __generic_file_write_iter+0x168/0x388 mm/filemap.c:4057 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4089 do_iter_write+0x65c/0xa80 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_pwritev+0x1ec/0x334 fs/read_write.c:1030 __do_sys_pwritev2 fs/read_write.c:1089 [inline] __se_sys_pwritev2 fs/read_write.c:1080 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1080 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: 900479e3 91318063 528170a2 9594eed3 (d4210000) ---[ end trace 0000000000000000 ]---