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: 3065 Comm: syz-executor189 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 : ffff800012a8b670 x29: ffff800012a8b6a0 x28: 0000000000000000 x27: ffff0000ca51b8e0 x26: ffff0000cb800900 x25: 0000000000000000 x24: 0000000000000027 x23: ffff0000ca5195c0 x22: ffff0000c7e16000 x21: ffff800012a8b780 x20: 0000000000000000 x19: ffff0000ca51b8e0 x18: 00000000000000c0 x17: ffff80000dd0b198 x16: ffff80000db49158 x15: ffff0000c6864f80 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c6864f80 x11: ff808000081c0d5c x10: 0000000000000000 x9 : 0c10f06bd9079100 x8 : 0c10f06bd9079100 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_open fs/namei.c:3391 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x738/0x11c4 fs/namei.c:3688 do_filp_open+0xdc/0x1b8 fs/namei.c:3718 do_sys_openat2+0xb8/0x22c fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __arm64_sys_openat+0xb0/0xe0 fs/open.c:1340 __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: 9104a821 91078c63 52805882 94c99ab3 (d4210000) ---[ end trace 0000000000000000 ]---