syzbot


kernel BUG in __hfsplus_setxattr

Status: upstream: reported C repro on 2022/12/03 06:20
Reported-by: syzbot+b749da48fca936be502a@syzkaller.appspotmail.com
First crash: 533d, last: 443d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in __hfsplus_setxattr hfsplus C 11 454d 540d 0/1 upstream: reported C repro on 2022/11/26 07:08
upstream kernel BUG in __hfsplus_setxattr hfs C error 4846 10m 540d 0/26 upstream: reported C repro on 2022/11/26 08:06
linux-6.1 kernel BUG in __hfsplus_setxattr origin:upstream C 36 20d 411d 0/3 upstream: reported C repro on 2023/04/04 04:32
linux-5.15 kernel BUG in __hfsplus_setxattr origin:upstream C error 45 2d23h 408d 0/3 upstream: reported C repro on 2023/04/06 18:57
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/02 16:01 24m bisect fix linux-4.14.y job log (0) log
2023/01/30 21:02 31m bisect fix linux-4.14.y job log (0) log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/hfsplus/xattr.c:181!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7976 Comm: syz-executor198 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880a9e306c0 task.stack: ffff8880b3188000
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:181 [inline]
RIP: 0010:__hfsplus_setxattr+0x17de/0x1c10 fs/hfsplus/xattr.c:338
RSP: 0018:ffff8880b318f688 EFLAGS: 00010297
RAX: ffff8880a9e306c0 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffff8880b3233a18 R08: ffffffff8ba5e3ac R09: ffff8880b31265c0
R10: ffff8880b3d08970 R11: ffff8880a9e306c0 R12: ffffed10167a112f
R13: ffff8880b50c6480 R14: ffff8880b318f748 R15: ffff8880b3d08940
FS:  0000555556a17300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ed5721000 CR3: 00000000b610e000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:441
 __vfs_setxattr+0xdc/0x130 fs/xattr.c:150
 __vfs_setxattr_noperm+0xfd/0x3d0 fs/xattr.c:181
 __vfs_setxattr_locked+0x14d/0x250 fs/xattr.c:239
 vfs_setxattr+0xcf/0x230 fs/xattr.c:256
 setxattr+0x1a9/0x300 fs/xattr.c:523
 path_setxattr+0x118/0x130 fs/xattr.c:542
 SYSC_lsetxattr fs/xattr.c:564 [inline]
 SyS_lsetxattr+0x33/0x40 fs/xattr.c:560
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f7a66351b09
RSP: 002b:00007ffe6da516c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f7a66351b09
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007f7a66311110 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7a663111a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 34 24 e8 c6 7c aa ff 48 8b 34 24 e9 d8 ed ff ff e8 b8 bb 80 ff 0f 0b 48 8b 7c 24 20 e8 3c 7c aa ff e9 b5 ee ff ff e8 a2 bb 80 ff <0f> 0b e8 9b 7c aa ff 4c 8b 54 24 40 4c 8b 4c 24 28 e9 77 f1 ff 
RIP: hfsplus_create_attributes_file fs/hfsplus/xattr.c:181 [inline] RSP: ffff8880b318f688
RIP: __hfsplus_setxattr+0x17de/0x1c10 fs/hfsplus/xattr.c:338 RSP: ffff8880b318f688
---[ end trace d8120195b118cb25 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/12 19:04 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in __hfsplus_setxattr
2022/12/03 11:22 linux-4.14.y 179ef7fe8677 e080de16 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in __hfsplus_setxattr
2022/12/03 06:20 linux-4.14.y 179ef7fe8677 e080de16 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in __hfsplus_setxattr
* Struck through repros no longer work on HEAD.