Hello,
syzbot found the following issue on:
HEAD commit: ca87e77a2ef8 Linux 6.1.34
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=1527f2cf280000
kernel config:
https://syzkaller.appspot.com/x/.config?x=143044f84cdceac2
dashboard link:
https://syzkaller.appspot.com/bug?extid=40bef8b3d36fddf962ca
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=15799287280000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=1320daef280000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/1141c37ce351/disk-ca87e77a.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/de1fca0d0bb4/vmlinux-ca87e77a.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/c3417b70e0bf/Image-ca87e77a.gz.xz
mounted in repro:
https://storage.googleapis.com/syzbot-assets/8e8fc60cc797/mount_0.gz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+40bef8...@syzkaller.appspotmail.com
loop0: detected capacity change from 0 to 1024
------------[ cut here ]------------
kernel BUG at fs/hfsplus/bnode.c:618!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4825 Comm: syz-executor351 Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
sp : ffff80001e3672a0
x29: ffff80001e3672a0 x28: dfff800000000000 x27: 00000000000000f8
x26: ffff0000e352b0f8 x25: 1fffe000186b3240 x24: ffff0000dbe3a000
x23: dfff800000000000 x22: 1ffff00003c6ce64 x21: ffff0000c3599280
x20: 0000000000000000 x19: ffff0000c3599200 x18: 1fffe000368b9f76
x17: ffff8000155bd000 x16: ffff80000825f9d8 x15: ffff800008a6912c
x14: 1ffff00002ab80b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000907c744 x10: 0000000000000000 x9 : ffff80000907c744
x8 : ffff0000d450b780 x7 : ffff800008af6e54 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000907c318
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
hfsplus_bmap_alloc+0x564/0x638 fs/hfsplus/btree.c:414
hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245
hfsplus_brec_insert+0x2d4/0xaa0 fs/hfsplus/brec.c:100
hfsplus_create_cat+0xa68/0x1330 fs/hfsplus/catalog.c:308
hfsplus_mknod+0x14c/0x268 fs/hfsplus/dir.c:494
hfsplus_create+0x38/0x4c fs/hfsplus/dir.c:523
vfs_create+0x2cc/0x434 fs/namei.c:3115
do_mknodat+0x314/0x674 fs/namei.c:3965
__do_sys_mknodat fs/namei.c:3993 [inline]
__se_sys_mknodat fs/namei.c:3990 [inline]
__arm64_sys_mknodat+0xb0/0xcc fs/namei.c:3990
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: aa1403e0 97e3c242 17ffffb7 97d1f711 (d4210000)
---[ end trace 0000000000000000 ]---
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup