syzbot


WARNING in ext4_init_orphan_info

Status: upstream: reported C repro on 2025/09/08 18:45
Subsystems: ext4 mm
[Documentation on labels]
Reported-by: syzbot+0b92850d68d9b12934f5@syzkaller.appspotmail.com
Fix commit: 0a6ce20c1564 ext4: verify orphan file size is not too big
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-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce 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-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-upstream-gce-arm64]
First crash: 42d, last: 17d
Cause bisection: introduced by (bisect log) :
commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Author: Jan Kara <jack@suse.cz>
Date: Mon Aug 16 09:57:06 2021 +0000

  ext4: Speedup ext4 orphan inode handling

Crash: WARNING in ext4_init_orphan_info (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] ext4: verify orphan file size is not too big 4 (4) 2025/10/07 12:41
[syzbot] [mm?] [ext4?] WARNING in ext4_init_orphan_info 1 (3) 2025/09/09 10:59
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/09/22 11:51 13m retest repro upstream report log
2025/09/22 11:51 13m retest repro upstream report log

Sample crash report:
EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support!
EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6074 at mm/page_alloc.c:5159 __alloc_frozen_pages_noprof+0x2c8/0x370 mm/page_alloc.c:5159
Modules linked in:
CPU: 1 UID: 0 PID: 6074 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__alloc_frozen_pages_noprof+0x2c8/0x370 mm/page_alloc.c:5159
Code: 74 10 4c 89 e7 89 54 24 0c e8 e4 8f 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 a5 fe ff ff e9 a6 fe ff ff c6 05 77 20 8e 0c 01 90 <0f> 0b 90 e9 18 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc900047676a0 EFLAGS: 00010246
RAX: ffffc90004767600 RBX: 000000000000000d RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90004767708
RBP: ffffc90004767788 R08: ffffc90004767707 R09: 0000000000000000
R10: ffffc900047676e0 R11: fffff520008ecee1 R12: 0000000000000000
R13: 1ffff920008eced8 R14: 0000000000040cc0 R15: dffffc0000000000
FS:  00005555849df500(0000) GS:ffff88812713b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae5e9c1000 CR3: 00000000269da000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416
 ___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:5544
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5575
 __do_kmalloc_node mm/slub.c:5591 [inline]
 __kmalloc_noprof+0x4c0/0x7d0 mm/slub.c:5615
 kmalloc_noprof include/linux/slab.h:961 [inline]
 kmalloc_array_noprof include/linux/slab.h:1003 [inline]
 ext4_init_orphan_info+0x2b7/0xc70 fs/ext4/orphan.c:592
 __ext4_fill_super fs/ext4/super.c:5596 [inline]
 ext4_fill_super+0x55ef/0x60b0 fs/ext4/super.c:5734
 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1692
 vfs_get_tree+0x92/0x2b0 fs/super.c:1752
 do_new_mount+0x2a2/0xa30 fs/namespace.c:3750
 do_mount fs/namespace.c:4078 [inline]
 __do_sys_mount fs/namespace.c:4278 [inline]
 __se_sys_mount+0x317/0x410 fs/namespace.c:4255
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f61234e066a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fff005e7a68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff005e7af0 RCX: 00007f61234e066a
RDX: 0000200000000040 RSI: 00002000000001c0 RDI: 00007fff005e7ab0
RBP: 0000200000000040 R08: 00007fff005e7af0 R09: 0000000000000404
R10: 0000000000000404 R11: 0000000000000246 R12: 00002000000001c0
R13: 00007fff005e7ab0 R14: 0000000000000449 R15: 0000200000000000
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/03 05:46 upstream e406d57be7bd 49379ee0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-upstream-fs WARNING in ext4_init_orphan_info
2025/09/08 11:47 upstream 76eeb9b8de98 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-upstream-fs WARNING in ext4_init_orphan_info
2025/09/08 10:58 upstream 76eeb9b8de98 d291dd2d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-snapshot-upstream-root WARNING in ext4_init_orphan_info
2025/09/08 10:45 upstream 76eeb9b8de98 d291dd2d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-snapshot-upstream-root WARNING in ext4_init_orphan_info
2025/09/08 10:34 upstream 76eeb9b8de98 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in ext4_init_orphan_info
* Struck through repros no longer work on HEAD.