loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:708 assert(nblocks > 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:708! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3051 Comm: syz-executor418 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbAlloc+0x618/0x694 fs/jfs/jfs_dmap.c:708 lr : dbAlloc+0x618/0x694 fs/jfs/jfs_dmap.c:708 sp : ffff8000129f34f0 x29: ffff8000129f3520 x28: 0000000000000000 x27: ffff0000ca57b8e0 x26: ffff0000c7c75100 x25: 0000000000000000 x24: 0000000000000007 x23: ffff0000ca5795c0 x22: ffff0000c7ccb000 x21: ffff8000129f3600 x20: 0000000000000000 x19: ffff0000ca57b8e0 x18: 00000000000000c0 x17: ffff80000dd0b198 x16: ffff80000db49158 x15: ffff0000c4404f80 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c4404f80 x11: ff808000081c0d5c x10: 0000000000000000 x9 : ef8ada1daf1cc700 x8 : ef8ada1daf1cc700 x7 : ffff80000819545c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff0001fefddcd0 x1 : 0000000100000000 x0 : 0000000000000030 Call trace: dbAlloc+0x618/0x694 fs/jfs/jfs_dmap.c:708 ea_get+0x354/0x548 fs/jfs/xattr.c:514 __jfs_getxattr+0x78/0x28c fs/jfs/xattr.c:807 jfs_xattr_get+0x50/0x68 fs/jfs/xattr.c:931 __vfs_getxattr+0x1fc/0x20c fs/xattr.c:411 smk_fetch+0x78/0xf4 security/smack/smack_lsm.c:295 smack_d_instantiate+0x2c8/0x480 security/smack/smack_lsm.c:3410 security_d_instantiate+0x74/0xa4 security/security.c:2056 d_splice_alias+0x50/0x254 fs/dcache.c:3155 jfs_lookup+0x170/0x1ec fs/jfs/namei.c:1467 __lookup_slow+0x14c/0x204 fs/namei.c:1685 lookup_slow+0x44/0x68 fs/namei.c:1702 walk_component+0x178/0x1b0 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0xc4/0x208 fs/namei.c:2474 filename_lookup+0xf8/0x264 fs/namei.c:2503 user_path_at_empty+0x5c/0x114 fs/namei.c:2876 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0x8c/0x414 fs/xattr.c:637 __do_sys_setxattr fs/xattr.c:658 [inline] __se_sys_setxattr fs/xattr.c:654 [inline] __arm64_sys_setxattr+0x2c/0x40 fs/xattr.c:654 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Code: 91052821 91080c63 52805882 94c99ab3 (d4210000) ---[ end trace 0000000000000000 ]---