[v6.1] WARNING in hfs_bnode_create

0 views
Skip to first unread message

syzbot

unread,
Apr 2, 2023, 6:27:45 PM4/2/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3b29299e5f60 Linux 6.1.22
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ec363ec80000
kernel config: https://syzkaller.appspot.com/x/.config?x=bbb9a1f6f7f5a1d9
dashboard link: https://syzkaller.appspot.com/bug?extid=628893e821712702f0ee
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2affbd06cbfd/disk-3b29299e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8b22d1baf827/vmlinux-3b29299e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d5e3891c88bf/Image-3b29299e.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+628893...@syzkaller.appspotmail.com

hfs: new node 6 already hashed?
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4841 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
Modules linked in:
CPU: 0 PID: 4841 Comm: syz-executor.2 Not tainted 6.1.22-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
lr : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
sp : ffff80001fc07090
x29: ffff80001fc070a0 x28: dfff800000000000 x27: dfff800000000000
x26: 0000000000000100 x25: ffff0000d93d2a88 x24: 00000000000000fc
x23: 0000000000000006 x22: ffff0000ca5740e0 x21: ffff0000ca574000
x20: 0000000000000006 x19: ffff0000ce68fe00 x18: ffff80001fc066e0
x17: ffff80001557d000 x16: ffff8000120d9934 x15: ffff800008a28e10
x14: ffff800008a2874c x13: ffff800008061ea0 x12: 0000000000000001
x11: ff80800008343f10 x10: 0000000000000000 x9 : c573097215487800
x8 : c573097215487800 x7 : ffff800008061ea0 x6 : ffff8000080620b0
x5 : ffff0000dc534440 x4 : ffff80001fc067f8 x3 : ffff80000aa673ec
x2 : ffff0001b45b5cd0 x1 : 0000000100000000 x0 : 000000000000001f
Call trace:
hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
hfs_bmap_alloc+0x59c/0x664 fs/hfs/btree.c:291
hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245
hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102
hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118
hfs_create+0x70/0xe4 fs/hfs/dir.c:202
lookup_open fs/namei.c:3413 [inline]
open_last_lookups fs/namei.c:3481 [inline]
path_openat+0xeac/0x2548 fs/namei.c:3711
do_filp_open+0x1bc/0x3cc fs/namei.c:3741
do_sys_openat2+0x128/0x3d8 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_openat fs/open.c:1342 [inline]
__se_sys_openat fs/open.c:1337 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1337
__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
irq event stamp: 244
hardirqs last enabled at (243): [<ffff800008398e14>] call_rcu+0x614/0xa40 kernel/rcu/tree.c:2833
hardirqs last disabled at (244): [<ffff8000120d55ec>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (192): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (192): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (75): [<ffff80000802a948>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at fs/hfs/bnode.c:467!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4841 Comm: syz-executor.2 Tainted: G W 6.1.22-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
sp : ffff80001fc071b0
x29: ffff80001fc071b0 x28: dfff800000000000 x27: ffff80001fc07580
x26: ffff0000ce68fe00 x25: 1ffff00003f80e58 x24: 1fffe00019cd1fc0
x23: dfff800000000000 x22: ffff0000ca574000 x21: ffff0000ce68fe80
x20: 0000000000000000 x19: ffff0000ce68fe00 x18: ffff80001fc066e0
x17: ffff80001557d000 x16: ffff8000084f70d0 x15: ffff800008a28e10
x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000908b1f0 x10: 0000000000000000 x9 : ffff80000908b1f0
x8 : ffff00012c7c8000 x7 : ffff80001202cf60 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000908af30
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
hfs_bnode_split+0x228/0xd88 fs/hfsplus/brec.c:264
hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102
hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118
hfs_create+0x70/0xe4 fs/hfs/dir.c:202
lookup_open fs/namei.c:3413 [inline]
open_last_lookups fs/namei.c:3481 [inline]
path_openat+0xeac/0x2548 fs/namei.c:3711
do_filp_open+0x1bc/0x3cc fs/namei.c:3741
do_sys_openat2+0x128/0x3d8 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_openat fs/open.c:1342 [inline]
__se_sys_openat fs/open.c:1337 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1337
__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: aa1503e0 97e37071 17ffffd5 97d1afb9 (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.

syzbot

unread,
Apr 3, 2023, 9:35:56 PM4/3/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c957cbb87315 Linux 5.15.105
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13617795c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=6f83fab0469f5de7
dashboard link: https://syzkaller.appspot.com/bug?extid=ce523929d0f93927ba4f
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/35817fda76e5/disk-c957cbb8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/80f96399b8d4/vmlinux-c957cbb8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4336a6ad59ec/bzImage-c957cbb8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ce5239...@syzkaller.appspotmail.com

WARNING: CPU: 1 PID: 9747 at fs/hfs/bnode.c:432 hfs_bnode_create+0x3dd/0x460 fs/hfs/bnode.c:431
Modules linked in:
CPU: 1 PID: 9747 Comm: syz-executor.4 Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:hfs_bnode_create+0x3dd/0x460 fs/hfs/bnode.c:432
Code: 8a 44 89 e6 e8 7d 4d d4 07 e9 4c fd ff ff e8 7a 55 3e ff 4c 89 ef e8 d2 c5 de 07 48 c7 c7 80 3e 9f 8a 44 89 e6 e8 5c 4d d4 07 <0f> 0b eb b5 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 59 fc ff ff 48 89
RSP: 0018:ffffc90017ef72d0 EFLAGS: 00010246
RAX: 000000000000001f RBX: ffff88801f77bd00 RCX: 5d81119a965f1f00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000006 R08: ffffffff816612fc R09: ffffed10173667a0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000006
R13: ffff88801d5400e0 R14: ffff88801d540000 R15: dffffc0000000000
FS: 00007feeec06c700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f23fcc53c18 CR3: 00000000776f7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hfs_bmap_alloc+0x64f/0x740 fs/hfs/btree.c:288
hfs_bnode_split+0xda/0x1100 fs/hfsplus/brec.c:245
hfs_brec_insert+0x385/0xbd0 fs/hfs/brec.c:102
hfs_cat_create+0x419/0xa60 fs/hfs/catalog.c:118
hfs_create+0x62/0xd0 fs/hfs/dir.c:202
lookup_open fs/namei.c:3392 [inline]
open_last_lookups fs/namei.c:3462 [inline]
path_openat+0x12f6/0x2f20 fs/namei.c:3669
do_filp_open+0x21c/0x460 fs/namei.c:3699
do_sys_openat2+0x13b/0x500 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1238
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+0x61/0xcb
RIP: 0033:0x7feef5f340f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007feeec06c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007feef6054120 RCX: 00007feef5f340f9
RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007feef5f8fb39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd61c4bf0f R14: 00007feeec06c300 R15: 0000000000022000
</TASK>

syzbot

unread,
Apr 29, 2023, 3:26:54 PM4/29/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: f48aeeaaa64c Linux 5.15.109
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11c92b1c280000
kernel config: https://syzkaller.appspot.com/x/.config?x=f0ea19992afd55ad
dashboard link: https://syzkaller.appspot.com/bug?extid=ce523929d0f93927ba4f
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1113b03c280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c79a30280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fd82b060cee7/disk-f48aeeaa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b216234bd1a0/vmlinux-f48aeeaa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c0609f7a6703/bzImage-f48aeeaa.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/e6249fc69633/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/7ab183dae408/mount_4.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ce5239...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3557 at fs/hfs/bnode.c:432 hfs_bnode_create+0x3dd/0x460 fs/hfs/bnode.c:431
Modules linked in:

CPU: 0 PID: 3557 Comm: syz-executor178 Not tainted 5.15.109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:hfs_bnode_create+0x3dd/0x460 fs/hfs/bnode.c:432
Code: 8a 44 89 e6 e8 bd 67 d7 07 e9 4c fd ff ff e8 7a 43 3e ff 4c 89 ef e8 a2 e4 e1 07 48 c7 c7 c0 48 9f 8a 44 89 e6 e8 9c 67 d7 07 <0f> 0b eb b5 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 59 fc ff ff 48 89
RSP: 0018:ffffc90002faefb0 EFLAGS: 00010246

RAX: 000000000000001f RBX: ffff888022ba2a00 RCX: 3613bc15643a5400
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff8166344c R09: ffffed10173467a0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8880753fc0e0 R14: ffff8880753fc000 R15: dffffc0000000000
FS: 000055555604a300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffedbbc9fb8 CR3: 000000001b449000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
hfs_bmap_alloc+0x64f/0x740 fs/hfs/btree.c:288
hfs_btree_inc_height+0x11a/0xd20 fs/hfs/brec.c:471
hfs_brec_insert+0x71f/0xbd0 fs/hfs/brec.c:148
__hfs_ext_write_extent+0x2f2/0x4f0 fs/hfs/extent.c:124
__hfs_ext_cache_extent+0x6a/0x990 fs/hfs/extent.c:174
hfs_ext_read_extent fs/hfs/extent.c:202 [inline]
hfs_extend_file+0x340/0x1440 fs/hfs/extent.c:401
hfs_get_block+0x3e0/0xb60 fs/hfs/extent.c:353
__block_write_begin_int+0x60b/0x1650 fs/buffer.c:2012
__block_write_begin fs/buffer.c:2062 [inline]
block_write_begin fs/buffer.c:2122 [inline]
cont_write_begin+0x5d6/0x840 fs/buffer.c:2471
hfs_write_begin+0x92/0xd0 fs/hfs/inode.c:59
generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776
__generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3903
generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3935
call_write_iter include/linux/fs.h:2103 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0xacf/0xe50 fs/read_write.c:594
ksys_write+0x1a2/0x2c0 fs/read_write.c:647
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+0x61/0xcb
RIP: 0033:0x7f19a9cb0ba9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007ffedbbcb878 EFLAGS: 00000246
ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f19a9cf5100 RCX: 00007f19a9cb0ba9
RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00007ffedbbcb8a0 R08: 0000000000000001 R09: 00007ffedbbcb8b0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000000dc R14: 00007ffedbbcb8c0 R15: 0000000000000006
</TASK>


---
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.

syzbot

unread,
May 14, 2023, 1:41:43 PM5/14/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: bf4ad6fa4e53 Linux 6.1.28
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15a42cba280000
kernel config: https://syzkaller.appspot.com/x/.config?x=ee1a89a0c6a2db67
dashboard link: https://syzkaller.appspot.com/bug?extid=628893e821712702f0ee
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=15e7e152280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1097c33a280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a7b85a636ba8/disk-bf4ad6fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a626aeb9d231/vmlinux-bf4ad6fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/78fbbffb9ee8/Image-bf4ad6fa.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/68dc13712df0/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+628893...@syzkaller.appspotmail.com

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
hfs: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4224 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
Modules linked in:
CPU: 1 PID: 4224 Comm: syz-executor147 Not tainted 6.1.28-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
lr : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
sp : ffff80001da36a10
x29: ffff80001da36a20 x28: dfff800000000000 x27: dfff800000000000
x26: 000000000000016c x25: ffff0000c3191688 x24: 0000000000000000
x23: 0000000000000000 x22: ffff0000de4ba0e0 x21: ffff0000de4ba000
x20: 0000000000000000 x19: ffff0000c3191600 x18: 1fffe000368ba776
x17: ffff80001558d000 x16: ffff800008305b94 x15: ffff0001b45d3bbc
x14: 1ffff00002ab20b0 x13: dfff800000000000 x12: 0000000000000003
x11: ff80800008346178 x10: 0000000000000000 x9 : 5103be2ad8d08400
x8 : 5103be2ad8d08400 x7 : ffff80000827ddcc x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000006 x1 : 0000000100000000 x0 : 000000000000001f
Call trace:
hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421
hfs_bmap_alloc+0x59c/0x664 fs/hfs/btree.c:291
hfs_btree_inc_height+0xf8/0x9d0 fs/hfs/brec.c:471
hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148
__hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124
__hfs_ext_cache_extent+0x84/0x754 fs/hfs/extent.c:174
hfs_ext_read_extent fs/hfs/extent.c:202 [inline]
hfs_extend_file+0x29c/0x1130 fs/hfs/extent.c:401
hfs_get_block+0x3b8/0x9e0 fs/hfs/extent.c:353
__block_write_begin_int+0x340/0x13b4 fs/buffer.c:1991
__block_write_begin fs/buffer.c:2041 [inline]
block_write_begin fs/buffer.c:2102 [inline]
cont_write_begin+0x5c0/0x7d8 fs/buffer.c:2456
hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58
cont_expand_zero fs/buffer.c:2383 [inline]
cont_write_begin+0x2ac/0x7d8 fs/buffer.c:2446
hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58
generic_perform_write+0x278/0x55c mm/filemap.c:3754
__generic_file_write_iter+0x168/0x388 mm/filemap.c:3882
generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3914
do_iter_write+0x534/0x964 fs/read_write.c:861
vfs_writev fs/read_write.c:934 [inline]
do_pwritev+0x1ec/0x334 fs/read_write.c:1031
__do_sys_pwritev2 fs/read_write.c:1090 [inline]
__se_sys_pwritev2 fs/read_write.c:1081 [inline]
__arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1081
__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
irq event stamp: 2274
hardirqs last enabled at (2273): [<ffff80000827de6c>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline]
hardirqs last enabled at (2273): [<ffff80000827de6c>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000
hardirqs last disabled at (2274): [<ffff8000120e4a4c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (2214): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (2214): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (2103): [<ffff80000802a994>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at fs/hfs/bnode.c:467!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4224 Comm: syz-executor147 Tainted: G W 6.1.28-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
sp : ffff80001da36b30
x29: ffff80001da36b30 x28: dfff800000000000 x27: ffff700003b46d7c
x26: 1fffe0001bc97403 x25: 0000000000000200 x24: 1fffe000186322c0
x23: dfff800000000000 x22: ffff0000de4ba000 x21: ffff0000c3191680
x20: 0000000000000000 x19: ffff0000c3191600 x18: 1fffe000368ba776
x17: ffff80001558d000 x16: ffff8000120e8ec4 x15: ffff0001b45d3bbc
x14: 1ffff00002ab20b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff80800009091c4c x10: 0000000000000000 x9 : ffff800009091c4c
x8 : ffff0000c91b5340 x7 : ffff8000089cb440 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000909198c
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467
hfs_btree_inc_height+0x4c0/0x9d0 fs/hfs/brec.c:525
hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148
__hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124
__hfs_ext_cache_extent+0x84/0x754 fs/hfs/extent.c:174
hfs_ext_read_extent fs/hfs/extent.c:202 [inline]
hfs_extend_file+0x29c/0x1130 fs/hfs/extent.c:401
hfs_get_block+0x3b8/0x9e0 fs/hfs/extent.c:353
__block_write_begin_int+0x340/0x13b4 fs/buffer.c:1991
__block_write_begin fs/buffer.c:2041 [inline]
block_write_begin fs/buffer.c:2102 [inline]
cont_write_begin+0x5c0/0x7d8 fs/buffer.c:2456
hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58
cont_expand_zero fs/buffer.c:2383 [inline]
cont_write_begin+0x2ac/0x7d8 fs/buffer.c:2446
hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:58
generic_perform_write+0x278/0x55c mm/filemap.c:3754
__generic_file_write_iter+0x168/0x388 mm/filemap.c:3882
generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:3914
do_iter_write+0x534/0x964 fs/read_write.c:861
vfs_writev fs/read_write.c:934 [inline]
do_pwritev+0x1ec/0x334 fs/read_write.c:1031
__do_sys_pwritev2 fs/read_write.c:1090 [inline]
__se_sys_pwritev2 fs/read_write.c:1081 [inline]
__arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1081
__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: aa1503e0 97e36a6f 17ffffd5 97d1a39e (d4210000)
---[ end trace 0000000000000000 ]---


---
Reply all
Reply to author
Forward
0 new messages