loop0: detected capacity change from 0 to 32768
gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz"
gfs2: fsid=syz:syz: Now mounting FS (format 1801)...
gfs2: fsid=syz:syz.0: fatal: invalid metadata block - bh = 4150 (type: exp=4, found=5), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 499
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted 6.15.0-syzkaller-13473-gc0c9379f235d #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
gfs2_withdraw+0x111e/0x14f0 fs/gfs2/util.c:354
gfs2_metatype_check_ii+0x78/0x90 fs/gfs2/util.c:523
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_meta_buffer+0x25e/0x300 fs/gfs2/meta_io.c:499
gfs2_meta_inode_buffer fs/gfs2/meta_io.h:70 [inline]
gfs2_inode_refresh fs/gfs2/glops.c:478 [inline]
inode_go_instantiate+0xe4/0x1150 fs/gfs2/glops.c:503
gfs2_instantiate+0x165/0x220 fs/gfs2/glock.c:468
gfs2_glock_holder_ready fs/gfs2/glock.c:1333 [inline]
gfs2_glock_wait+0x1d4/0x2a0 fs/gfs2/glock.c:1353
gfs2_glock_nq_init fs/gfs2/glock.h:238 [inline]
gfs2_jindex_hold fs/gfs2/ops_fstype.c:547 [inline]
init_journal+0x298/0x2260 fs/gfs2/ops_fstype.c:716
init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:851
gfs2_fill_super+0x1939/0x20e0 fs/gfs2/ops_fstype.c:1253
get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1679
gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1335
vfs_get_tree+0x92/0x2b0 fs/super.c:1802
do_new_mount+0x24a/0xa40 fs/namespace.c:3856
do_mount fs/namespace.c:4193 [inline]
__do_sys_mount fs/namespace.c:4404 [inline]
__se_sys_mount+0x317/0x410 fs/namespace.c:4381
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f41acf900ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f41ade56e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f41ade56ef0 RCX: 00007f41acf900ca
RDX: 000020000001f680 RSI: 000020000001f6c0 RDI: 00007f41ade56eb0
RBP: 000020000001f680 R08: 00007f41ade56ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000020000001f6c0
R13: 00007f41ade56eb0 R14: 000000000001f675 R15: 000020000001f700
gfs2: fsid=syz:syz.0: can't read journal index: -5
loop0: detected capacity change from 0 to 64
syz.0.0: attempt to access beyond end of device
loop0: rw=0, sector=64004, nr_sectors = 1 limit=64
Buffer I/O error on dev loop0, logical block 64004, async page read
syz.0.0: attempt to access beyond end of device
loop0: rw=0, sector=64005, nr_sectors = 1 limit=64
Buffer I/O error on dev loop0, logical block 64005, async page read
syz.0.0: attempt to access beyond end of device
loop0: rw=0, sector=64006, nr_sectors = 1 limit=64
Buffer I/O error on dev loop0, logical block 64006, async page read
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted 6.15.0-syzkaller-13473-gc0c9379f235d #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:hfs_find_init+0x6a/0x1e0 fs/hfs/bfind.c:21
Code: 7e 18 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 38 b6 8a ff 49 c7 07 00 00 00 00 48 8d 6b 40 49 89 ef 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 0c 01 00 00 8b 45 00 8d 3c 45 04 00 00
RSP: 0018:ffffc9000d327588 EFLAGS: 00010202
RAX: 1ffff92001a64ecf RBX: 0000000000000000 RCX: ffff88800024a440
RDX: 0000000000000000 RSI: ffffc9000d327660 RDI: ffffc9000d327670
RBP: 0000000000000040 R08: ffffc9000d327697 R09: 0000000000000000
R10: ffffc9000d327660 R11: fffff52001a64ed3 R12: ffff88801f694640
R13: dffffc0000000000 R14: ffffc9000d327660 R15: 0000000000000008
FS: 00007f41ade576c0(0000) GS:ffff88808d252000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab73670000 CR3: 000000003f358000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hfs_ext_read_extent fs/hfs/extent.c:200 [inline]
hfs_get_block+0x51b/0xbd0 fs/hfs/extent.c:366
block_read_full_folio+0x29c/0x830 fs/buffer.c:2427
filemap_read_folio+0x114/0x380 mm/filemap.c:2412
do_read_cache_folio+0x350/0x590 mm/filemap.c:3894
do_read_cache_page mm/filemap.c:3960 [inline]
read_cache_page+0x5d/0x170 mm/filemap.c:3969
read_mapping_page include/linux/pagemap.h:966 [inline]
hfs_btree_open+0x55f/0x14f0 fs/hfs/btree.c:78
hfs_mdb_get+0x1327/0x2080 fs/hfs/mdb.c:199
hfs_fill_super+0x37b/0x640 fs/hfs/super.c:337
get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1679
vfs_get_tree+0x92/0x2b0 fs/super.c:1802
do_new_mount+0x24a/0xa40 fs/namespace.c:3856
do_mount fs/namespace.c:4193 [inline]
__do_sys_mount fs/namespace.c:4404 [inline]
__se_sys_mount+0x317/0x410 fs/namespace.c:4381
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f41acf900ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f41ade56e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f41ade56ef0 RCX: 00007f41acf900ca
RDX: 0000200000000240 RSI: 0000200000000280 RDI: 00007f41ade56eb0
RBP: 0000200000000240 R08: 00007f41ade56ef0 R09: 0000000000210009
R10: 0000000000210009 R11: 0000000000000246 R12: 0000200000000280
R13: 00007f41ade56eb0 R14: 0000000000000258 R15: 00002000000003c0
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfs_find_init+0x6a/0x1e0 fs/hfs/bfind.c:21
Code: 7e 18 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 38 b6 8a ff 49 c7 07 00 00 00 00 48 8d 6b 40 49 89 ef 49 c1 ef 03 <43> 0f b6 04 2f 84 c0 0f 85 0c 01 00 00 8b 45 00 8d 3c 45 04 00 00
RSP: 0018:ffffc9000d327588 EFLAGS: 00010202
RAX: 1ffff92001a64ecf RBX: 0000000000000000 RCX: ffff88800024a440
RDX: 0000000000000000 RSI: ffffc9000d327660 RDI: ffffc9000d327670
RBP: 0000000000000040 R08: ffffc9000d327697 R09: 0000000000000000
R10: ffffc9000d327660 R11: fffff52001a64ed3 R12: ffff88801f694640
R13: dffffc0000000000 R14: ffffc9000d327660 R15: 0000000000000008
FS: 00007f41ade576c0(0000) GS:ffff88808d252000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab73670000 CR3: 000000003f358000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 7e 18 jle 0x1a
2: 4c 89 f8 mov %r15,%rax
5: 48 c1 e8 03 shr $0x3,%rax
9: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
e: 74 08 je 0x18
10: 4c 89 ff mov %r15,%rdi
13: e8 38 b6 8a ff call 0xff8ab650
18: 49 c7 07 00 00 00 00 movq $0x0,(%r15)
1f: 48 8d 6b 40 lea 0x40(%rbx),%rbp
23: 49 89 ef mov %rbp,%r15
26: 49 c1 ef 03 shr $0x3,%r15
* 2a: 43 0f b6 04 2f movzbl (%r15,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 0c 01 00 00 jne 0x143
37: 8b 45 00 mov 0x0(%rbp),%eax
3a: 8d .byte 0x8d
3b: 3c 45 cmp $0x45,%al
3d: 04 00 add $0x0,%al