syzbot


kernel BUG in ocfs2_truncate_log_needs_flush

Status: upstream: reported on 2024/09/28 19:49
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+e1e7130b99d8a4ac02e4@syzkaller.appspotmail.com
First crash: 235d, last: 50d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_truncate_log_needs_flush 0 (1) 2024/09/28 19:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in ocfs2_truncate_log_needs_flush 1 202d 202d 0/3 auto-obsoleted due to no activity on 2025/02/05 02:34

Sample crash report:
(syz.0.0,5326,0):ocfs2_truncate_log_needs_flush:5822 ERROR: bug expression: le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count)
(syz.0.0,5326,0):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 153, count = 39
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:5822!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5326 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-09352-g0c86b42439b6 #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:ocfs2_truncate_log_needs_flush+0x316/0x320 fs/ocfs2/alloc.c:5819
Code: 0f b7 00 4c 89 f7 48 c7 c6 40 57 56 8e ba be 16 00 00 48 c7 c1 a0 4d 89 8c 45 89 e0 41 89 d9 50 e8 1f 22 22 00 48 83 c4 08 90 <0f> 0b e8 a3 10 6d 08 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d577400 EFLAGS: 00010296
RAX: 26f75ba3b43d9f00 RBX: 0000000000000099 RCX: 26f75ba3b43d9f00
RDX: ffffc9000f0c3000 RSI: 000000000000141b RDI: 000000000000141c
RBP: ffffc9000d5774d0 R08: ffffffff81a2cbbc R09: 1ffff92001aaedf0
R10: dffffc0000000000 R11: fffff52001aaedf1 R12: 0000000000000000
R13: ffff888054323ac2 R14: ffffc9000d577460 R15: 1000000000000000
FS:  00007f85f0a0b6c0(0000) GS:ffff88808c5dc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f85f0a0afd8 CR3: 0000000033b50000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_xattr_set+0xeaf/0x1940 fs/ocfs2/xattr.c:3624
 __vfs_setxattr+0x468/0x4a0 fs/xattr.c:200
 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234
 vfs_setxattr+0x223/0x430 fs/xattr.c:321
 do_setxattr fs/xattr.c:636 [inline]
 filename_setxattr+0x2dd/0x480 fs/xattr.c:665
 path_setxattrat+0x3f7/0x4c0 fs/xattr.c:713
 __do_sys_setxattr fs/xattr.c:747 [inline]
 __se_sys_setxattr fs/xattr.c:743 [inline]
 __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f85efb8d169
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:00007f85f0a0b038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f85efda6080 RCX: 00007f85efb8d169
RDX: 0000000000000000 RSI: 0000200000000300 RDI: 00002000000002c0
RBP: 00007f85efc0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f85efda6080 R15: 00007ffe1341f298
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_log_needs_flush+0x316/0x320 fs/ocfs2/alloc.c:5819
Code: 0f b7 00 4c 89 f7 48 c7 c6 40 57 56 8e ba be 16 00 00 48 c7 c1 a0 4d 89 8c 45 89 e0 41 89 d9 50 e8 1f 22 22 00 48 83 c4 08 90 <0f> 0b e8 a3 10 6d 08 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d577400 EFLAGS: 00010296
RAX: 26f75ba3b43d9f00 RBX: 0000000000000099 RCX: 26f75ba3b43d9f00
RDX: ffffc9000f0c3000 RSI: 000000000000141b RDI: 000000000000141c
RBP: ffffc9000d5774d0 R08: ffffffff81a2cbbc R09: 1ffff92001aaedf0
R10: dffffc0000000000 R11: fffff52001aaedf1 R12: 0000000000000000
R13: ffff888054323ac2 R14: ffffc9000d577460 R15: 1000000000000000
FS:  00007f85f0a0b6c0(0000) GS:ffff88808c5dc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f85f09e9fd8 CR3: 0000000033b50000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/29 05:52 upstream 0c86b42439b6 cf25e2c2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_log_needs_flush
2024/12/22 00:29 upstream 499551201b5f d7f584ee .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_log_needs_flush
2024/10/07 08:39 upstream 2a130b7e1fcd d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_log_needs_flush
2024/09/30 18:13 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_log_needs_flush
2024/09/24 19:39 upstream abf2050f51fd 5643e0e9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_log_needs_flush
* Struck through repros no longer work on HEAD.