syzbot


kernel BUG in __ocfs2_flush_truncate_log

Status: upstream: reported on 2024/09/15 06:10
Reported-by: syzbot+e8dae693d1041bee4f51@syzkaller.appspotmail.com
First crash: 37d, last: 8d09h

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:6002!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7750 Comm: syz.0.852 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 4a 31 9a fe e9 7d fb ff ff e8 c0 66 50 fe 0f 0b e8 b9 66 50 fe <0f> 0b 65 44 8b 2d 97 21 d2 7c bf 07 00 00 00 44 89 ee e8 02 6a 50
RSP: 0018:ffffc90002e17b20 EFLAGS: 00010283
RAX: ffffffff832ff3b7 RBX: 00000000ffffffff RCX: 0000000000040000
RDX: ffffc90003c8f000 RSI: 0000000000029645 RDI: 0000000000029646
RBP: ffffc90002e17d30 R08: ffffffff832fe50e R09: fffff520005c2f4d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002e17c40
R13: ffff888061f34fb8 R14: ffff88805ae64a00 R15: ffff88806267b800
FS:  00007f7bd0e436c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c34487d CR3: 0000000031f6c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: fffffffffffffff7 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_flush_truncate_log+0x4b/0x60 fs/ocfs2/alloc.c:6067
 ocfs2_sync_fs+0x121/0x380 fs/ocfs2/super.c:403
 iterate_supers+0x127/0x1e0 fs/super.c:716
 ksys_sync+0xd7/0x1c0 fs/sync.c:104
 __do_sys_sync+0xa/0x10 fs/sync.c:113
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f7bd29caff9
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:00007f7bd0e43038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f7bd2b82f80 RCX: 00007f7bd29caff9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f7bd2a3d296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7bd2b82f80 R15: 00007ffd4634ef98
 </TASK>
Modules linked in:
---[ end trace 7ccaa5122f835ba4 ]---
RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 4a 31 9a fe e9 7d fb ff ff e8 c0 66 50 fe 0f 0b e8 b9 66 50 fe <0f> 0b 65 44 8b 2d 97 21 d2 7c bf 07 00 00 00 44 89 ee e8 02 6a 50
RSP: 0018:ffffc90002e17b20 EFLAGS: 00010283
RAX: ffffffff832ff3b7 RBX: 00000000ffffffff RCX: 0000000000040000
RDX: ffffc90003c8f000 RSI: 0000000000029645 RDI: 0000000000029646
RBP: ffffc90002e17d30 R08: ffffffff832fe50e R09: fffff520005c2f4d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002e17c40
R13: ffff888061f34fb8 R14: ffff88805ae64a00 R15: ffff88806267b800
FS:  00007f7bd0e436c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0566cd2440 CR3: 0000000031f6c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/14 11:09 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/10/05 09:37 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:36 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:34 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:34 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:28 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:28 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/23 01:50 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/19 08:12 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/15 06:09 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
* Struck through repros no longer work on HEAD.