syzbot


kernel BUG in ocfs2_find_subtree_root

Status: upstream: reported on 2024/10/30 21:47
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+c6bd015c32fbb94aa3ec@syzkaller.appspotmail.com
First crash: 41d, last: 14d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_find_subtree_root 0 (1) 2024/10/30 21:47

Sample crash report:
loop0: detected capacity change from 0 to 32768
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
(syz.0.0,5331,0):ocfs2_dio_end_io:2424 ERROR: Direct IO failed, bytes = -28
loop0: detected capacity change from 32768 to 26624
OCFS2: ERROR (device loop0): int ocfs2_validate_extent_block(struct super_block *, struct buffer_head *): Extent block #10650 has bad signature 
On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted.
OCFS2: File system is now read-only.
(syz.0.0,5331,0):ocfs2_num_free_extents:963 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_reserve_blocks_for_rec_trunc:5670 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_remove_btree_range:5738 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_remove_inode_range:1911 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_reflink_remap_extent:4539 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_reflink_remap_blocks:4687 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_remap_file_range:2743 ERROR: status = -30
(syz.0.0,5331,0):ocfs2_find_subtree_root:1777 ERROR: bug expression: i > left->p_tree_depth
(syz.0.0,5331,0):ocfs2_find_subtree_root:1777 ERROR: Owner 17059, left depth 1, right depth 1
left leaf blk 10643, right leaf blk 10643
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:1777!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-07749-g28eb75e178d3 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ocfs2_find_subtree_root+0x5ab/0x5c0 fs/ocfs2/alloc.c:1771
Code: 79 1c 12 8e ba f1 06 00 00 48 c7 c1 80 75 48 8c 4c 8b 44 24 20 45 89 f1 ff 33 41 57 ff 74 24 28 e8 0a 11 22 00 48 83 c4 18 90 <0f> 0b e8 4e 26 1c fe 90 0f 0b e8 26 cb 4d 08 66 0f 1f 44 00 00 90
RSP: 0018:ffffc9000cfde400 EFLAGS: 00010296
RAX: accbd5a5da429000 RBX: ffff888043fadaf8 RCX: accbd5a5da429000
RDX: ffffc9000e832000 RSI: 00000000000020f0 RDI: 00000000000020f1
RBP: ffffc9000cfde4f0 R08: ffffffff8174e83c R09: 1ffff920019fbbec
R10: dffffc0000000000 R11: fffff520019fbbed R12: 0000000000000001
R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000002993
FS:  00007fa7d46ce6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562531eace38 CR3: 0000000040dea000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_insert_path+0xad7/0x12c0 fs/ocfs2/alloc.c:4232
 ocfs2_do_insert_extent+0xae1/0x10d0 fs/ocfs2/alloc.c:4334
 ocfs2_insert_extent+0x1377/0x2270 fs/ocfs2/alloc.c:4757
 ocfs2_add_clusters_in_btree+0x741/0x1370 fs/ocfs2/alloc.c:4849
 ocfs2_add_inode_data+0xcf/0x120 fs/ocfs2/file.c:550
 ocfs2_write_cluster fs/ocfs2/aops.c:1134 [inline]
 ocfs2_write_cluster_by_desc+0x54c/0x20b0 fs/ocfs2/aops.c:1239
 ocfs2_write_begin_nolock+0x3a2f/0x4ec0 fs/ocfs2/aops.c:1815
 ocfs2_write_begin+0x205/0x3a0 fs/ocfs2/aops.c:1902
 generic_perform_write+0x344/0x6d0 mm/filemap.c:4056
 ocfs2_file_write_iter+0x17b1/0x1f50 fs/ocfs2/file.c:2467
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0xaeb/0xd30 fs/read_write.c:679
 ksys_write+0x18f/0x2b0 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa7d397e819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa7d46ce038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fa7d3b35fa0 RCX: 00007fa7d397e819
RDX: 00000000000000c9 RSI: 00000000200003c0 RDI: 0000000000000005
RBP: 00007fa7d39f175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa7d3b35fa0 R15: 00007fff5b6f39a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_find_subtree_root+0x5ab/0x5c0 fs/ocfs2/alloc.c:1771
Code: 79 1c 12 8e ba f1 06 00 00 48 c7 c1 80 75 48 8c 4c 8b 44 24 20 45 89 f1 ff 33 41 57 ff 74 24 28 e8 0a 11 22 00 48 83 c4 18 90 <0f> 0b e8 4e 26 1c fe 90 0f 0b e8 26 cb 4d 08 66 0f 1f 44 00 00 90
RSP: 0018:ffffc9000cfde400 EFLAGS: 00010296
RAX: accbd5a5da429000 RBX: ffff888043fadaf8 RCX: accbd5a5da429000
RDX: ffffc9000e832000 RSI: 00000000000020f0 RDI: 00000000000020f1
RBP: ffffc9000cfde4f0 R08: ffffffff8174e83c R09: 1ffff920019fbbec
R10: dffffc0000000000 R11: fffff520019fbbed R12: 0000000000000001
R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000002993
FS:  00007fa7d46ce6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562531eace38 CR3: 0000000040dea000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/22 08:50 upstream 28eb75e178d3 4b25d554 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_find_subtree_root
2024/10/28 02:52 upstream ea1fda89f5b2 65e8686b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_find_subtree_root
2024/10/26 21:41 upstream 850925a8133c 65e8686b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_find_subtree_root
* Struck through repros no longer work on HEAD.