syzbot


kernel BUG in ext4_mb_load_buddy_gfp

Status: auto-obsoleted due to no activity on 2023/12/29 16:31
Reported-by: syzbot+0c2e4af35c1c6787b863@syzkaller.appspotmail.com
First crash: 401d, last: 244d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit b4319e457d6e3fb33e443efeaf4634fc36e8a9ed
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/11/13 lts (merge base) 52a953d0934b C Didn't crash
2023/11/13 upstream (ToT) b85ea95d0864 C Didn't crash
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 kernel BUG in ext4_mb_load_buddy_gfp (2) origin:upstream missing-backport C error done 24 364d 412d 0/2 upstream: reported C repro on 2023/05/06 10:12
android-5-10 kernel BUG in ext4_free_blocks 3 921d 953d 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 475d 1148d 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 25 416d 718d 2/2 fixed on 2023/05/04 14:51
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 13 495d 1314d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-5-15 kernel BUG in ext4_mb_load_buddy_gfp ext4 C error 9 455d 572d 2/2 fixed on 2023/03/28 12:29
android-5-10 kernel BUG in ext4_mb_load_buddy_gfp C error 28 29d 413d 0/2 upstream: reported C repro on 2023/05/04 23:52
android-54 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C 416 16h47m 1352d 0/2 upstream: reported C repro on 2020/10/08 13:59

Sample crash report:
ext4 filesystem being mounted at /root/file1 supports timestamps until 2038 (0x7fffffff)
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3331!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 295 Comm: syz-executor146 Not tainted 6.1.25-syzkaller-00026-g5e7421101fe2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3331 [inline]
RIP: 0010:ext4_mb_load_buddy_gfp+0xef8/0xf10 fs/ext4/mballoc.c:1448
Code: 9e 37 c6 ff e9 de f3 ff ff e8 d4 1a 80 ff 48 c7 c7 20 fa cb 86 4c 89 ee 48 89 da e8 72 c6 a8 00 e9 50 f2 ff ff e8 b8 1a 80 ff <0f> 0b e8 b1 1a 80 ff 0f 0b e8 aa 1a 80 ff 0f 0b 0f 1f 84 00 00 00
RSP: 0018:ffffc90000e07988 EFLAGS: 00010293
RAX: ffffffff81f4ca58 RBX: 0000000000000001 RCX: ffff8881219ee540
RDX: 0000000000000000 RSI: 0000000020457be0 RDI: 0000000000000001
RBP: ffffc90000e07a10 R08: ffffffff81f4bc4c R09: ffffed10200ac7b0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020457be0
R13: ffff88811df8e000 R14: ffff88811cf913c8 R15: ffff88811cf91018
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056200aaa53f0 CR3: 0000000121c50000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_discard_preallocations+0x79c/0xef0 fs/ext4/mballoc.c:5021
 ext4_release_file+0x16e/0x310 fs/ext4/file.c:166
 __fput+0x3ab/0x870 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x24d/0x2e0 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xbc5/0x2a40 kernel/exit.c:872
 do_group_exit+0x21a/0x2d0 kernel/exit.c:1022
 __do_sys_exit_group kernel/exit.c:1033 [inline]
 __se_sys_exit_group kernel/exit.c:1031 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1031
 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+0x63/0xcd
RIP: 0033:0x7feee4ff4279
Code: Unable to access opcode bytes at 0x7feee4ff424f.
RSP: 002b:00007ffcb8bfcb78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feee4ff4279
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007feee506f370 R08: ffffffffffffffb8 R09: 00007ffcb8bfcd98
R10: 0000000000000012 R11: 0000000000000246 R12: 00007feee506f370
R13: 0000000000000000 R14: 00007feee50700e0 R15: 00007feee4fc2b40
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3331 [inline]
RIP: 0010:ext4_mb_load_buddy_gfp+0xef8/0xf10 fs/ext4/mballoc.c:1448
Code: 9e 37 c6 ff e9 de f3 ff ff e8 d4 1a 80 ff 48 c7 c7 20 fa cb 86 4c 89 ee 48 89 da e8 72 c6 a8 00 e9 50 f2 ff ff e8 b8 1a 80 ff <0f> 0b e8 b1 1a 80 ff 0f 0b e8 aa 1a 80 ff 0f 0b 0f 1f 84 00 00 00
RSP: 0018:ffffc90000e07988 EFLAGS: 00010293
RAX: ffffffff81f4ca58 RBX: 0000000000000001 RCX: ffff8881219ee540
RDX: 0000000000000000 RSI: 0000000020457be0 RDI: 0000000000000001
RBP: ffffc90000e07a10 R08: ffffffff81f4bc4c R09: ffffed10200ac7b0
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020457be0
R13: ffff88811df8e000 R14: ffff88811cf913c8 R15: ffff88811cf91018
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056200aaa53f0 CR3: 0000000121c50000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/14 11:21 android14-6.1 5e7421101fe2 d624500f .config strace log report syz C [mounted in repro] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/17 15:25 android14-6.1 7d346b229c78 eaac4681 .config strace log report syz C [mounted in repro] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/17 05:12 android14-6.1 10e4c804f2f9 11c89444 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/17 04:27 android14-6.1 10e4c804f2f9 11c89444 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/20 16:30 android14-6.1 7e1cb3bdec3c 361b23dc .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/19 18:52 android14-6.1 f82e0808101f 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/19 13:24 android14-6.1 f82e0808101f 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/18 02:12 android14-6.1 7c793b4d8fff 342b9c55 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/12 08:40 android14-6.1 f4812c6864dc 1b231e3c .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/09 15:42 android14-6.1 1fe248991f96 3c53c7d9 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/10/02 07:05 android14-6.1 52824b718cd0 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/29 18:10 android14-6.1 52824b718cd0 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/27 13:50 android14-6.1 b374d9419575 2895a507 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/26 11:26 android14-6.1 b548c046c7de 0b6a67ac .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/24 04:22 android14-6.1 060ebb378d1c 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/07 04:55 android14-6.1 3367abadff8d 72324844 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/09/03 16:59 android14-6.1 b15c3a3df0a8 696ea0d2 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/08/28 07:58 android14-6.1 5ef132d5643b 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/08/22 21:37 android14-6.1 722f6cc09c1d b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/08/11 09:35 android14-6.1 3fc69d3f70e1 da3c3ef8 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/08/08 23:57 android14-6.1 960d9828eee1 9552ae77 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/07/25 06:36 android14-6.1 6eb48b89a513 b03242d7 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/07/08 11:00 android14-6.1 0a2e9dd65c6b 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/29 13:58 android14-6.1 80ac9236949e 134ddc02 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/29 03:48 android14-6.1 251aa28d1640 ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/28 06:06 android14-6.1 43d7226c5f91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/28 06:05 android14-6.1 43d7226c5f91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/28 05:54 android14-6.1 43d7226c5f91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/28 05:42 android14-6.1 43d7226c5f91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/28 05:42 android14-6.1 43d7226c5f91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/26 17:56 android14-6.1 a39af6210e91 4cd5bb25 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/26 02:14 android14-6.1 fa9645687ea5 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/22 05:39 android14-6.1 734b06dabf64 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/22 02:55 android14-6.1 734b06dabf64 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/21 14:55 android14-6.1 d28f02c47b77 79782afc .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/21 14:27 android14-6.1 d28f02c47b77 79782afc .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/21 14:05 android14-6.1 d28f02c47b77 79782afc .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/16 08:21 android14-6.1 d73b3af21fb9 f3921d4d .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/06/05 17:32 android14-6.1 675bc3a00e8e a4ae4f42 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/25 22:20 android14-6.1 07b9faefd4f4 0513b3e6 .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/24 13:37 android14-6.1 ae6e8fb652a7 4bce1a3e .config console log report info ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
2023/05/24 08:10 android14-6.1 86a6bbdc8ffe 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_mb_load_buddy_gfp
* Struck through repros no longer work on HEAD.