syzbot


kernel BUG at fs/ext4/ext4.h:LINE!

Status: upstream: reported C repro on 2020/10/08 13:59
Labels: ext4 (incorrect?)
Reported-by: syzbot+c24787e72920213d5bcb@syzkaller.appspotmail.com
First crash: 970d, last: 10d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 kernel BUG in ext4_mb_find_by_goal origin:lts C error 10 4d05h 18d 0/2 upstream: reported C repro on 2023/05/17 18:53
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 13 113d 932d 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 5 14m 18d 0/2 upstream: reported C repro on 2023/05/17 19:02
android-6-1 kernel BUG in ext4_mb_find_by_goal origin:lts C error 6 1d10h 18d 0/2 upstream: reported C repro on 2023/05/17 18:41
upstream kernel BUG at fs/ext4/ext4.h:LINE! 1 885d 881d 0/24 auto-closed as invalid on 2021/05/01 06:31
android-5-10 kernel BUG in ext4_free_blocks 3 539d 571d 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 93d 767d 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 34d 336d 2/2 fixed on 2023/05/04 14:51
upstream kernel BUG in ext4_get_group_info ext4 C error 237 22d 655d 23/24 upstream: reported C repro on 2021/08/19 08:21
android-5-15 kernel BUG in ext4_mb_load_buddy_gfp (2) origin:upstream C error 17 1d19h 30d 0/2 upstream: reported C repro on 2023/05/06 10:12
android-6-1 kernel BUG in ext4_mb_load_buddy_gfp origin:lts C error 6 10d 19d 0/2 upstream: reported C repro on 2023/05/17 04:29
android-5-15 kernel BUG in ext4_mb_load_buddy_gfp ext4 C error 9 73d 190d 2/2 fixed on 2023/03/28 12:29
android-5-10 kernel BUG in ext4_mb_load_buddy_gfp C error 14 1d19h 31d 0/2 upstream: reported C repro on 2023/05/04 23:52
android-5-15 kernel BUG in ext4_free_blocks ext4 1 134d 134d 0/2 auto-obsoleted due to no activity on 2023/04/30 03:35

Sample crash report:
EXT4-fs error (device loop0) in ext4_reserve_inode_write:6082: Corrupt filesystem
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:2981!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 357 Comm: syz-executor289 Not tainted 5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2981 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xc10/0xc50 fs/ext4/mballoc.c:1825
Code: fc ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c 0d fc ff ff 48 89 d7 e8 7f 90 c8 ff 48 8b 54 24 30 e9 fb fb ff ff e8 40 d8 98 ff <0f> 0b e8 e9 a1 6f ff e8 34 d8 98 ff 0f 0b e8 2d d8 98 ff 0f 0b e8
RSP: 0018:ffff8881dc0366a0 EFLAGS: 00010293
RAX: ffffffff81cb4600 RBX: 0000000000000001 RCX: ffff8881e019bf00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8881dc0367b0 R08: ffffffff81cb3b29 R09: ffffed103d37ec8e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff8881dc0793f0 R14: 1ffff1103b806ce4 R15: 1ffff1103b80f27e
FS:  0000555556d38300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200400bf CR3: 00000001dd0da000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_mb_regular_allocator+0x229/0x10d0 fs/ext4/mballoc.c:2128
 ext4_mb_new_blocks+0x59a/0x2d10 fs/ext4/mballoc.c:4577
 ext4_ext_map_blocks+0x1e70/0x7450 fs/ext4/extents.c:4511
 ext4_map_blocks+0xa83/0x1c40 fs/ext4/inode.c:661
 _ext4_get_block+0x21b/0x610 fs/ext4/inode.c:812
 ext4_get_block_trans+0x41a/0x5b0 fs/ext4/inode.c:873
 get_more_blocks fs/direct-io.c:714 [inline]
 do_direct_IO fs/direct-io.c:1008 [inline]
 do_blockdev_direct_IO fs/direct-io.c:1340 [inline]
 __blockdev_direct_IO+0x16b1/0x49b0 fs/direct-io.c:1426
 ext4_direct_IO_write fs/ext4/inode.c:3840 [inline]
 ext4_direct_IO+0xc36/0x19a0 fs/ext4/inode.c:4002
 generic_file_direct_write+0x509/0x740 mm/filemap.c:3214
 __generic_file_write_iter+0x27d/0x530 mm/filemap.c:3397
 ext4_file_write_iter+0x8f8/0x10e0 fs/ext4/file.c:270
 call_write_iter include/linux/fs.h:1981 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0x5d3/0x750 fs/read_write.c:496
 vfs_write+0x206/0x4e0 fs/read_write.c:558
 ksys_write+0x199/0x2c0 fs/read_write.c:611
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 0ac9c20f36b64924 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2981 [inline]
RIP: 0010:ext4_mb_find_by_goal+0xc10/0xc50 fs/ext4/mballoc.c:1825
Code: fc ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c 0d fc ff ff 48 89 d7 e8 7f 90 c8 ff 48 8b 54 24 30 e9 fb fb ff ff e8 40 d8 98 ff <0f> 0b e8 e9 a1 6f ff e8 34 d8 98 ff 0f 0b e8 2d d8 98 ff 0f 0b e8
RSP: 0018:ffff8881dc0366a0 EFLAGS: 00010293
RAX: ffffffff81cb4600 RBX: 0000000000000001 RCX: ffff8881e019bf00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8881dc0367b0 R08: ffffffff81cb3b29 R09: ffffed103d37ec8e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff8881dc0793f0 R14: 1ffff1103b806ce4 R15: 1ffff1103b80f27e
FS:  0000555556d38300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200400bf CR3: 00000001dd0da000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/17 18:48 android12-5.4 f423d52eea72 eaac4681 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/05/05 01:07 android12-5.4 cf4e000017b8 518a39a6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/20 01:30 android12-5.4 f4e4be09c27c 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/19 02:20 android12-5.4 f4e4be09c27c 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/15 05:12 android12-5.4 f4e4be09c27c 0d5c4377 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2022/10/02 16:47 android12-5.4 3ee2a37108c8 feb56351 .config strace log report syz C [disk image] [vmlinux] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2022/07/04 02:33 android12-5.4 148e4ba7f4fc 1434eec0 .config strace log report syz C ci2-android-5-4-kasan kernel BUG in ext4_free_blocks
2021/03/27 06:23 android12-5.4 7af03784d889 a8529b82 .config console log report syz C ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/30 11:52 android12-5.4 da100c5e0cf5 f325deb0 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/02/02 08:20 android12-5.4 6a5ec6cea0cd 9a6f477c .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2021/08/21 13:25 android12-5.4 3ce13296e72d b599f2fc .config console log report syz ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2021/01/20 11:25 android12-5.4 e4139b2a81bd d4f4eca5 .config console log report syz ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/05/25 18:56 android12-5.4 e7141bb18b62 0513b3e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/05/18 04:32 android12-5.4 f423d52eea72 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/05/16 21:57 android12-5.4 f423d52eea72 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/05/06 09:31 android12-5.4 0fcb7cff9462 de870ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/05/03 16:28 android12-5.4 cf4e000017b8 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/04/18 22:49 android12-5.4 21086923c1e6 d931e9f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/12 18:05 android12-5.4 21086923c1e6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/11 19:46 android12-5.4 21086923c1e6 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/11 09:32 android12-5.4 21086923c1e6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/10 23:31 android12-5.4 21086923c1e6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/10 13:11 android12-5.4 21086923c1e6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/09 17:02 android12-5.4 21086923c1e6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/05 01:53 android12-5.4 d229b250494c 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/04/03 15:25 android12-5.4 0e0b8c9892c8 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/26 14:50 android12-5.4 07edbcca3d39 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/20 09:08 android12-5.4 f4e4be09c27c 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/03/19 01:13 android12-5.4 f4e4be09c27c 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/18 22:20 android12-5.4 f4e4be09c27c 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/03/18 18:26 android12-5.4 f4e4be09c27c 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/03/16 19:45 android12-5.4 f4e4be09c27c 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/03/15 07:37 android12-5.4 f4e4be09c27c 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_find_by_goal
2023/02/13 17:33 android12-5.4 6a5ec6cea0cd 957959cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2023/02/05 08:56 android12-5.4 6a5ec6cea0cd be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_free_blocks
2023/02/02 08:02 android12-5.4 6a5ec6cea0cd 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2022/12/31 08:07 android12-5.4 a8aad8851131 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2022/08/16 11:45 android12-5.4 2bf0b614f0fb 7a7cb304 .config console log report info ci2-android-5-4-kasan kernel BUG in ext4_mb_load_buddy_gfp
2021/11/11 19:57 android12-5.4 f49f3b377eae 75b04091 .config console log report info ci2-android-5-4-kasan kernel BUG in ext4_free_blocks
2020/10/08 13:58 android12-5.4 54d2c66faf42 92390980 .config console log report info ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.