loop2: detected capacity change from 0 to 1024 ------------[ cut here ]------------ kernel BUG at fs/hfsplus/xattr.c:175! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 UID: 0 PID: 7219 Comm: syz.2.169 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] pc : __hfsplus_setxattr+0x20dc/0x2140 fs/hfsplus/xattr.c:331 lr : hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] lr : __hfsplus_setxattr+0x20dc/0x2140 fs/hfsplus/xattr.c:331 sp : ffff8000a1f97520 x29: ffff8000a1f97980 x28: ffff0000ca161000 x27: ffff7000143f2ebc x26: ffff8000a1f976c0 x25: ffff0000ca161038 x24: 0000000000000000 x23: 0000000000010000 x22: 1fffe0001942c207 x21: ffff0000d160ee00 x20: dfff800000000000 x19: ffff0000d160e6f0 x18: ffff8000a1f96f40 x17: 000000000002f56c x16: ffff8000803b2604 x15: 0000000000000001 x14: 1fffe0001a2c1dc0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000003b8d x9 : ffff8000a6e0f000 x8 : 0000000000003b8e x7 : ffff800080d5b8c0 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000812d7868 x2 : 0000000000000000 x1 : 0000000000010000 x0 : 0000000000000000 Call trace: hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] (P) __hfsplus_setxattr+0x20dc/0x2140 fs/hfsplus/xattr.c:331 (P) hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] (L) __hfsplus_setxattr+0x20dc/0x2140 fs/hfsplus/xattr.c:331 (L) hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1847 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_mknod+0x190/0x268 fs/hfsplus/dir.c:498 hfsplus_mkdir+0x38/0x4c fs/hfsplus/dir.c:529 vfs_mkdir+0x27c/0x410 fs/namei.c:4311 do_mkdirat+0x248/0x574 fs/namei.c:4334 __do_sys_mkdirat fs/namei.c:4349 [inline] __se_sys_mkdirat fs/namei.c:4347 [inline] __arm64_sys_mkdirat+0x8c/0xa4 fs/namei.c:4347 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: d4210000 97ceffc5 d4210000 97ceffc3 (d4210000) ---[ end trace 0000000000000000 ]---