syzbot


kernel BUG in ext4_get_group_info

Status: upstream: reported C repro on 2021/08/19 08:21
Reported-by: syzbot+e2efa3efc15a1c9e95c3@syzkaller.appspotmail.com
First crash: 538d, last: 1d21h

Cause bisection: failed (bisect log)
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at fs/ext4/ext4.h:LINE! 1 768d 764d 0/24 auto-closed as invalid on 2021/05/01 06:31
android-5-10 kernel BUG in ext4_free_blocks 3 421d 454d 0/2 auto-closed as invalid on 2022/03/13 09:34
linux-4.14 kernel BUG in ext4_mb_load_buddy_gfp ext4 C 6 5d23h 649d 0/1 upstream: reported C repro on 2021/04/29 16:39
android-5-10 kernel BUG in ext4_free_blocks (2) ext4 C error 11 2d03h 219d 0/2 upstream: reported C repro on 2022/07/04 02:04
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 12 5d23h 814d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-54 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C 12 2d23h 852d 0/2 upstream: reported C repro on 2020/10/08 13:59

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3331!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3642 Comm: syz-executor315 Not tainted 6.1.0-syzkaller-03225-g764822972d64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3331
Code: ff 48 c7 c2 e0 77 62 8a be f1 02 00 00 48 c7 c7 40 78 62 8a c6 05 60 5f 18 0c 01 e8 18 8c 84 07 e9 d9 fd ff ff e8 02 49 5c ff <0f> 0b e8 5b 04 a9 ff e9 ea fc ff ff e8 51 04 a9 ff e9 24 fd ff ff
RSP: 0018:ffffc90003e5f3e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888023120000 RSI: ffffffff822477ae RDI: 0000000000000004
RBP: ffff8880273ea000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000092080 R12: ffff8880273e8000
R13: ffff8880273e8678 R14: 0000000000000001 R15: ffffc90003e5f7c0
FS:  0000555555a66300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f483e60098 CR3: 0000000076992000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ext4_mb_load_buddy_gfp+0xc9/0x1350 fs/ext4/mballoc.c:1448
 ext4_mb_load_buddy fs/ext4/mballoc.c:1570 [inline]
 ext4_mballoc_query_range+0xa5/0x890 fs/ext4/mballoc.c:6573
 ext4_getfsmap_datadev+0x17f8/0x2a10 fs/ext4/fsmap.c:537
 ext4_getfsmap+0x6ce/0x990 fs/ext4/fsmap.c:708
 ext4_ioc_getfsmap+0x344/0x990 fs/ext4/ioctl.c:902
 __ext4_ioctl+0x352/0x4b60 fs/ext4/ioctl.c:1226
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa69962c3e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffac3640b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fa69962c3e9
RDX: 0000000020000200 RSI: 00000000c0c0583b RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000003f1 R11: 0000000000000246 R12: 00007fa6995eb5c0
R13: 00007fffac3640e0 R14: 00007fffac3640cc R15: 00007fffac3640d0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3331
Code: ff 48 c7 c2 e0 77 62 8a be f1 02 00 00 48 c7 c7 40 78 62 8a c6 05 60 5f 18 0c 01 e8 18 8c 84 07 e9 d9 fd ff ff e8 02 49 5c ff <0f> 0b e8 5b 04 a9 ff e9 ea fc ff ff e8 51 04 a9 ff e9 24 fd ff ff
RSP: 0018:ffffc90003e5f3e0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888023120000 RSI: ffffffff822477ae RDI: 0000000000000004
RBP: ffff8880273ea000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000092080 R12: ffff8880273e8000
R13: ffff8880273e8678 R14: 0000000000000001 R15: ffffc90003e5f7c0
FS:  0000555555a66300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555a665d0 CR3: 0000000076992000 CR4: 0000000000350ef0

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2022/07/15 19:19 upstream 9b59ec8d50a1 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/06/15 15:19 upstream 018ab4fabddd a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/05/16 14:57 upstream 42226c989789 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/04/16 14:30 upstream 59250f8a7f3a a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/03/17 14:11 upstream 56e337f2cf13 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/02/15 11:55 upstream d567f5db412e a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2022/01/16 11:34 upstream 4d66020dcef8 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2021/12/17 11:12 upstream 6441998e2e37 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2021/11/17 10:51 upstream 8ab774587903 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2021/10/18 10:27 upstream 519d81956ee2 a2fe1cb5 .config console log report syz
ci-upstream-kasan-gce-smack-root 2021/09/18 10:04 upstream 4357f03d6611 a2fe1cb5 .config console log report syz
* Struck through repros no longer work on HEAD.
Crashes (53):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/12/14 06:25 upstream 764822972d64 e660de91 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/11/28 18:20 upstream b7b275e60bcd 247de55b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-root 2022/10/09 13:29 upstream a6afa4199d3d aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/10/03 17:28 upstream 4fe89d07dcc2 feb56351 .config strace log report syz C [disk image] [vmlinux] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-root 2022/08/05 11:45 upstream 200e340f2196 1c9013ac .config strace log report syz C kernel BUG in ext4_get_group_info
ci-upstream-linux-next-kasan-gce-root 2023/01/12 23:30 linux-next 0a093b2893c7 96166539 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci-upstream-linux-next-kasan-gce-root 2022/11/05 03:29 linux-next 0cdb3579f1ee 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci-upstream-gce-arm64 2022/11/27 16:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci-upstream-gce-arm64 2022/10/02 23:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/02 09:36 upstream 9f266ccaa2f5 9a6f477c .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/06 23:06 upstream 1f5abbd77e2c 1dac8c7a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2021/08/19 03:42 upstream 614cb2751d31 a2fe1cb5 .config console log report syz kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/06 11:04 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/05 14:19 upstream 837c07cf68fe be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/04 23:20 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/04 11:03 upstream 0136d86b7852 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/01 17:22 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/02/01 03:25 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/28 08:44 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-selinux-root 2023/01/28 04:29 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/27 17:15 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-root 2023/01/27 04:57 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/25 00:01 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/23 08:48 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/23 04:31 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-selinux-root 2023/01/22 23:07 upstream 2475bf0250de 559a440a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2023/01/22 09:49 upstream f67144022885 559a440a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2023/01/21 14:39 upstream f883675bf652 559a440a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/21 01:39 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/21 00:53 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/20 22:45 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/12 16:12 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/10 23:42 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/06 20:53 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2023/01/02 19:00 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/27 03:50 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/23 20:46 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/21 18:52 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/14 16:34 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2022/12/13 12:31 upstream 3a28c2c89f4b 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/13 00:20 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/10 02:28 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/09 10:59 upstream f3e8416619ce 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2022/12/09 07:29 upstream ce19275f0103 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/09 07:06 upstream f3e8416619ce 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/12/05 11:38 upstream 0ba09b173387 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-selinux-root 2022/12/05 11:31 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/11/27 20:05 upstream faf68e3523c2 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/10/27 19:29 upstream b229b6ca5abb 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
ci2-upstream-fs 2022/10/24 02:25 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] kernel BUG in ext4_get_group_info
ci-qemu-upstream-386 2022/12/30 05:57 upstream 2258c2dc850b 44712fbc .config console log report info kernel BUG in ext4_get_group_info
ci-qemu-upstream-386 2022/12/20 20:43 upstream 6feb57c2fd7c 4791c8e9 .config console log report info kernel BUG in ext4_get_group_info
ci-upstream-linux-next-kasan-gce-root 2023/01/27 15:10 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_get_group_info
* Struck through repros no longer work on HEAD.