syzbot


kernel BUG in ext4_mb_find_by_goal

Status: auto-obsoleted due to no activity on 2023/09/19 22:50
Reported-by: syzbot+90a3060b3c390c17c7f9@syzkaller.appspotmail.com
First crash: 409d, last: 297d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 620a3c28221bb219b81bc0bffd065cc187494302
Author: Theodore Ts'o <tytso@mit.edu>
Date: Sat Apr 29 04:06:28 2023 +0000

  ext4: allow ext4_get_group_info() to fail

  
Bug presence (2)
Date Name Commit Repro Result
2023/07/04 lts (merge base) f67653019430 C Didn't crash
2023/07/04 upstream (ToT) b5641a5d8b8b C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 13 431d 1249d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-5-10 kernel BUG in ext4_mb_find_by_goal C error done 31 295d 336d 2/2 fixed on 2023/08/16 20:51
android-54 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C 209 9h02m 1287d 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 179d 336d 0/2 auto-obsoleted due to no activity on 2023/12/31 02:01

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3355!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 639 Comm: syz-executor362 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #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:3355 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xdf4/0xe30 fs/ext4/mballoc.c:2206
Code: c6 ff e9 b5 fb ff ff e8 6a 0a 85 ff 49 bc 00 00 00 00 00 fc ff df e9 6f f7 ff ff e8 56 0a 85 ff e9 51 f7 ff ff e8 4c 0a 85 ff <0f> 0b e8 55 03 d0 02 e8 40 0a 85 ff 0f 0b e8 39 0a 85 ff 0f 0b e8
RSP: 0018:ffffc900013a7180 EFLAGS: 00010293
RAX: ffffffff81eae174 RBX: 0000000000000001 RCX: ffff888118cb2780
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc900013a7290 R08: ffffffff81ead4ab R09: ffffed102410398a
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11022c81879
R13: 0000000000000001 R14: 1ffff92000274e40 R15: ffff88811640c3c8
FS:  00007f600e02f700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f600e0d4958 CR3: 000000010cacf000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_mb_regular_allocator+0x247/0x3810 fs/ext4/mballoc.c:2658
 ext4_mb_new_blocks+0xe3c/0x43f0 fs/ext4/mballoc.c:5623
 ext4_ext_map_blocks+0x1a0d/0x7250 fs/ext4/extents.c:4287
 ext4_map_blocks+0xaa7/0x1e30 fs/ext4/inode.c:646
 ext4_alloc_file_blocks+0x3d5/0xcd0 fs/ext4/extents.c:4474
 ext4_fallocate+0xbe7/0x1f90 fs/ext4/extents.c:4763
 vfs_fallocate+0x492/0x570 fs/open.c:309
 ksys_fallocate fs/open.c:332 [inline]
 __do_sys_fallocate fs/open.c:340 [inline]
 __se_sys_fallocate fs/open.c:338 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:338
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f600e0837e9
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:00007f600e02f2f8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f600e1097a0 RCX: 00007f600e0837e9
RDX: 0000000000008947 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f600e0d657c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 00007f600e0d5578
R13: 0031656c69662f2e R14: 6f6f6c2f7665642f R15: 00007f600e1097a8
 </TASK>
Modules linked in:
---[ end trace 0da7a39c4d7bdfca ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3355 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xdf4/0xe30 fs/ext4/mballoc.c:2206
Code: c6 ff e9 b5 fb ff ff e8 6a 0a 85 ff 49 bc 00 00 00 00 00 fc ff df e9 6f f7 ff ff e8 56 0a 85 ff e9 51 f7 ff ff e8 4c 0a 85 ff <0f> 0b e8 55 03 d0 02 e8 40 0a 85 ff 0f 0b e8 39 0a 85 ff 0f 0b e8
RSP: 0018:ffffc900013a7180 EFLAGS: 00010293
RAX: ffffffff81eae174 RBX: 0000000000000001 RCX: ffff888118cb2780
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc900013a7290 R08: ffffffff81ead4ab R09: ffffed102410398a
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11022c81879
R13: 0000000000000001 R14: 1ffff92000274e40 R15: ffff88811640c3c8
FS:  00007f600e02f700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555572872b8 CR3: 000000010cacf000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/15 05:13 android13-5.15-lts 19c0ed55a470 76decb82 .config strace log report syz C [mounted in repro] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/17 18:49 android13-5.15-lts 19c0ed55a470 eaac4681 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/25 05:35 android13-5.15-lts 565c3abfa129 79782afc .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/15 22:09 android13-5.15-lts 19c0ed55a470 c4d362e7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/26 00:08 android13-5.15-lts 565c3abfa129 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/25 12:59 android13-5.15-lts 565c3abfa129 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/21 20:18 android13-5.15-lts 2df021e7ff83 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/21 20:18 android13-5.15-lts 2df021e7ff83 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/18 15:32 android13-5.15-lts 36f4f6fb72d5 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/16 12:22 android13-5.15-lts 19c0ed55a470 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/11 07:39 android13-5.15-lts 19c0ed55a470 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/06/01 11:46 android13-5.15-lts 19c0ed55a470 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/29 14:11 android13-5.15-lts 19c0ed55a470 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/29 14:11 android13-5.15-lts 19c0ed55a470 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/29 01:37 android13-5.15-lts 19c0ed55a470 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/05/27 02:28 android13-5.15-lts 19c0ed55a470 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/04/10 15:00 android13-5.15-lts 7364b7abbafb 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/03/12 02:04 android13-5.15-lts 5448b2fda85f 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
2023/03/06 08:40 android13-5.15-lts 5448b2fda85f f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_mb_find_by_goal
* Struck through repros no longer work on HEAD.