syzbot


kernel BUG in ext4_mb_find_by_goal

Status: fixed on 2023/08/16 20:51
Reported-by: syzbot+91b24b8863f5581fbbc8@syzkaller.appspotmail.com
Fix commit: 100c0ad6c045 ext4: allow ext4_get_group_info() to fail
First crash: 554d, last: 513d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 100c0ad6c04597fefeaaba2bb1827cc015d95067
Author: Theodore Ts'o <tytso@mit.edu>
Date: Sat Apr 29 04:06:28 2023 +0000

  ext4: allow ext4_get_group_info() to fail

  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 kernel BUG in ext4_mb_find_by_goal C error done 19 514d 554d 0/2 auto-obsoleted due to no activity on 2023/09/19 22:50
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 13 648d 1467d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-54 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C 438 12d 1505d 0/2 upstream: reported C repro on 2020/10/08 13:59
android-6-1 kernel BUG in ext4_mb_find_by_goal origin:lts C error done 78 396d 554d 0/2 auto-obsoleted due to no activity on 2023/12/31 02:01

Sample crash report:
ext4 filesystem being mounted at /root/syzkaller.ZhkiGT/13/file1 supports timestamps until 2038 (0x7fffffff)
EXT4-fs error (device loop0): ext4_map_blocks:602: inode #3: block 9: comm syz-executor275: lblock 0 mapped to illegal pblock 9 (length 1)
EXT4-fs error (device loop0) in ext4_reserve_inode_write:5877: Out of memory
EXT4-fs error (device loop0): ext4_dirty_inode:6087: inode #16: comm syz-executor275: mark_inode_dirty error
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3247!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 371 Comm: syz-executor275 Not tainted 5.10.178-syzkaller-00238-g8a30c9beebe8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xe18/0xe50 fs/ext4/mballoc.c:1885
Code: 24 30 e9 be fb ff ff e8 06 c1 89 ff 48 bb 00 00 00 00 00 fc ff df e9 23 f7 ff ff e8 f2 c0 89 ff e9 05 f7 ff ff e8 e8 c0 89 ff <0f> 0b e8 81 c7 c8 02 e8 dc c0 89 ff 0f 0b e8 d5 c0 89 ff 0f 0b e8
RSP: 0018:ffffc90000e47220 EFLAGS: 00010293
RAX: ffffffff81e0b8c8 RBX: 0000000000000001 RCX: ffff88810c323b40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000e47330 R08: ffffffff81e0abdf R09: ffffed10238b8e12
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810cd493c8
R13: 0000000000000001 R14: 1ffff110219a9279 R15: 1ffff920001c8e54
FS:  00007f9fd6998700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000011edc4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_mb_regular_allocator+0x249/0x2030 fs/ext4/mballoc.c:2321
 ext4_mb_new_blocks+0xfb1/0x4430 fs/ext4/mballoc.c:5038
 ext4_ext_map_blocks+0x190e/0x6be0 fs/ext4/extents.c:4281
 ext4_map_blocks+0xaa7/0x1f00 fs/ext4/inode.c:646
 ext4_alloc_file_blocks+0x3f4/0xcd0 fs/ext4/extents.c:4469
 ext4_fallocate+0x853/0x1cb0 fs/ext4/extents.c:4755
 vfs_fallocate+0x492/0x570 fs/open.c:310
 ksys_fallocate fs/open.c:333 [inline]
 __do_sys_fallocate fs/open.c:341 [inline]
 __se_sys_fallocate fs/open.c:339 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:339
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f9fd69ec709
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9fd69982f8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f9fd6a727a0 RCX: 00007f9fd69ec709
RDX: 0000000000008947 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f9fd6a3f57c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 00007f9fd6a3e578
R13: 0031656c69662f2e R14: 6f6f6c2f7665642f R15: 00007f9fd6a727a8
Modules linked in:
---[ end trace f94a316d0cf427d2 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xe18/0xe50 fs/ext4/mballoc.c:1885
Code: 24 30 e9 be fb ff ff e8 06 c1 89 ff 48 bb 00 00 00 00 00 fc ff df e9 23 f7 ff ff e8 f2 c0 89 ff e9 05 f7 ff ff e8 e8 c0 89 ff <0f> 0b e8 81 c7 c8 02 e8 dc c0 89 ff 0f 0b e8 d5 c0 89 ff 0f 0b e8
RSP: 0018:ffffc90000e47220 EFLAGS: 00010293
RAX: ffffffff81e0b8c8 RBX: 0000000000000001 RCX: ffff88810c323b40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc90000e47330 R08: ffffffff81e0abdf R09: ffffed10238b8e12
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810cd493c8
R13: 0000000000000001 R14: 1ffff110219a9279 R15: 1ffff920001c8e54
FS:  00007f9fd6998700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000011edc4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/15 05:10 android13-5.10-lts 8a30c9beebe8 76decb82 .config strace log report syz C [mounted in repro] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/05/17 19:00 android13-5.10-lts 43c801dc3325 eaac4681 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/25 09:19 android13-5.10-lts 571f442f6752 79782afc .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/27 14:04 android13-5.10-lts b04c94b9f966 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/27 14:04 android13-5.10-lts b04c94b9f966 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/27 03:01 android13-5.10-lts 571f442f6752 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/26 13:00 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/26 05:02 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/26 02:47 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/26 01:00 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/25 04:53 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/25 00:28 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/24 16:00 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/24 11:30 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/21 19:46 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/20 10:32 android13-5.10-lts 8a30c9beebe8 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/19 20:56 android13-5.10-lts 8a30c9beebe8 d521bc56 .config console log report info ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/19 09:39 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/19 06:54 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/18 19:41 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/18 15:37 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/18 09:28 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/17 13:08 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/16 12:17 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/16 09:18 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/10 21:13 android13-5.10-lts 43c801dc3325 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/08 10:48 android13-5.10-lts 43c801dc3325 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/05 16:37 android13-5.10-lts 43c801dc3325 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/06/03 10:32 android13-5.10-lts 43c801dc3325 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/05/29 13:50 android13-5.10-lts 43c801dc3325 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
2023/05/21 02:47 android13-5.10-lts 43c801dc3325 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_mb_find_by_goal
* Struck through repros no longer work on HEAD.