------------[ cut here ]------------ kernel BUG at fs/hfsplus/xattr.c:175! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4997 Comm: syz-executor374 Not tainted 6.4.0-syzkaller-00082-gc0a572d9d32f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] RIP: 0010:__hfsplus_setxattr+0x1b32/0x1e70 fs/hfsplus/xattr.c:331 Code: 89 ef e8 71 75 85 ff e9 b9 f2 ff ff e8 27 76 85 ff e9 76 f2 ff ff 48 8b 7c 24 28 e8 58 75 85 ff e9 c9 f2 ff ff e8 9e 99 33 ff <0f> 0b 48 8b 7c 24 38 e8 62 75 85 ff e9 b4 ee ff ff e8 88 99 33 ff RSP: 0018:ffffc900033af540 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88801738c000 RCX: 0000000000000000 RDX: ffff88807af4e140 RSI: ffffffff824fd2d2 RDI: 0000000000000007 RBP: ffff88802c00afb0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000005 R12: 0000000000000000 R13: ffffc900033af608 R14: ffff88801a27a000 R15: ffff88802c00af40 FS: 00005555564c1300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe757af0cf0 CR3: 00000000751f8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_setxattr+0xce/0x120 fs/hfsplus/xattr.c:434 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:201 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:235 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:296 vfs_setxattr+0x143/0x340 fs/xattr.c:322 do_setxattr+0x147/0x190 fs/xattr.c:630 setxattr+0x146/0x160 fs/xattr.c:653 path_setxattr+0x197/0x1c0 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:691 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:0x7fe757b18b09 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd4cba2f08 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fe757b18b09 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fe757ad8110 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe757ad81a0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline] RIP: 0010:__hfsplus_setxattr+0x1b32/0x1e70 fs/hfsplus/xattr.c:331 Code: 89 ef e8 71 75 85 ff e9 b9 f2 ff ff e8 27 76 85 ff e9 76 f2 ff ff 48 8b 7c 24 28 e8 58 75 85 ff e9 c9 f2 ff ff e8 9e 99 33 ff <0f> 0b 48 8b 7c 24 38 e8 62 75 85 ff e9 b4 ee ff ff e8 88 99 33 ff RSP: 0018:ffffc900033af540 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88801738c000 RCX: 0000000000000000 RDX: ffff88807af4e140 RSI: ffffffff824fd2d2 RDI: 0000000000000007 RBP: ffff88802c00afb0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000005 R12: 0000000000000000 R13: ffffc900033af608 R14: ffff88801a27a000 R15: ffff88802c00af40 FS: 00005555564c1300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055739ecf53b8 CR3: 00000000751f8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400