syzbot


kernel BUG in ocfs2_write_cluster_by_desc

Status: upstream: reported C repro on 2024/09/16 18:35
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+18a87160c7d64ba2e2f6@syzkaller.appspotmail.com
First crash: 18d, last: 4d03h
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_write_cluster_by_desc 1 (6) 2024/09/23 08:31
[PATCH 2/2] osfs2: Fix kernel BUG in ocfs2_write_cluster 3 (3) 2024/09/21 17:30
[PATCH 1/2] ocfs2: Fix deadlock in ocfs2_read_virt_blocks 3 (3) 2024/09/21 14:22
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/09/30 19:12 15m retest repro upstream report log
2024/09/30 19:12 15m retest repro upstream report log
2024/09/30 19:12 15m retest repro upstream report log
2024/09/23 08:16 14m heming.zhao@suse.com patch upstream report log
2024/09/18 15:53 19m pvmohammedanees2003@gmail.com patch upstream OK log
2024/09/18 15:22 14m pvmohammedanees2003@gmail.com patch upstream report log
2024/09/17 16:26 13m pvmohammedanees2003@gmail.com patch upstream report log

Sample crash report:
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
------------[ cut here ]------------
kernel BUG at fs/ocfs2/aops.c:1179!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5101 Comm: syz-executor322 Not tainted 6.11.0-syzkaller-02520-gadfc3ded5c33 #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_write_cluster fs/ocfs2/aops.c:1179 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc+0x1fc7/0x1ff0 fs/ocfs2/aops.c:1240
Code: 03 48 8d bc 24 30 02 00 00 48 c7 c6 77 b1 0b 8e ba 7e 04 00 00 48 c7 c1 00 ef 48 8c e8 92 93 1d 00 90 0f 0b e8 5a f1 12 fe 90 <0f> 0b e8 52 f1 12 fe 90 0f 0b e8 4a f1 12 fe 90 0f 0b e8 42 f1 12
RSP: 0018:ffffc90002daee20 EFLAGS: 00010293
RAX: ffffffff8380b546 RBX: ffff888040bcc1a0 RCX: ffff88801efca440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002daf170 R08: ffffffff83809cae R09: 1ffff11008179804
R10: dffffc0000000000 R11: ffffed1008179805 R12: 0000000000000000
R13: ffff88804031a000 R14: ffff888040bcc178 R15: 0000000000000000
FS:  00005555584fe380(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020201000 CR3: 0000000000adc000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_write_begin_nolock+0x3a2f/0x4ec0 fs/ocfs2/aops.c:1816
 ocfs2_write_begin+0x205/0x3a0 fs/ocfs2/aops.c:1903
 generic_perform_write+0x37e/0x730 mm/filemap.c:4025
 ocfs2_file_write_iter+0x17b1/0x1f50 fs/ocfs2/file.c:2456
 new_sync_write fs/read_write.c:590 [inline]
 vfs_write+0xa6d/0xc90 fs/read_write.c:683
 ksys_write+0x1a0/0x2c0 fs/read_write.c:736
 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:0x7f741df14ad9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcf8213568 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f741df14ad9
RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00007f741df8c5f0 R08: 00005555584ff4c0 R09: 00005555584ff4c0
R10: 0000000000004428 R11: 0000000000000246 R12: 00007ffcf8213590
R13: 00007ffcf82137b8 R14: 431bde82d7b634db R15: 00007f741df5d03b
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1179 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc+0x1fc7/0x1ff0 fs/ocfs2/aops.c:1240
Code: 03 48 8d bc 24 30 02 00 00 48 c7 c6 77 b1 0b 8e ba 7e 04 00 00 48 c7 c1 00 ef 48 8c e8 92 93 1d 00 90 0f 0b e8 5a f1 12 fe 90 <0f> 0b e8 52 f1 12 fe 90 0f 0b e8 4a f1 12 fe 90 0f 0b e8 42 f1 12
RSP: 0018:ffffc90002daee20 EFLAGS: 00010293
RAX: ffffffff8380b546 RBX: ffff888040bcc1a0 RCX: ffff88801efca440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002daf170 R08: ffffffff83809cae R09: 1ffff11008179804
R10: dffffc0000000000 R11: ffffed1008179805 R12: 0000000000000000
R13: ffff88804031a000 R14: ffff888040bcc178 R15: 0000000000000000
FS:  00005555584fe380(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020201000 CR3: 0000000000adc000 CR4: 0000000000350ef0
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/09/16 19:10 upstream adfc3ded5c33 49cf0773 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in ocfs2_write_cluster_by_desc
2024/09/16 18:28 upstream adfc3ded5c33 49cf0773 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in ocfs2_write_cluster_by_desc
2024/09/16 17:46 upstream adfc3ded5c33 49cf0773 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in ocfs2_write_cluster_by_desc
2024/09/16 17:05 upstream adfc3ded5c33 49cf0773 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_write_cluster_by_desc
* Struck through repros no longer work on HEAD.