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: 29d, last: 11d
Fix commit to backport (bisect log) :
tree: upstream
commit c7c6363ca186747ebc2df10c8a1a51e66e0e32d9
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Tue Jul 15 05:17:56 2025 +0000

  hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()

  
Bug presence (2)
Date Name Commit Repro Result
2025/07/31 linux-6.6.y (ToT) dbcb8d8e4163 C [report] kernel BUG in __hfsplus_setxattr
2025/07/31 upstream (ToT) 260f6f4fda93 C Didn't crash
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in __hfsplus_setxattr hfsplus -1 C 11 921d 1007d 0/1 upstream: reported C repro on 2022/11/26 07:08
upstream kernel BUG in __hfsplus_setxattr hfs -1 C error 18903 18d 1007d 28/29 upstream: reported C repro on 2022/11/26 08:06
linux-6.1 kernel BUG in __hfsplus_setxattr -1 C error 112 2d00h 878d 0/3 upstream: reported C repro on 2023/04/04 04:32
linux-4.14 kernel BUG in __hfsplus_setxattr -1 C 3 911d 1000d 0/1 upstream: reported C repro on 2022/12/03 06:20
linux-5.15 kernel BUG in __hfsplus_setxattr origin:upstream -1 C error 204 1d19h 875d 0/3 upstream: reported C repro on 2023/04/06 18:57
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

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/30 20:06 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/18 16:33 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/07 18:30 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/07 18:30 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/03 19:28 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/03 12:07 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/03 12:07 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/01 19:06 linux-6.6.y 3a8ababb8b6a 40127d41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/08/01 19:05 linux-6.6.y 3a8ababb8b6a 40127d41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/07/30 19:38 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
2025/07/30 19:33 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __hfsplus_setxattr
* Struck through repros no longer work on HEAD.