syzbot


kernel BUG in ocfs2_commit_truncate

Status: upstream: reported C repro on 2024/12/15 04:45
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+c16daba279a1161acfb0@syzkaller.appspotmail.com
Fix commit: ocfs2: add inline inode consistency check to ocfs2_validate_inode_block()
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce]
First crash: 365d, last: 19d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: kernel BUG in ocfs2_new_path (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_commit_truncate 0 (18) 2025/10/29 06:27
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ocfs2_commit_truncate -1 1 207d 207d 0/3 auto-obsoleted due to no activity on 2025/08/25 18:17
Last patch testing requests (27)
Created Duration User Patch Repo Result
2025/10/29 06:27 25m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.12.y OK log
2025/10/29 06:25 1h55m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y OK log
2025/10/29 06:21 1h03m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y report log
2025/10/28 18:23 23m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.12.y OK log
2025/10/28 18:21 10m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y error
2025/10/28 18:19 27m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y error
2025/10/28 10:42 0m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-6.12.y error
2025/10/28 10:41 0m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-6.1.y error
2025/10/28 10:40 0m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-5.10.y error
2025/10/24 07:15 20m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.12.y OK log
2025/10/24 07:15 21m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y OK log
2025/10/24 07:11 51m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y report log
2025/10/23 13:36 20m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 43e9ad0c55a369ecc84a4788d06a8a6bfa634f1c OK log
2025/10/23 11:35 22m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 43e9ad0c55a369ecc84a4788d06a8a6bfa634f1c OK log
2025/10/22 15:05 16m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 552c50713f273b494ac6c77052032a49bc9255e2 report log
2025/10/18 16:03 18m retest repro linux-next report log
2025/10/04 11:28 15m retest repro upstream report log
2025/09/07 18:23 14m retest repro upstream report log
2025/08/08 15:00 21m retest repro linux-next report log
2025/07/25 14:36 18m retest repro upstream report log
2025/06/29 16:33 14m retest repro upstream report log
2025/05/20 13:35 16m retest repro linux-next report log
2025/03/11 11:06 10m retest repro linux-next error
2025/01/14 09:45 13m retest repro upstream report log
2024/12/31 09:18 19m retest repro linux-next report log
2024/12/16 16:43 24m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8 OK log
2024/12/16 10:52 28m dmantipov@yandex.ru patch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next e25c8d66f6786300b680866c0e0139981273feba error
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2025/04/21 11:36 4h16m bisect fix upstream OK (0) job log log
2025/03/18 15:59 1h55m bisect fix upstream OK (0) job log log
2025/02/15 16:38 1h34m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:686!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 5820 Comm: syz-executor252 Not tainted 6.13.0-rc3-syzkaller-00017-gf44d154d6e3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:ocfs2_new_path fs/ocfs2/alloc.c:686 [inline]
RIP: 0010:ocfs2_commit_truncate+0x2547/0x2550 fs/ocfs2/alloc.c:7234
Code: 24 08 e8 ac bf 7c fe e9 bb fb ff ff e8 32 e2 18 fe 89 de 48 c7 c7 40 89 e1 8e e8 a4 38 6c 01 e9 c6 fb ff ff e8 1a e2 18 fe 90 <0f> 0b e8 82 07 3a 08 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90003ec71a0 EFLAGS: 00010293
RAX: ffffffff83869186 RBX: 0000000000000138 RCX: ffff888033a3bc00
RDX: 0000000000000000 RSI: 0000000000000138 RDI: 0000000000000004
RBP: ffffc90003ec74d0 R08: ffffffff83867048 R09: 0000000000000000
R10: ffffc90003ec7380 R11: fffff520007d8e72 R12: dffffc0000000000
R13: 1ffff920007d8e54 R14: ffff88807795b000 R15: 000000000000000d
FS:  0000555563285380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556329e778 CR3: 000000005c5b8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_truncate_for_delete fs/ocfs2/inode.c:623 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:790 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1079 [inline]
 ocfs2_evict_inode+0x1c46/0x4630 fs/ocfs2/inode.c:1216
 evict+0x4e8/0x9a0 fs/inode.c:796
 d_delete_notify include/linux/fsnotify.h:332 [inline]
 vfs_rmdir+0x3d7/0x510 fs/namei.c:4407
 do_rmdir+0x3b5/0x580 fs/namei.c:4453
 __do_sys_rmdir fs/namei.c:4472 [inline]
 __se_sys_rmdir fs/namei.c:4470 [inline]
 __x64_sys_rmdir+0x47/0x50 fs/namei.c:4470
 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:0x7f9505308d47
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 54 00 00 00 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:00007ffec8fe2da8 EFLAGS: 00000207 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9505308d47
RDX: 0000000000008890 RSI: 0000000000000000 RDI: 00007ffec8fe3f50
RBP: 0000000000000065 R08: 000055556329679b R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000207 R12: 00007ffec8fe3f50
R13: 0000555563296740 R14: 431bde82d7b634db R15: 00007ffec8fe60d0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_new_path fs/ocfs2/alloc.c:686 [inline]
RIP: 0010:ocfs2_commit_truncate+0x2547/0x2550 fs/ocfs2/alloc.c:7234
Code: 24 08 e8 ac bf 7c fe e9 bb fb ff ff e8 32 e2 18 fe 89 de 48 c7 c7 40 89 e1 8e e8 a4 38 6c 01 e9 c6 fb ff ff e8 1a e2 18 fe 90 <0f> 0b e8 82 07 3a 08 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90003ec71a0 EFLAGS: 00010293
RAX: ffffffff83869186 RBX: 0000000000000138 RCX: ffff888033a3bc00
RDX: 0000000000000000 RSI: 0000000000000138 RDI: 0000000000000004
RBP: ffffc90003ec74d0 R08: ffffffff83867048 R09: 0000000000000000
R10: ffffc90003ec7380 R11: fffff520007d8e72 R12: dffffc0000000000
R13: 1ffff920007d8e54 R14: ffff88807795b000 R15: 000000000000000d
FS:  0000555563285380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556329e778 CR3: 000000005c5b8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/17 09:14 upstream f44d154d6e3d f93b2b55 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in ocfs2_commit_truncate
2025/06/15 16:13 upstream 8c6bc74c7f89 5f4b362d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-snapshot-upstream-root kernel BUG in ocfs2_commit_truncate
2024/12/11 05:27 linux-next af2ea8ab7a54 cfc402b4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in ocfs2_commit_truncate
2025/10/24 12:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b98c94eed4a9 c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-upstream-gce-arm64 kernel BUG in ocfs2_commit_truncate
2025/07/08 23:33 upstream d006330be3f7 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ocfs2_commit_truncate
2025/11/22 10:41 upstream 2eba5e05d9bc 4fb8ef37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_commit_truncate
2024/12/11 04:37 linux-next af2ea8ab7a54 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ocfs2_commit_truncate
2025/10/24 11:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b98c94eed4a9 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ocfs2_commit_truncate
* Struck through repros no longer work on HEAD.