loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:738 assert(nblocks > 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:738! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6542 Comm: syz-executor.0 Not tainted 6.7.0-rc6-syzkaller-00090-gaafe7ad77b91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbAlloc+0xafc/0xb68 fs/jfs/jfs_dmap.c:738 lr : dbAlloc+0xafc/0xb68 fs/jfs/jfs_dmap.c:738 sp : ffff800096f46fc0 x29: ffff800096f47080 x28: ffff0000df358430 x27: dfff800000000000 x26: 0000000000000007 x25: ffff800096f47160 x24: ffff0000db918000 x23: ffff700012de8e00 x22: ffff0000c60f6600 x21: 0000000000000000 x20: ffff800096f47000 x19: ffff0000c60f6610 x18: 1fffe0003682a5ce x17: ffff80008e4ed000 x16: ffff80008a82b138 x15: 0000000000000001 x14: 1ffff00012de8d50 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 77e9bf3e6409d000 x8 : 77e9bf3e6409d000 x7 : ffff80008028df50 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082b78914 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000030 Call trace: dbAlloc+0xafc/0xb68 fs/jfs/jfs_dmap.c:738 ea_get+0x6f8/0xef0 fs/jfs/xattr.c:514 __jfs_getxattr+0xd4/0x484 fs/jfs/xattr.c:807 jfs_xattr_get+0x50/0x68 fs/jfs/xattr.c:931 __vfs_getxattr+0x394/0x3c0 fs/xattr.c:424 smk_fetch+0xc8/0x150 security/smack/smack_lsm.c:304 smack_d_instantiate+0x594/0x880 security/smack/smack_lsm.c:3573 security_d_instantiate+0x98/0xf0 security/security.c:3799 d_splice_alias+0x70/0x310 fs/dcache.c:3145 jfs_lookup+0x270/0x39c fs/jfs/namei.c:1474 __lookup_slow+0x250/0x374 fs/namei.c:1694 lookup_slow+0x60/0x84 fs/namei.c:1711 walk_component+0x280/0x36c fs/namei.c:2002 lookup_last fs/namei.c:2459 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2483 filename_lookup+0x1d4/0x4e0 fs/namei.c:2512 user_path_at_empty+0x5c/0x84 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xbc/0x258 fs/xattr.c:667 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:684 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Code: d00495c3 911e8063 52805c42 95931e95 (d4210000) ---[ end trace 0000000000000000 ]---