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: 403d, last: 51d

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 633d 629d 0/24 auto-closed as invalid on 2021/05/01 06:31
android-5-10 kernel BUG in ext4_free_blocks 3 287d 319d 0/2 auto-closed as invalid on 2022/03/13 09:34
linux-4.14 kernel BUG in ext4_mb_load_buddy_gfp C 4 24d 514d 0/1 upstream: reported C repro on 2021/04/29 16:39
android-5-10 kernel BUG in ext4_free_blocks (2) C error 2 84d 84d 0/2 upstream: reported C repro on 2022/07/04 02:04
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! C error 8 83d 679d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-54 kernel BUG at fs/ext4/ext4.h:LINE! C 7 40d 717d 0/2 upstream: reported C repro on 2020/10/08 13:59

Sample crash report:
EXT4-fs (loop0): ext4_check_descriptors: Checksum for group 0 failed (14603!=0)
EXT4-fs (loop0): orphan cleanup on readonly fs
EXT4-fs error (device loop0): ext4_mb_clear_bb:5962: comm syz-executor137: Freeing blocks in system zone - Block = 16, count = 16
EXT4-fs (loop0): Remounting filesystem read-only
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3319!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3607 Comm: syz-executor137 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3319
Code: ff 48 c7 c2 a0 b5 e2 89 be c3 02 00 00 48 c7 c7 00 b6 e2 89 c6 05 39 e3 89 0b 01 e8 fc 1d 16 07 e9 d9 fd ff ff e8 22 af 5d ff <0f> 0b e8 9b 76 aa ff e9 ea fc ff ff e8 91 76 aa ff e9 24 fd ff ff
RSP: 0018:ffffc90002fcf210 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000000000
RDX: ffff888024b99d80 RSI: ffffffff821d2a9e RDI: 0000000000000004
RBP: ffff888021e86000 R08: 0000000000000004 R09: 0000000000000001
R10: 00000000ffffffff R11: 0000000000000001 R12: ffff888021ee2000
R13: ffff888021ee2678 R14: 0000000000000001 R15: dffffc0000000000
FS:  00005555570a1300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005ded08 CR3: 0000000025559000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 ext4_mb_clear_bb fs/ext4/mballoc.c:5935 [inline]
 ext4_free_blocks+0x4a2/0x2060 fs/ext4/mballoc.c:6185
 ext4_clear_blocks+0x329/0x430 fs/ext4/indirect.c:880
 ext4_free_data+0x1a3/0x3e0 fs/ext4/indirect.c:954
 ext4_ind_truncate+0x6a2/0x950 fs/ext4/indirect.c:1146
 ext4_truncate+0x696/0x1440 fs/ext4/inode.c:4244
 ext4_evict_inode+0xa5f/0x1970 fs/ext4/inode.c:284
 evict+0x2ed/0x6b0 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput.part.0+0x562/0x820 fs/inode.c:1770
 iput+0x58/0x70 fs/inode.c:1760
 ext4_quota_enable fs/ext4/super.c:6781 [inline]
 ext4_enable_quotas+0x5c4/0xb70 fs/ext4/super.c:6804
 ext4_orphan_cleanup+0xde1/0x10f0 fs/ext4/orphan.c:432
 __ext4_fill_super fs/ext4/super.c:5368 [inline]
 ext4_fill_super+0xac9a/0xe830 fs/ext4/super.c:5507
 get_tree_bdev+0x440/0x760 fs/super.c:1292
 vfs_get_tree+0x89/0x2f0 fs/super.c:1497
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa6cfe974da
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 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:00007ffc803cf6f8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc803cf750 RCX: 00007fa6cfe974da
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffc803cf710
RBP: 00007ffc803cf710 R08: 00007ffc803cf750 R09: 0000000800000015
R10: 0000000000000081 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 0000000000000010
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_get_group_info+0x36e/0x3d0 fs/ext4/ext4.h:3319
Code: ff 48 c7 c2 a0 b5 e2 89 be c3 02 00 00 48 c7 c7 00 b6 e2 89 c6 05 39 e3 89 0b 01 e8 fc 1d 16 07 e9 d9 fd ff ff e8 22 af 5d ff <0f> 0b e8 9b 76 aa ff e9 ea fc ff ff e8 91 76 aa ff e9 24 fd ff ff
RSP: 0018:ffffc90002fcf210 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000000000
RDX: ffff888024b99d80 RSI: ffffffff821d2a9e RDI: 0000000000000004
RBP: ffff888021e86000 R08: 0000000000000004 R09: 0000000000000001
R10: 00000000ffffffff R11: 0000000000000001 R12: ffff888021ee2000
R13: ffff888021ee2678 R14: 0000000000000001 R15: dffffc0000000000
FS:  00005555570a1300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc803d0000 CR3: 0000000025559000 CR4: 0000000000350ef0

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/07/15 19:19 upstream 9b59ec8d50a1 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/06/15 15:19 upstream 018ab4fabddd a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/05/16 14:57 upstream 42226c989789 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/04/16 14:30 upstream 59250f8a7f3a a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/03/17 14:11 upstream 56e337f2cf13 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/02/15 11:55 upstream d567f5db412e a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/01/16 11:34 upstream 4d66020dcef8 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2021/12/17 11:12 upstream 6441998e2e37 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2021/11/17 10:51 upstream 8ab774587903 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2021/10/18 10:27 upstream 519d81956ee2 a2fe1cb5 .config log report syz
ci-upstream-kasan-gce-smack-root 2021/09/18 10:04 upstream 4357f03d6611 a2fe1cb5 .config log report syz
* Struck through repros no longer work on HEAD.
Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/08/05 11:45 upstream 200e340f2196 1c9013ac .config log report syz C kernel BUG in ext4_get_group_info
ci-upstream-kasan-gce-smack-root 2021/08/19 03:42 upstream 614cb2751d31 a2fe1cb5 .config log report syz kernel BUG in ext4_get_group_info
* Struck through repros no longer work on HEAD.