syzbot


kernel BUG in __hfsplus_setxattr

Status: upstream: reported C repro on 2022/11/26 08:06
Subsystems: hfs (incorrect?)
Reported-by: syzbot+1107451c16b9eb9d29e6@syzkaller.appspotmail.com
First crash: 124d, last: 49m

Cause bisection: failed (error log, bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in __hfsplus_setxattr hfsplus C 11 38d 124d 0/1 upstream: reported C repro on 2022/11/26 07:08
linux-4.14 kernel BUG in __hfsplus_setxattr C 3 28d 117d 0/1 upstream: reported C repro on 2022/12/03 06:20

Sample crash report:
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: 5062 Comm: syz-executor162 Not tainted 6.2.0-rc1-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+0x1c22/0x1ea0 fs/hfsplus/xattr.c:331
Code: 89 34 24 e8 90 6d 86 ff 48 8b 34 24 e9 26 eb ff ff e8 82 6d 86 ff e9 fb ea ff ff e8 78 6d 86 ff e9 a3 ea ff ff e8 be 65 38 ff <0f> 0b 48 8b 7c 24 48 e8 e2 6d 86 ff e9 b7 fe ff ff e8 58 6d 86 ff
RSP: 0018:ffffc90003a8f540 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88802918c000 RCX: 0000000000000000
RDX: ffff888023f23a80 RSI: ffffffff8248ec82 RDI: 0000000000000007
RBP: ffff88802b03a370 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000010000 R11: 1ffffffff214baba R12: 0000000000010000
R13: ffff888029e31800 R14: ffffc90003a8f608 R15: ffff88802b03a300
FS:  000055555675a300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 00000000755dc000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 hfsplus_setxattr+0xd2/0x110 fs/hfsplus/xattr.c:434
 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:202
 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:236
 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:297
 vfs_setxattr+0x143/0x340 fs/xattr.c:323
 do_setxattr+0x151/0x190 fs/xattr.c:608
 setxattr+0x146/0x160 fs/xattr.c:631
 path_setxattr+0x197/0x1c0 fs/xattr.c:650
 __do_sys_lsetxattr fs/xattr.c:673 [inline]
 __se_sys_lsetxattr fs/xattr.c:669 [inline]
 __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:669
 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:0x7f4e09145ae9
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:00007ffd05bd1cd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f4e09145ae9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007f4e091050f0 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4e09105180
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1c22/0x1ea0 fs/hfsplus/xattr.c:331
Code: 89 34 24 e8 90 6d 86 ff 48 8b 34 24 e9 26 eb ff ff e8 82 6d 86 ff e9 fb ea ff ff e8 78 6d 86 ff e9 a3 ea ff ff e8 be 65 38 ff <0f> 0b 48 8b 7c 24 48 e8 e2 6d 86 ff e9 b7 fe ff ff e8 58 6d 86 ff
RSP: 0018:ffffc90003a8f540 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88802918c000 RCX: 0000000000000000
RDX: ffff888023f23a80 RSI: ffffffff8248ec82 RDI: 0000000000000007
RBP: ffff88802b03a370 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000010000 R11: 1ffffffff214baba R12: 0000000000010000
R13: ffff888029e31800 R14: ffffc90003a8f608 R15: ffff88802b03a300
FS:  000055555675a300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 00000000755dc000 CR4: 0000000000350ef0

Crashes (288):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/12/29 08:10 upstream 1b929c02afd3 44712fbc .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-root 2022/12/11 19:52 upstream 4cee37b3a4e6 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-root 2022/12/11 05:30 upstream 296a7b7eb792 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/11/26 07:40 upstream 0b1dcc2cf55a 74a66371 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/30 22:20 upstream 8bb95a1662f8 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/30 16:15 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/28 08:37 upstream 3a93e40326c8 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/27 13:02 upstream 197b6b60ae7b f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/26 06:01 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/26 04:43 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/25 12:29 upstream 65aca32efdcb fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/25 02:35 upstream 1e760fa3596e 9700afae .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/24 21:21 upstream 1e760fa3596e 9700afae .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/24 11:33 upstream 1e760fa3596e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/24 04:14 upstream 9fd6ba5420ba f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/24 01:09 upstream 9fd6ba5420ba f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/23 16:32 upstream fff5a5e7f528 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/23 02:27 upstream fff5a5e7f528 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/22 22:06 upstream a1effab7a3a3 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/22 01:33 upstream 2faac9a98f01 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/21 12:52 upstream 17214b70a159 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/21 10:28 upstream 17214b70a159 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/21 02:41 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/20 22:12 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/20 14:30 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/20 12:15 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/19 22:18 upstream a3671bd86a97 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/19 14:40 upstream a3671bd86a97 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/19 09:12 upstream 534293368afa 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/19 05:50 upstream 534293368afa 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/19 03:31 upstream 534293368afa 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/18 17:41 upstream 478a351ce0d6 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/18 16:28 upstream 478a351ce0d6 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci2-upstream-fs 2023/03/18 00:28 upstream 38e04b3e4240 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/03/17 16:12 upstream 38e04b3e4240 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-selinux-root 2023/03/05 11:19 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-root 2023/02/13 07:19 upstream 711e9a4d52bf 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-qemu-upstream 2022/12/04 14:50 upstream c2bf05db6c78 e080de16 .config console log report info kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/11/26 07:29 upstream 0b1dcc2cf55a 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-linux-next-kasan-gce-root 2023/02/05 19:17 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/30 23:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59caa87f9dfb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/30 05:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59caa87f9dfb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/29 09:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59caa87f9dfb fc067f05 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/28 18:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e8d018dd0257 48c74771 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/26 18:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e8d018dd0257 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/24 13:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/24 07:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/22 14:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d846e076 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/21 18:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/21 06:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/20 23:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/19 19:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/19 17:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/19 01:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/18 21:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/18 15:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-gce-arm64 2023/03/17 19:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
* Struck through repros no longer work on HEAD.