syzbot


kernel BUG in __ocfs2_rotate_tree_left

Status: upstream: reported on 2025/02/18 13:25
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+7508211c42e6e7c9f2f8@syzkaller.appspotmail.com
First crash: 6d15h, last: 3d04h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in __ocfs2_rotate_tree_left 0 (1) 2025/02/18 13:25

Sample crash report:
loop0: detected capacity change from 32768 to 0
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:2721!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #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_rotate_subtree_left fs/ocfs2/alloc.c:2721 [inline]
RIP: 0010:__ocfs2_rotate_tree_left+0x2fd5/0x3010 fs/ocfs2/alloc.c:2977
Code: fe 90 0f 0b e8 cc 7e 0b fe 90 0f 0b e8 c4 7e 0b fe 90 0f 0b e8 bc 7e 0b fe 90 0f 0b e8 b4 7e 0b fe 90 0f 0b e8 ac 7e 0b fe 90 <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 8c fd ff ff 48 8b
RSP: 0018:ffffc9000d4b6500 EFLAGS: 00010283
RAX: ffffffff83b63be4 RBX: 0000000000000000 RCX: 0000000000100000
RDX: ffffc9000edbb000 RSI: 0000000000001224 RDI: 0000000000001225
RBP: ffffc9000d4b68d0 R08: ffffffff83b6241d R09: ffffffff83b62036
R10: 0000000000000006 R11: ffff88800024a440 R12: ffff8880544c6700
R13: 1ffff92001a96ccc R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f16019f56c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000010 CR3: 00000000339fc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_rotate_tree_left+0x326/0xdc0 fs/ocfs2/alloc.c:3229
 ocfs2_truncate_rec+0x1547/0x1c90 fs/ocfs2/alloc.c:5502
 ocfs2_remove_extent+0x106f/0x26f0 fs/ocfs2/alloc.c:5581
 ocfs2_remove_btree_range+0xfde/0x1860 fs/ocfs2/alloc.c:5770
 ocfs2_remove_inode_range+0xff3/0x29c0 fs/ocfs2/file.c:1907
 ocfs2_reflink_remap_extent fs/ocfs2/refcounttree.c:4534 [inline]
 ocfs2_reflink_remap_blocks+0xcd4/0x1f30 fs/ocfs2/refcounttree.c:4681
 ocfs2_remap_file_range+0x5fa/0x8d0 fs/ocfs2/file.c:2740
 vfs_copy_file_range+0xc07/0x14f0 fs/read_write.c:1584
 __do_sys_copy_file_range fs/read_write.c:1670 [inline]
 __se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637
 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:0x7f160558cde9
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:00007f16019f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007f16057a6080 RCX: 00007f160558cde9
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 000000000000000c
RBP: 00007f160560e2a0 R08: fffffbffa003e45c R09: 0700000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f16057a6080 R15: 00007ffd149b49b8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_rotate_subtree_left fs/ocfs2/alloc.c:2721 [inline]
RIP: 0010:__ocfs2_rotate_tree_left+0x2fd5/0x3010 fs/ocfs2/alloc.c:2977
Code: fe 90 0f 0b e8 cc 7e 0b fe 90 0f 0b e8 c4 7e 0b fe 90 0f 0b e8 bc 7e 0b fe 90 0f 0b e8 b4 7e 0b fe 90 0f 0b e8 ac 7e 0b fe 90 <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 8c fd ff ff 48 8b
RSP: 0018:ffffc9000d4b6500 EFLAGS: 00010283
RAX: ffffffff83b63be4 RBX: 0000000000000000 RCX: 0000000000100000
RDX: ffffc9000edbb000 RSI: 0000000000001224 RDI: 0000000000001225
RBP: ffffc9000d4b68d0 R08: ffffffff83b6241d R09: ffffffff83b62036
R10: 0000000000000006 R11: ffff88800024a440 R12: ffff8880544c6700
R13: 1ffff92001a96ccc R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f16019f56c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bc228e30b8 CR3: 00000000339fc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/18 00:29 upstream 2408a807bfc3 429ea007 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __ocfs2_rotate_tree_left
2025/02/14 13:22 upstream 128c8f96eb86 fe17639f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __ocfs2_rotate_tree_left
* Struck through repros no longer work on HEAD.