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: 123d, last: 35d
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 90d 90d 0/3 upstream: reported on 2024/10/28 02:34

Sample crash report:
(syz.0.0,5320,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,5320,0):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 2048, count = 39
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:5822!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller-00209-g499551201b5f #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_truncate_log_needs_flush+0x312/0x320 fs/ocfs2/alloc.c:5819
Code: 0f b7 00 4c 89 f7 48 c7 c6 f7 35 0e 8e ba be 16 00 00 48 c7 c1 e0 22 48 8c 45 89 e0 41 89 d9 50 e8 23 9e 20 00 48 83 c4 08 90 <0f> 0b e8 f7 45 40 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d2d7400 EFLAGS: 00010296
RAX: 30e36313458d5200 RBX: 0000000000000800 RCX: 30e36313458d5200
RDX: ffffc9000f55b000 RSI: 0000000000001206 RDI: 0000000000001207
RBP: ffffc9000d2d74d0 R08: ffffffff817f0a4c R09: 1ffff92001a5adf0
R10: dffffc0000000000 R11: fffff52001a5adf1 R12: 0000000000000000
R13: ffff888032e21ac2 R14: ffffc9000d2d7460 R15: 1000000000000000
FS:  00007f92967b96c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020353000 CR3: 0000000042c12000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_xattr_set+0xeab/0x1930 fs/ocfs2/xattr.c:3624
 __vfs_setxattr+0x468/0x4a0 fs/xattr.c:200
 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234
 vfs_setxattr+0x221/0x430 fs/xattr.c:321
 do_setxattr fs/xattr.c:636 [inline]
 filename_setxattr+0x2af/0x430 fs/xattr.c:665
 path_setxattrat+0x440/0x510 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/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9295985d29
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:00007f92967b9038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f9295b76080 RCX: 00007f9295985d29
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000020000180
RBP: 00007f9295a01aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f9295b76080 R15: 00007ffcbaa6c6f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_log_needs_flush+0x312/0x320 fs/ocfs2/alloc.c:5819
Code: 0f b7 00 4c 89 f7 48 c7 c6 f7 35 0e 8e ba be 16 00 00 48 c7 c1 e0 22 48 8c 45 89 e0 41 89 d9 50 e8 23 9e 20 00 48 83 c4 08 90 <0f> 0b e8 f7 45 40 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d2d7400 EFLAGS: 00010296
RAX: 30e36313458d5200 RBX: 0000000000000800 RCX: 30e36313458d5200
RDX: ffffc9000f55b000 RSI: 0000000000001206 RDI: 0000000000001207
RBP: ffffc9000d2d74d0 R08: ffffffff817f0a4c R09: 1ffff92001a5adf0
R10: dffffc0000000000 R11: fffff52001a5adf1 R12: 0000000000000000
R13: ffff888032e21ac2 R14: ffffc9000d2d7460 R15: 1000000000000000
FS:  00007f92967b96c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020353000 CR3: 0000000042c12000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.