syzbot


kernel BUG in __es_tree_search

Status: upstream: reported C repro on 2022/08/28 11:40
Reported-by: syzbot+6fe13707ccf86e3b6e78@syzkaller.appspotmail.com
First crash: 578d, last: 518d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in __es_tree_search C error 1 578d 578d 0/1 upstream: reported C repro on 2022/08/28 11:40
upstream kernel BUG in ext4_es_cache_extent ext4 C inconclusive 6 422d 781d 22/26 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_es_cache_extent ext4 C 16 19d 578d 0/2 upstream: reported C repro on 2022/08/28 10:36
android-5-10 kernel BUG in ext4_es_cache_extent C error 1 578d 578d 0/2 closed as invalid on 2022/09/13 19:49

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
------------[ cut here ]------------
kernel BUG at fs/ext4/extents_status.c:199!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8092 Comm: syz-executor136 Not tainted 4.19.211-syzkaller #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:199 [inline]
RIP: 0010:__es_tree_search.isra.0+0x1c2/0x210 fs/ext4/extents_status.c:217
Code: 89 df 44 89 ee e8 4e 08 87 ff 44 39 eb 77 1d 45 31 e4 e8 51 07 87 ff 4c 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 3e 07 87 ff <0f> 0b e8 37 07 87 ff 4c 89 e7 e8 0f eb 13 06 49 89 c4 eb d4 e8 25
RSP: 0018:ffff8880b156eff8 EFLAGS: 00010293
RAX: ffff8880964dc540 RBX: 000000008cb44660 RCX: ffffffff81db7d42
RDX: 0000000000000000 RSI: ffffffff81db7e32 RDI: 0000000000000004
RBP: 000000002b754e16 R08: 0000000000000001 R09: 000000002b754e16
R10: 0000000000000004 R11: 0000000000000000 R12: ffff8880a1b0fb28
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000555556045300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559d40ca08b8 CR3: 000000009795f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_es_cache_extent+0x17f/0x4e0 fs/ext4/extents_status.c:766
 ext4_cache_extents+0x13e/0x2d0 fs/ext4/extents.c:519
 ext4_find_extent+0x8cf/0xc70 fs/ext4/extents.c:905
 ext4_ext_map_blocks+0x1c0/0x7390 fs/ext4/extents.c:4312
 ext4_map_blocks+0xd88/0x1a50 fs/ext4/inode.c:580
 ext4_getblk+0x3f9/0x4f0 fs/ext4/inode.c:993
 ext4_bread+0x7c/0x210 fs/ext4/inode.c:1043
 ext4_quota_read+0x216/0x2e0 fs/ext4/super.c:5962
 v2_read_header+0x73/0x100 fs/quota/quota_v2.c:63
 v2_check_quota_file+0x73/0x180 fs/quota/quota_v2.c:82
 vfs_load_quota_inode+0x599/0x1000 fs/quota/dquot.c:2368
 dquot_enable+0x1c7/0x210 fs/quota/dquot.c:2490
 ext4_quota_enable fs/ext4/super.c:5853 [inline]
 ext4_enable_quotas+0x4d8/0x780 fs/ext4/super.c:5879
 ext4_orphan_cleanup fs/ext4/super.c:2637 [inline]
 ext4_fill_super+0x8f4b/0xc850 fs/ext4/super.c:4549
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fc1400005da
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:00007ffeba735e08 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffeba735e60 RCX: 00007fc1400005da
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffeba735e20
RBP: 00007ffeba735e20 R08: 00007ffeba735e60 R09: 0000000800000015
R10: 0000000000000081 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 000000000000041c
Modules linked in:
---[ end trace c4b6600d9dab5871 ]---
RIP: 0010:ext4_es_end fs/ext4/extents_status.c:199 [inline]
RIP: 0010:__es_tree_search.isra.0+0x1c2/0x210 fs/ext4/extents_status.c:217
Code: 89 df 44 89 ee e8 4e 08 87 ff 44 39 eb 77 1d 45 31 e4 e8 51 07 87 ff 4c 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 3e 07 87 ff <0f> 0b e8 37 07 87 ff 4c 89 e7 e8 0f eb 13 06 49 89 c4 eb d4 e8 25
RSP: 0018:ffff8880b156eff8 EFLAGS: 00010293
RAX: ffff8880964dc540 RBX: 000000008cb44660 RCX: ffffffff81db7d42
RDX: 0000000000000000 RSI: ffffffff81db7e32 RDI: 0000000000000004
RBP: 000000002b754e16 R08: 0000000000000001 R09: 000000002b754e16
R10: 0000000000000004 R11: 0000000000000000 R12: ffff8880a1b0fb28
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000555556045300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559d40ca08b8 CR3: 000000009795f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/28 11:40 linux-4.19.y 3f8a27f9e27b 07177916 .config console log report syz C ci2-linux-4-19 kernel BUG in __es_tree_search
2022/10/27 17:42 linux-4.19.y 3f8a27f9e27b 5c716ff6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in __es_tree_search
* Struck through repros no longer work on HEAD.