syzbot
kernel BUG in __hfsplus_setxattr
Status:
upstream: reported C repro on 2025/07/30 19:34
Bug presence:
origin:lts-only
[Documentation on labels]
Reported-by: syzbot+7c77d64bd43394c8b8eb@syzkaller.appspotmail.com
First crash: 361d, last: 342d
▶
▼
Fix bisection attempts (1)
| Created |
Duration |
User |
Patch |
Repo |
Result |
| 2025/08/21 21:17 |
6h04m
|
fix candidate
|
|
upstream |
OK
(1)
job log
|
Sample crash report:
syz.0.16[5940]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: 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: 5940 Comm: syz.0.16 Not tainted 6.6.100-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1edd/0x1ef0 fs/hfsplus/xattr.c:331
Code: a8 87 ff e9 96 fb ff ff e8 70 62 30 ff 4c 89 e7 48 c7 c6 20 c0 c0 8a e8 81 23 70 ff 0f 0b e8 5a 62 30 ff 0f 0b e8 53 62 30 ff <0f> 0b e8 4c 62 30 ff e9 fa f4 ff ff 0f 1f 80 00 00 00 00 41 56 53
RSP: 0018:ffffc900033175a0 EFLAGS: 00010293
RAX: ffffffff8255332d RBX: ffff888076ede000 RCX: ffff88807c559e00
RDX: 0000000000000000 RSI: 0000000000010000 RDI: 0000000000000000
RBP: ffffc90003317a38 R08: ffff8880311aaacb R09: 1ffff11006235559
R10: dffffc0000000000 R11: ffffed100623555a R12: ffff8880311aaa30
R13: 1ffff92000662ecc R14: 0000000000010000 R15: dffffc0000000000
FS: 000055559313d500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2bf5ffff CR3: 0000000075a5e000 CR4: 00000000003506f0
Call Trace:
<TASK>
hfsplus_setxattr+0x11e/0x170 fs/hfsplus/xattr.c:434
hfsplus_security_setxattr+0x40/0x50 fs/hfsplus/xattr_security.c:31
__vfs_setxattr+0x431/0x470 fs/xattr.c:201
__vfs_setxattr_noperm+0x12d/0x5e0 fs/xattr.c:235
vfs_setxattr+0x16c/0x2f0 fs/xattr.c:322
do_setxattr fs/xattr.c:630 [inline]
path_setxattr+0x362/0x550 fs/xattr.c:659
__do_sys_setxattr fs/xattr.c:677 [inline]
__se_sys_setxattr fs/xattr.c:673 [inline]
__x64_sys_setxattr+0xbb/0xd0 fs/xattr.c:673
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f419898e9a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd2a78f558 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f4198bb5fa0 RCX: 00007f419898e9a9
RDX: 0000000000000000 RSI: 0000200000000300 RDI: 00002000000002c0
RBP: 00007f4198a10d69 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4198bb5fa0 R14: 00007f4198bb5fa0 R15: 0000000000000005
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1edd/0x1ef0 fs/hfsplus/xattr.c:331
Code: a8 87 ff e9 96 fb ff ff e8 70 62 30 ff 4c 89 e7 48 c7 c6 20 c0 c0 8a e8 81 23 70 ff 0f 0b e8 5a 62 30 ff 0f 0b e8 53 62 30 ff <0f> 0b e8 4c 62 30 ff e9 fa f4 ff ff 0f 1f 80 00 00 00 00 41 56 53
RSP: 0018:ffffc900033175a0 EFLAGS: 00010293
RAX: ffffffff8255332d RBX: ffff888076ede000 RCX: ffff88807c559e00
RDX: 0000000000000000 RSI: 0000000000010000 RDI: 0000000000000000
RBP: ffffc90003317a38 R08: ffff8880311aaacb R09: 1ffff11006235559
R10: dffffc0000000000 R11: ffffed100623555a R12: ffff8880311aaa30
R13: 1ffff92000662ecc R14: 0000000000010000 R15: dffffc0000000000
FS: 000055559313d500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2bf5ffff CR3: 0000000075a5e000 CR4: 00000000003506f0
* Struck through repros no longer work on HEAD.