loop1: detected capacity change from 0 to 1024 ------------[ cut here ]------------ kernel BUG at fs/hfsplus/xattr.c:175! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9840 Comm: syz-executor.1 Not tainted 6.1.0-rc7-syzkaller-00200-gc2bf05db6c78 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] RIP: 0010:__hfsplus_setxattr+0x1c22/0x1ea0 fs/hfsplus/xattr.c:331 Code: 89 34 24 e8 50 82 87 ff 48 8b 34 24 e9 26 eb ff ff e8 42 82 87 ff e9 fb ea ff ff e8 38 82 87 ff e9 a3 ea ff ff e8 6e 6a 3b ff <0f> 0b 48 8b 7c 24 48 e8 a2 82 87 ff e9 b7 fe ff ff e8 18 82 87 ff RSP: 0018:ffffc90000947620 EFLAGS: 00010216 RAX: 0000000000002e25 RBX: ffff88801b2a8800 RCX: ffffc90003621000 RDX: 0000000000040000 RSI: ffffffff8243d272 RDI: 0000000000000007 RBP: ffff888015e8d8b0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000001 R12: 0000000000010000 R13: ffff888021b94800 R14: ffffc900009476e8 R15: ffff888015e8d840 FS: 00007f735a82f700(0000) GS:ffff88802c600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f735a830000 CR3: 0000000079425000 CR4: 0000000000150ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_setxattr+0xd2/0x110 fs/hfsplus/xattr.c:434 __vfs_setxattr+0x119/0x180 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:216 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:277 vfs_setxattr+0x143/0x340 fs/xattr.c:309 setxattr+0x146/0x160 fs/xattr.c:617 __do_sys_fsetxattr fs/xattr.c:673 [inline] __se_sys_fsetxattr fs/xattr.c:662 [inline] __x64_sys_fsetxattr+0x245/0x300 fs/xattr.c:662 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7359a8c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f735a82f168 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f7359babf80 RCX: 00007f7359a8c0d9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f7359ae7ae9 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeace3711f R14: 00007f735a82f300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] RIP: 0010:__hfsplus_setxattr+0x1c22/0x1ea0 fs/hfsplus/xattr.c:331 Code: 89 34 24 e8 50 82 87 ff 48 8b 34 24 e9 26 eb ff ff e8 42 82 87 ff e9 fb ea ff ff e8 38 82 87 ff e9 a3 ea ff ff e8 6e 6a 3b ff <0f> 0b 48 8b 7c 24 48 e8 a2 82 87 ff e9 b7 fe ff ff e8 18 82 87 ff RSP: 0018:ffffc90000947620 EFLAGS: 00010216 RAX: 0000000000002e25 RBX: ffff88801b2a8800 RCX: ffffc90003621000 RDX: 0000000000040000 RSI: ffffffff8243d272 RDI: 0000000000000007 RBP: ffff888015e8d8b0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000001 R12: 0000000000010000 R13: ffff888021b94800 R14: ffffc900009476e8 R15: ffff888015e8d840 FS: 00007f735a82f700(0000) GS:ffff88802c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd79ddbe68 CR3: 0000000079425000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400