kernel BUG in __es_tree_search

14 views
Skip to first unread message

syzbot

unread,
Aug 28, 2022, 7:40:29 AM8/28/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1720771d080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=6fe13707ccf86e3b6e78
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f1de57080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=110b6983080000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6fe137...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Aug 28, 2022, 7:40:30 AM8/28/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e548869f356f Linux 4.14.291
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16f1de57080000
kernel config: https://syzkaller.appspot.com/x/.config?x=14f65e3c6215eb84
dashboard link: https://syzkaller.appspot.com/bug?extid=f2ac73095baff5f85ee9
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17ad7fa3080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1610a01b080000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f2ac73...@syzkaller.appspotmail.com

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:200!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7983 Comm: syz-executor207 Not tainted 4.14.291-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
task: ffff888096a40240 task.stack: ffff888093250000
RIP: 0010:ext4_es_end fs/ext4/extents_status.c:200 [inline]
RIP: 0010:__es_tree_search.isra.0+0x199/0x1c0 fs/ext4/extents_status.c:218
RSP: 0018:ffff888093257138 EFLAGS: 00010297
RAX: ffff888096a40240 RBX: 000000002b754e16 RCX: 00000000000038cf
RDX: 0000000000000000 RSI: 000000008e4a46a0 RDI: ffff888097c344ec
RBP: 0000000000000000 R08: ffffffff8b9be178 R09: 00000000000403fe
R10: ffff888096a40b18 R11: ffff888096a40240 R12: ffff888097c344d0
R13: 000000008e4a46a0 R14: dffffc0000000000 R15: 0000ffff8e4a46a0
FS: 0000555556d50300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005595f56d2160 CR3: 00000000b4f53000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_es_cache_extent+0x133/0x460 fs/ext4/extents_status.c:767
ext4_cache_extents+0x113/0x260 fs/ext4/extents.c:531
ext4_find_extent+0x820/0xbc0 fs/ext4/extents.c:917
ext4_ext_map_blocks+0x19a/0x6b10 fs/ext4/extents.c:4324
ext4_map_blocks+0xb19/0x1730 fs/ext4/inode.c:579
ext4_getblk+0x314/0x3f0 fs/ext4/inode.c:992
ext4_bread+0x6c/0x1b0 fs/ext4/inode.c:1042
ext4_quota_read+0x1e4/0x2a0 fs/ext4/super.c:5855
v2_read_header+0x6f/0xe0 fs/quota/quota_v2.c:63
v2_check_quota_file+0x60/0x120 fs/quota/quota_v2.c:82
vfs_load_quota_inode+0x4e4/0xeb0 fs/quota/dquot.c:2369
dquot_enable+0x15f/0x1b0 fs/quota/dquot.c:2491
ext4_quota_enable fs/ext4/super.c:5746 [inline]
ext4_enable_quotas+0x452/0x6a0 fs/ext4/super.c:5772
ext4_orphan_cleanup fs/ext4/super.c:2562 [inline]
ext4_fill_super+0x7cb4/0xb3c0 fs/ext4/super.c:4474
mount_bdev+0x2b3/0x360 fs/super.c:1134
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2572 [inline]
do_mount+0xe65/0x2a30 fs/namespace.c:2905
SYSC_mount fs/namespace.c:3121 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3098
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7efc2c4025da
RSP: 002b:00007ffdff207798 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdff2077f0 RCX: 00007efc2c4025da
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffdff2077b0
RBP: 00007ffdff2077b0 R08: 00007ffdff2077f0 R09: 0000000800000015
R10: 0000000000000081 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 000000000000041c
Code: 01 48 05 49 89 c4 eb dd e8 25 e9 c7 ff e9 fb fe ff ff e8 1b e9 c7 ff e9 26 ff ff ff e8 81 e9 c7 ff e9 af fe ff ff e8 67 33 9e ff <0f> 0b e8 70 e9 c7 ff e9 45 ff ff ff e8 f6 e8 c7 ff eb 90 e8 4f
RIP: ext4_es_end fs/ext4/extents_status.c:200 [inline] RSP: ffff888093257138
RIP: __es_tree_search.isra.0+0x199/0x1c0 fs/ext4/extents_status.c:218 RSP: ffff888093257138
---[ end trace 87d3b71a6bd04acd ]---
Reply all
Reply to author
Forward
0 new messages