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: 11d, last: 5d03h
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

Sample crash report:
bridge0: port 3(erspan0) entered blocking state
bridge0: port 3(erspan0) entered disabled state
erspan0: entered allmulticast mode
erspan0: entered promiscuous mode
bridge0: port 3(erspan0) entered blocking state
bridge0: port 3(erspan0) entered forwarding state
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.
netlink: 16 bytes leftover after parsing attributes in process `syz.0.0'.
(syz.0.0,5107,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,5107,0):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 256, 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: 5107 Comm: syz.0.0 Not tainted 6.12.0-rc1-syzkaller #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 cc c9 11 8e ba be 16 00 00 48 c7 c1 a0 0f 49 8c 45 89 e0 41 89 d9 50 e8 d3 ab 20 00 48 83 c4 08 90 <0f> 0b e8 77 6c 42 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90
RSP: 0000:ffffc9000308f540 EFLAGS: 00010292
RAX: fc7962a470c48600 RBX: 0000000000000100 RCX: fc7962a470c48600
RDX: ffffc9000b451000 RSI: 0000000000001257 RDI: 0000000000001258
RBP: ffffc9000308f610 R08: ffffffff81749dec R09: 1ffff92000611e18
R10: dffffc0000000000 R11: fffff52000611e19 R12: 0000000000000000
R13: ffff888012239ac2 R14: ffffc9000308f5a0 R15: 1000000000000000
FS:  00007f7acaae06c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a51d633000 CR3: 000000004c12e000 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:3625
 __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:629 [inline]
 path_setxattr+0x37e/0x4d0 fs/xattr.c:658
 __do_sys_setxattr fs/xattr.c:676 [inline]
 __se_sys_setxattr fs/xattr.c:672 [inline]
 __x64_sys_setxattr+0xbb/0xd0 fs/xattr.c:672
 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:0x7f7ac9d7dff9
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:00007f7acaae0038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f7ac9f35f80 RCX: 00007f7ac9d7dff9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007f7ac9df0296 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7ac9f35f80 R15: 00007ffdf17c8a28
 </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 cc c9 11 8e ba be 16 00 00 48 c7 c1 a0 0f 49 8c 45 89 e0 41 89 d9 50 e8 d3 ab 20 00 48 83 c4 08 90 <0f> 0b e8 77 6c 42 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90
RSP: 0000:ffffc9000308f540 EFLAGS: 00010292
RAX: fc7962a470c48600 RBX: 0000000000000100 RCX: fc7962a470c48600
RDX: ffffc9000b451000 RSI: 0000000000001257 RDI: 0000000000001258
RBP: ffffc9000308f610 R08: ffffffff81749dec R09: 1ffff92000611e18
R10: dffffc0000000000 R11: fffff52000611e19 R12: 0000000000000000
R13: ffff888012239ac2 R14: ffffc9000308f5a0 R15: 1000000000000000
FS:  00007f7acaae06c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9fbfaa3c28 CR3: 000000004c12e000 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
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.