BUG at fs/jfs/jfs_dmap.c:2983 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2983! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4600 Comm: syz.0.41 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:2983 lr : dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:2983 sp : ffff8000216372d0 x29: ffff8000216372e0 x28: 0000000000000158 x27: 00000000ffffffff x26: 0000000000000001 x25: 0000000000000155 x24: 0000000000000555 x23: ffff0000c9c41011 x22: 0000000000000004 x21: ffff0000c9c41000 x20: 0000000000000155 x19: dfff800000000000 x18: ffff800011abbcc0 x17: 1fffe00033edbb7e x16: ffff8000082d22e0 x15: ffff8000150bd000 x14: 0000000000000100 x13: 1ffff00002a180b1 x12: 0000000000080000 x11: 0000000000019609 x10: ffff8000227dc000 x9 : 9ccc1f813a3d9100 x8 : 9ccc1f813a3d9100 x7 : ffff800008251e10 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a845f4c x2 : ffff00019f6ddd10 x1 : 0000000100000000 x0 : 000000000000002b Call trace: dbFindLeaf+0x484/0x488 fs/jfs/jfs_dmap.c:2983 dbFindCtl+0x200/0x464 fs/jfs/jfs_dmap.c:1717 dbAllocAny fs/jfs/jfs_dmap.c:1527 [inline] dbAlloc+0x468/0x9dc fs/jfs/jfs_dmap.c:878 ea_write+0x2a4/0xb40 fs/jfs/xattr.c:232 ea_put fs/jfs/xattr.c:619 [inline] __jfs_setxattr+0xa20/0xfc8 fs/jfs/xattr.c:792 __jfs_xattr_set+0xe0/0x178 fs/jfs/xattr.c:941 jfs_xattr_set+0x58/0x70 fs/jfs/xattr.c:965 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: f0042dc3 91080063 528174e2 959ddcdf (d4210000) ---[ end trace 0000000000000000 ]---