syzbot


kernel BUG in ext4_es_cache_extent

Status: upstream: reported C repro on 2022/08/28 10:36
Reported-by: syzbot+de7b7cb579b7d89c2b23@syzkaller.appspotmail.com
First crash: 91d, last: 40d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ext4_es_cache_extent C inconclusive 5 58d 294d 23/24 upstream: reported C repro on 2022/02/06 13:49
android-5-10 kernel BUG in ext4_es_cache_extent C error 1 91d 91d 0/2 closed as invalid on 2022/09/13 19:49
linux-4.14 kernel BUG in __es_tree_search C error 1 91d 91d 0/1 upstream: reported C repro on 2022/08/28 11:40
linux-4.19 kernel BUG in __es_tree_search C error 2 31d 91d 0/1 upstream: reported C repro on 2022/08/28 11:40

Sample crash report:
EXT4-fs (loop0): ext4_check_descriptors: Inode bitmap for group 0 overlaps block group descriptors
EXT4-fs (loop0): orphan cleanup on readonly fs
EXT4-fs error (device loop0): ext4_quota_enable:6026: inode #5: comm syz-executor503: casefold flag without casefold feature
------------[ cut here ]------------
kernel BUG at fs/ext4/extents_status.c:202!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 304 Comm: syz-executor503 Not tainted 5.4.197-syzkaller-00015-gf0306959ab7c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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+0x3dc/0x530 fs/ext4/extents_status.c:888
Code: d6 ff e9 e7 fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 09 ff ff ff 4c 89 ef e8 ee ab d6 ff e9 fc fe ff ff e8 b4 42 aa ff <0f> 0b 65 8b 1d 73 21 4c 7e 89 d8 c1 e8 06 48 8d 3c c5 a0 c3 e6 85
RSP: 0018:ffff8881dddf7508 EFLAGS: 00010293
RAX: ffffffff81b611bc RBX: 000000002b754e16 RCX: ffff8881de134ec0
RDX: 0000000000000000 RSI: 000000002b754e16 RDI: 0000000000000000
RBP: 00000000e70f54d0 R08: ffffffff81b60f98 R09: ffffed103bbbee9a
R10: ffffed103bbbee9a R11: 1ffff1103bbbee99 R12: ffff8881e70ae2a0
R13: ffff8881e70ae2bc R14: 1ffff1103ce15c57 R15: 0000000000000000
FS:  0000555556bc0300(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a354826a00 CR3: 00000001ddd66000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_cache_extents fs/ext4/extents.c:557 [inline]
 ext4_find_extent+0x5db/0xdc0 fs/ext4/extents.c:948
 ext4_ext_map_blocks+0x1b6/0x3be0 fs/ext4/extents.c:4326
 ext4_map_blocks+0x329/0x1a30 fs/ext4/inode.c:582
 ext4_getblk+0xb6/0x460 fs/ext4/inode.c:993
 ext4_bread+0x48/0x320 fs/ext4/inode.c:1043
 ext4_quota_read+0x199/0x290 fs/ext4/super.c:6155
 v2_read_header fs/quota/quota_v2.c:64 [inline]
 v2_check_quota_file+0x9e/0x240 fs/quota/quota_v2.c:83
 vfs_load_quota_inode+0x66b/0xaa0 fs/quota/dquot.c:2381
 ext4_quota_enable fs/ext4/super.c:6035 [inline]
 ext4_enable_quotas+0x277/0x8a0 fs/ext4/super.c:6061
 ext4_orphan_cleanup+0x2d5/0xcd0 fs/ext4/super.c:2754
 ext4_fill_super+0x80e7/0x88c0 fs/ext4/super.c:4713
 mount_bdev+0x22d/0x340 fs/super.c:1417
 legacy_get_tree+0xde/0x170 fs/fs_context.c:647
 vfs_get_tree+0x85/0x260 fs/super.c:1547
 do_new_mount+0x23a/0x500 fs/namespace.c:2843
 do_mount+0x5e2/0xcd0 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+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f930641e5ca
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd046e5218 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd046e5270 RCX: 00007f930641e5ca
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffd046e5230
RBP: 00007ffd046e5230 R08: 00007ffd046e5270 R09: 0000000800000015
R10: 0000000000000081 R11: 0000000000000202 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 000000000000041c
Modules linked in:
---[ end trace 1222ce8e23415096 ]---
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+0x3dc/0x530 fs/ext4/extents_status.c:888
Code: d6 ff e9 e7 fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 09 ff ff ff 4c 89 ef e8 ee ab d6 ff e9 fc fe ff ff e8 b4 42 aa ff <0f> 0b 65 8b 1d 73 21 4c 7e 89 d8 c1 e8 06 48 8d 3c c5 a0 c3 e6 85
RSP: 0018:ffff8881dddf7508 EFLAGS: 00010293
RAX: ffffffff81b611bc RBX: 000000002b754e16 RCX: ffff8881de134ec0
RDX: 0000000000000000 RSI: 000000002b754e16 RDI: 0000000000000000
RBP: 00000000e70f54d0 R08: ffffffff81b60f98 R09: ffffed103bbbee9a
R10: ffffed103bbbee9a R11: 1ffff1103bbbee99 R12: ffff8881e70ae2a0
R13: ffff8881e70ae2bc R14: 1ffff1103ce15c57 R15: 0000000000000000
FS:  0000555556bc0300(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a354826a00 CR3: 00000001ddd66000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2022/08/28 10:56 android12-5.4 f0306959ab7c 07177916 .config log report syz C kernel BUG in ext4_es_cache_extent
ci2-android-5-4-kasan 2022/10/17 21:06 android12-5.4 ff63a5f5cdf6 94744d21 .config log report info kernel BUG in ext4_es_cache_extent
ci2-android-5-4-kasan 2022/08/28 10:35 android12-5.4 f0306959ab7c 07177916 .config log report info kernel BUG in ext4_es_cache_extent
* Struck through repros no longer work on HEAD.