syzbot


kernel BUG in ocfs2_update_edge_lengths

Status: upstream: reported on 2025/02/12 03:15
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+d7bd040f4ea15e73afcd@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_update_edge_lengths 0 (1) 2025/02/12 03:15

Sample crash report:
loop0: detected capacity change from 32768 to 32767
(syz.0.0,5337,0):ocfs2_commit_truncate:7313 ERROR: Inode 17058 has an empty extent record, depth 1
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:2549!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5337 Comm: syz.0.0 Not tainted 6.14.0-rc1-syzkaller-00181-g7ee983c850b4 #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_update_edge_lengths+0x62d/0x630 fs/ocfs2/alloc.c:2549
Code: ee 11 fe 44 89 e6 48 c7 c7 60 3d e2 8e e8 cb 9d 73 01 e9 86 fb ff ff e8 41 68 48 08 e8 fc ed 11 fe 90 0f 0b e8 f4 ed 11 fe 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e
RSP: 0018:ffffc9000d49ecc0 EFLAGS: 00010283
RAX: ffffffff83ad702c RBX: 0000000000000000 RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 00000000000016d2 RDI: 00000000000016d3
RBP: ffffc9000d49ed90 R08: ffffffff83ad6c44 R09: ffffffff83ad6ab3
R10: 0000000000000006 R11: ffff8880009e2440 R12: dffffc0000000000
R13: ffff888035bb5280 R14: ffff88805412ac00 R15: 1ffff92001a93da0
FS:  00007f41b89da6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f41b89b8fe0 CR3: 0000000043d1a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_remove_rightmost_path+0x887/0xae0 fs/ocfs2/alloc.c:3077
 ocfs2_remove_rightmost_empty_extent fs/ocfs2/alloc.c:3126 [inline]
 ocfs2_commit_truncate+0x10fb/0x2550 fs/ocfs2/alloc.c:7314
 ocfs2_truncate_file+0xd21/0x1560 fs/ocfs2/file.c:509
 ocfs2_setattr+0x1890/0x1ef0 fs/ocfs2/file.c:1212
 notify_change+0xbca/0xe90 fs/attr.c:552
 do_truncate+0x220/0x310 fs/open.c:65
 handle_truncate fs/namei.c:3451 [inline]
 do_open fs/namei.c:3834 [inline]
 path_openat+0x2e1b/0x3590 fs/namei.c:3989
 do_filp_open+0x27f/0x4e0 fs/namei.c:4016
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_creat fs/open.c:1521 [inline]
 __se_sys_creat fs/open.c:1515 [inline]
 __x64_sys_creat+0x123/0x170 fs/open.c:1515
 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:0x7f41b7b8cde9
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:00007f41b89da038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f41b7da6240 RCX: 00007f41b7b8cde9
RDX: 0000000000000000 RSI: 0000000000000027 RDI: 0000400000000040
RBP: 00007f41b7c0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f41b7da6240 R15: 00007ffcf1848b28
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_update_edge_lengths+0x62d/0x630 fs/ocfs2/alloc.c:2549
Code: ee 11 fe 44 89 e6 48 c7 c7 60 3d e2 8e e8 cb 9d 73 01 e9 86 fb ff ff e8 41 68 48 08 e8 fc ed 11 fe 90 0f 0b e8 f4 ed 11 fe 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e
RSP: 0018:ffffc9000d49ecc0 EFLAGS: 00010283
RAX: ffffffff83ad702c RBX: 0000000000000000 RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 00000000000016d2 RDI: 00000000000016d3
RBP: ffffc9000d49ed90 R08: ffffffff83ad6c44 R09: ffffffff83ad6ab3
R10: 0000000000000006 R11: ffff8880009e2440 R12: dffffc0000000000
R13: ffff888035bb5280 R14: ffff88805412ac00 R15: 1ffff92001a93da0
FS:  00007f41b89da6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055df893bc028 CR3: 0000000043d1a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/08 03:11 upstream 7ee983c850b4 ef44b750 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_update_edge_lengths
* Struck through repros no longer work on HEAD.