syzbot


kernel BUG in ext4_es_cache_extent

Status: upstream: reported C repro on 2022/08/28 10:36
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+de7b7cb579b7d89c2b23@syzkaller.appspotmail.com
First crash: 548d, last: 31d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ext4_es_cache_extent ext4 C inconclusive 6 391d 751d 22/26 fixed on 2023/02/24 13:50
android-5-10 kernel BUG in ext4_es_cache_extent C error 1 548d 548d 0/2 closed as invalid on 2022/09/13 19:49
linux-4.14 kernel BUG in __es_tree_search C error 1 548d 548d 0/1 upstream: reported C repro on 2022/08/28 11:40
linux-4.19 kernel BUG in __es_tree_search C error 2 488d 548d 0/1 upstream: reported C repro on 2022/08/28 11:40
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/01/27 11:42 9m retest repro android12-5.4 report log
2024/01/27 11:42 8m retest repro android12-5.4 report log
2024/01/27 11:42 12m retest repro android12-5.4 report log
2023/12/21 10:56 13m retest repro android12-5.4 report log
2023/11/06 18:42 20m retest repro android12-5.4 report log
2023/10/12 10:18 10m retest repro android12-5.4 report log
2023/08/28 17:37 12m retest repro android12-5.4 report log
2023/06/22 04:57 16m retest repro android12-5.4 OK log

Sample crash report:
EXT4-fs error (device loop0): ext4_fill_super:4612: inode #2: comm syz-executor354: casefold flag without casefold feature
EXT4-fs (loop0): warning: mounting fs with errors, running e2fsck is recommended
------------[ cut here ]------------
kernel BUG at fs/ext4/extents_status.c:202!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 357 Comm: syz-executor354 Not tainted 5.4.259-syzkaller-00012-g57a39998c138 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:ext4_es_end fs/ext4/extents_status.c:202 [inline]
RIP: 0010:__es_tree_search fs/ext4/extents_status.c:220 [inline]
RIP: 0010:ext4_es_cache_extent+0x4c0/0x640 fs/ext4/extents_status.c:886
Code: d0 ff e9 fe fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 78 fe ff ff 4c 89 f7 e8 3a d6 d0 ff e9 6b fe ff ff e8 70 05 a1 ff <0f> 0b 4c 89 7c 24 18 65 8b 1d fa f1 3e 7e 89 d8 c1 e8 06 48 8d 3c
RSP: 0018:ffff8881dc90ee00 EFLAGS: 00010293
RAX: ffffffff81c33f30 RBX: 0000000000000000 RCX: ffff8881dc8fcec0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff8881dc90ef08 R08: ffffffff81c33c9e R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103d198c81
R13: dffffc0000000000 R14: ffff8881e8cc640c R15: 0000000000000001
FS:  00005555562fb380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ff6c4020a0 CR3: 00000001dce9f000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_cache_extents fs/ext4/extents.c:556 [inline]
 ext4_find_extent+0x4e1/0xda0 fs/ext4/extents.c:952
 ext4_ext_map_blocks+0x289/0x7450 fs/ext4/extents.c:4330
 ext4_map_blocks+0x3a4/0x1ba0 fs/ext4/inode.c:584
 ext4_getblk+0x112/0x540 fs/ext4/inode.c:985
 ext4_bread+0x89/0x390 fs/ext4/inode.c:1035
 ext4_quota_read+0x180/0x280 fs/ext4/super.c:6187
 v2_read_header fs/quota/quota_v2.c:64 [inline]
 v2_check_quota_file+0xf7/0x490 fs/quota/quota_v2.c:83
 dquot_load_quota_sb+0x6af/0xc00 fs/quota/dquot.c:2465
 vfs_load_quota_inode+0x3cf/0x660 fs/quota/dquot.c:2509
 ext4_quota_enable fs/ext4/super.c:6066 [inline]
 ext4_enable_quotas+0x5a8/0x940 fs/ext4/super.c:6092
 ext4_fill_super+0x84f0/0x8d90 fs/ext4/super.c:4708
 mount_bdev+0x267/0x370 fs/super.c:1426
 legacy_get_tree+0xdf/0x170 fs/fs_context.c:648
 vfs_get_tree+0x85/0x260 fs/super.c:1556
 do_new_mount+0x292/0x570 fs/namespace.c:2843
 do_mount+0x688/0xe10 fs/namespace.c:3163
 ksys_mount+0xc2/0xf0 fs/namespace.c:3372
 __do_sys_mount fs/namespace.c:3386 [inline]
 __se_sys_mount fs/namespace.c:3383 [inline]
 __x64_sys_mount+0xb1/0xc0 fs/namespace.c:3383
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 07428ef18b89f72d ]---
RIP: 0010:ext4_es_end fs/ext4/extents_status.c:202 [inline]
RIP: 0010:__es_tree_search fs/ext4/extents_status.c:220 [inline]
RIP: 0010:ext4_es_cache_extent+0x4c0/0x640 fs/ext4/extents_status.c:886
Code: d0 ff e9 fe fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 78 fe ff ff 4c 89 f7 e8 3a d6 d0 ff e9 6b fe ff ff e8 70 05 a1 ff <0f> 0b 4c 89 7c 24 18 65 8b 1d fa f1 3e 7e 89 d8 c1 e8 06 48 8d 3c
RSP: 0018:ffff8881dc90ee00 EFLAGS: 00010293
RAX: ffffffff81c33f30 RBX: 0000000000000000 RCX: ffff8881dc8fcec0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff8881dc90ef08 R08: ffffffff81c33c9e R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103d198c81
R13: dffffc0000000000 R14: ffff8881e8cc640c R15: 0000000000000001
FS:  00005555562fb380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ff6c4020a0 CR3: 00000001dce9f000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/13 11:25 android12-5.4 57a39998c138 551587c1 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2024/01/13 07:37 android12-5.4 57a39998c138 551587c1 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/09/28 09:29 android12-5.4 a1b9dbe5628a c2ab1e5d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/07/07 07:52 android12-5.4 6d5c2c1877e5 22ae5830 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2022/08/28 10:56 android12-5.4 f0306959ab7c 07177916 .config strace log report syz C [disk image] [vmlinux] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2024/01/13 04:48 android12-5.4 57a39998c138 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/11/28 20:37 android12-5.4 2ac128c04e33 1adfb6f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/11/28 08:22 android12-5.4 2ac128c04e33 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/07/21 17:40 android12-5.4 14e059a4e07a abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/07/07 03:19 android12-5.4 6d5c2c1877e5 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/04/13 04:31 android12-5.4 21086923c1e6 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/04/04 01:38 android12-5.4 a6b5274af71b 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2023/02/08 12:51 android12-5.4 6a5ec6cea0cd abbb67b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2022/10/17 21:06 android12-5.4 ff63a5f5cdf6 94744d21 .config console log report info [disk image] [vmlinux] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
2022/08/28 10:35 android12-5.4 f0306959ab7c 07177916 .config console log report info [disk image] [vmlinux] ci2-android-5-4-kasan kernel BUG in ext4_es_cache_extent
* Struck through repros no longer work on HEAD.