syzbot


kernel BUG in __hfsplus_setxattr

Status: upstream: reported C repro on 2022/11/26 07:08
Subsystems: hfsplus
[Documentation on labels]
Reported-by: syzbot+22d078493861f756caf1@syzkaller.appspotmail.com
First crash: 726d, last: 640d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __hfsplus_setxattr hfs C error 10204 7m 726d 0/28 upstream: reported C repro on 2022/11/26 08:06
linux-6.1 kernel BUG in __hfsplus_setxattr origin:upstream C error 48 1d18h 597d 0/3 upstream: reported C repro on 2023/04/04 04:32
linux-4.14 kernel BUG in __hfsplus_setxattr C 3 629d 719d 0/1 upstream: reported C repro on 2022/12/03 06:20
linux-5.15 kernel BUG in __hfsplus_setxattr origin:upstream C error 76 2d10h 594d 0/3 upstream: reported C repro on 2023/04/06 18:57

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/hfsplus/xattr.c:175!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8107 Comm: syz-executor308 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
RSP: 0018:ffff888095a47608 EFLAGS: 00010293
RAX: ffff8880a5f584c0 RBX: ffff88809567c240 RCX: ffffffff81fce5f0
RDX: 0000000000000000 RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff8880b276ba18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880afc16940 R14: ffff888095a476c0 R15: ffff8880b2fe6000
FS:  00005555569a1300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff02ecdf40 CR3: 00000000a9cfb000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:435
 __vfs_setxattr+0x10e/0x170 fs/xattr.c:149
 __vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
 __vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
 vfs_setxattr+0xe5/0x270 fs/xattr.c:255
 setxattr+0x23d/0x330 fs/xattr.c:520
 path_setxattr+0x170/0x190 fs/xattr.c:539
 __do_sys_lsetxattr fs/xattr.c:561 [inline]
 __se_sys_lsetxattr fs/xattr.c:557 [inline]
 __x64_sys_lsetxattr+0xbd/0x150 fs/xattr.c:557
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f971028cb09
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:00007ffe1877de28 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f971028cb09
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007f971024c110 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f971024c1a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace a22fdf51a7ba2992 ]---
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
RSP: 0018:ffff888095a47608 EFLAGS: 00010293
RAX: ffff8880a5f584c0 RBX: ffff88809567c240 RCX: ffffffff81fce5f0
RDX: 0000000000000000 RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff8880b276ba18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880afc16940 R14: ffff888095a476c0 R15: ffff8880b2fe6000
FS:  00005555569a1300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff02ecdf40 CR3: 00000000a9cfb000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/07 02:27 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2022/11/26 11:52 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2022/11/26 07:20 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/02/20 06:45 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/01/31 11:42 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/01/28 13:38 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/01/26 13:49 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/01/24 01:36 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2023/01/16 09:09 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2022/12/02 17:46 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
2022/11/26 07:07 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __hfsplus_setxattr
* Struck through repros no longer work on HEAD.