syzbot


kernel BUG in __hfsplus_setxattr

Status: upstream: reported C repro on 2022/11/26 08:06
Reported-by: syzbot+1107451c16b9eb9d29e6@syzkaller.appspotmail.com
First crash: 71d, last: 8h19m

Cause bisection: failed (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 10 4d23h 71d 0/1 upstream: reported C repro on 2022/11/26 07:08
linux-4.14 kernel BUG in __hfsplus_setxattr C 3 5d13h 64d 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 (61):
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
ci-upstream-kasan-gce-smack-root 2023/02/05 02:46 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/02/05 02:14 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/02/04 23:48 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/02/04 02:11 upstream 7b753a909f42 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/31 19:45 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/31 18:19 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/29 15:49 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/27 12:50 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/27 08:50 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/26 11:35 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/25 19:48 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/24 07:04 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/21 17:38 upstream f883675bf652 559a440a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/18 12:47 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/18 00:20 upstream 6e50979a9c87 aedf5331 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/18 00:11 upstream 6e50979a9c87 aedf5331 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/16 18:55 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/16 07:01 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/16 06:49 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/16 06:49 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/16 06:49 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-root 2023/01/15 12:59 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/11 11:13 upstream 7dd4b804e080 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/08 23:15 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/08 19:20 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/05 21:59 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2023/01/01 09:29 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/28 04:32 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-selinux-root 2022/12/27 00:44 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/24 09:41 upstream a27405b2ed9c 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/24 09:35 upstream a27405b2ed9c 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/23 15:46 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-root 2022/12/23 15:14 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/22 15:41 upstream 9d2f6060fe4c c692fab1 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/18 19:05 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/14 03:36 upstream 764822972d64 e660de91 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/13 23:21 upstream 764822972d64 e660de91 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/11 05:22 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/08 15:47 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/07 15:28 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/07 15:16 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/07 03:30 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/05 22:07 upstream 76dcd734eca2 045cbb84 .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/12/01 20:37 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/12/01 02:00 upstream 04aa64375f48 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/11/29 18:11 upstream ca57f02295f1 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/11/29 18:10 upstream ca57f02295f1 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-kasan-gce-smack-root 2022/11/26 13:22 upstream 0b1dcc2cf55a 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] 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/01/25 04:44 linux-next 691781f561e9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
ci-upstream-linux-next-kasan-gce-root 2022/12/03 11:15 linux-next 9e46a7996732 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in __hfsplus_setxattr
* Struck through repros no longer work on HEAD.