syzbot


WARNING in hfsplus_bnode_create

Status: upstream: reported C repro on 2022/12/02 04:34
Reported-by: syzbot+1c8ff72d0cd8a50dfeaa@syzkaller.appspotmail.com
First crash: 65d, last: 5d09h

Cause bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in hfsplus_bnode_create hfsplus C 1 37d 37d 0/1 upstream: reported C repro on 2022/12/29 14:39
linux-4.19 WARNING in hfsplus_bnode_create hfsplus C error 4 35d 67d 0/1 upstream: reported C repro on 2022/11/30 07:43

Sample crash report:
hfsplus: xattr searching failed
hfsplus: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5075 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x3d4/0x460 fs/hfsplus/bnode.c:572
Modules linked in:
CPU: 1 PID: 5075 Comm: syz-executor382 Not tainted 6.1.0-syzkaller-13872-gb6bb9676f216 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hfsplus_bnode_create+0x3d4/0x460 fs/hfsplus/bnode.c:573
Code: 31 c0 e8 3f cb 4d 08 e9 5f fd ff ff e8 d5 4b 2b ff 4c 89 ff e8 fd 52 59 08 48 c7 c7 00 32 08 8b 44 89 e6 31 c0 e8 1c cb 4d 08 <0f> 0b eb b1 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 61 fc ff ff 48 89
RSP: 0018:ffffc90003b9ecb0 EFLAGS: 00010246
RAX: 0000000000000023 RBX: ffff888013768b00 RCX: 9fe36ee27c8dc100
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff816f2c9d R09: fffff52000773d4d
R10: fffff52000773d4d R11: 1ffff92000773d4c R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88802ad1c000 R15: ffff88802ad1c0e0
FS:  00005555561ba300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005597032d5420 CR3: 00000000285f0000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hfsplus_bmap_alloc+0x58a/0x610 fs/hfsplus/btree.c:415
 hfs_btree_inc_height+0xe2/0xd30 fs/hfsplus/brec.c:475
 hfsplus_brec_insert+0x130/0xd70 fs/hfsplus/brec.c:75
 __hfsplus_ext_write_extent+0x356/0x590 fs/hfsplus/extents.c:107
 __hfsplus_ext_cache_extent+0x8d/0x810 fs/hfsplus/extents.c:186
 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline]
 hfsplus_file_extend+0x3cc/0x19d0 fs/hfsplus/extents.c:461
 hfsplus_get_block+0x415/0x1560 fs/hfsplus/extents.c:245
 get_more_blocks fs/direct-io.c:665 [inline]
 do_direct_IO fs/direct-io.c:953 [inline]
 __blockdev_direct_IO+0x1737/0x3bf0 fs/direct-io.c:1266
 blockdev_direct_IO include/linux/fs.h:3213 [inline]
 hfsplus_direct_IO+0xf6/0x1e0 fs/hfsplus/inode.c:135
 generic_file_direct_write+0x294/0x610 mm/filemap.c:3696
 __generic_file_write_iter+0x1c4/0x400 mm/filemap.c:3856
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3932
 do_iter_write+0x6c2/0xc20 fs/read_write.c:861
 vfs_writev fs/read_write.c:934 [inline]
 do_pwritev+0x200/0x350 fs/read_write.c:1031
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f34f4f487b9
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:00007ffe3ed0d688 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f34f4f487b9
RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004
RBP: 00007f34f4f08050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000600 R11: 0000000000000246 R12: 00007f34f4f080e0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (21):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2022/12/21 18:36 upstream b6bb9676f216 4067838e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in hfsplus_bnode_create
ci-upstream-kasan-gce-root 2022/12/19 11:59 upstream f9ff5644bcc0 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2022/12/07 16:08 upstream 8ed710da2873 d88f3abb .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in hfsplus_bnode_create
ci-upstream-kasan-gce-smack-root 2022/12/02 02:32 upstream ef4d3ea40565 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in hfsplus_bnode_create
ci-upstream-gce-arm64 2022/12/07 21:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d88f3abb .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in hfsplus_bnode_create
ci-upstream-kasan-gce-selinux-root 2023/01/31 01:44 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2023/01/29 17:10 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-kasan-gce-smack-root 2023/01/26 23:36 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2023/01/17 23:01 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2023/01/06 22:08 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2023/01/03 18:40 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2023/01/01 00:34 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2022/12/27 17:36 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2022/12/11 13:18 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2022/12/11 06:38 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci2-upstream-fs 2022/12/08 19:31 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-kasan-gce-smack-root 2022/12/02 02:18 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-linux-next-kasan-gce-root 2023/01/27 23:23 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-linux-next-kasan-gce-root 2022/12/21 23:53 linux-next e45fb347b630 4067838e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-gce-arm64 2023/01/25 20:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
ci-upstream-gce-arm64 2023/01/13 23:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9598c377d828 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in hfsplus_bnode_create
* Struck through repros no longer work on HEAD.