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
First crash: 10d, last: 4d04h
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 (3) 2024/12/16 16:43
Last patch testing requests (2)
Created Duration User Patch Repo Result
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

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 (3):
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
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
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
* Struck through repros no longer work on HEAD.