kernel BUG in ext4_es_cache_extent

瀏覽次數:16 次
跳到第一則未讀訊息

syzbot

未讀,
2022年8月28日 清晨6:36:322022/8/28
收件者:syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f0306959ab7c ANDROID: ABI: Update symbols for unisoc
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1647901b080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d60ce76287fc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=de7b7cb579b7d89c2b23
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8d8a5d874344/disk-f0306959.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1f386f3f9de8/vmlinux-f0306959.xz

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

EXT4-fs (loop5): ext4_check_descriptors: Inode bitmap for group 0 overlaps block group descriptors
EXT4-fs (loop5): orphan cleanup on readonly fs
EXT4-fs error (device loop5): ext4_quota_enable:6026: inode #5: comm syz-executor.5: casefold flag without casefold feature
------------[ cut here ]------------
kernel BUG at fs/ext4/extents_status.c:202!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 385 Comm: syz-executor.5 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:ffff8881afe47508 EFLAGS: 00010246
RAX: ffffffff81b611bc RBX: 000000002b754e16 RCX: 0000000000040000
RDX: ffffc90000144000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 00000000e7fdc588 R08: ffffffff81b60f98 R09: ffffed1035fc8e9a
R10: ffffed1035fc8e9a R11: 1ffff11035fc8e99 R12: ffff8881e7c43b60
R13: ffff8881e7c43b7c R14: 1ffff1103cf8876f R15: 0000000000000000
FS: 00007f9072971700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f005eac4000 CR3: 00000001f54cf000 CR4: 00000000003406e0
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:0x7f90737fc7aa
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9072970f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000540 RCX: 00007f90737fc7aa
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007f9072970fe0
RBP: 00007f9072971020 R08: 00007f9072971020 R09: 0000000020000000
R10: 0000000000000081 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000040 R14: 00007f9072970fe0 R15: 0000000020000740
Modules linked in:
---[ end trace c463adcd85d7093a ]---
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:ffff8881afe47508 EFLAGS: 00010246
RAX: ffffffff81b611bc RBX: 000000002b754e16 RCX: 0000000000040000
RDX: ffffc90000144000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 00000000e7fdc588 R08: ffffffff81b60f98 R09: ffffed1035fc8e9a
R10: ffffed1035fc8e9a R11: 1ffff11035fc8e99 R12: ffff8881e7c43b60
R13: ffff8881e7c43b7c R14: 1ffff1103cf8876f R15: 0000000000000000
FS: 00007f9072971700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f005eac4000 CR3: 00000001f54cf000 CR4: 00000000003406e0
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

未讀,
2022年8月28日 清晨6:57:262022/8/28
收件者:syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: f0306959ab7c ANDROID: ABI: Update symbols for unisoc
git tree: android12-5.4
console+strace: https://syzkaller.appspot.com/x/log.txt?x=12a7aae7080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d60ce76287fc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=de7b7cb579b7d89c2b23
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=167267a3080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14f25583080000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8d8a5d874344/disk-f0306959.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1f386f3f9de8/vmlinux-f0306959.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+de7b7c...@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
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
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

syzbot

未讀,
2022年8月28日 清晨7:25:392022/8/28
收件者:syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a634d588813f Merge branch 'android12-5.10' into branch 'an..
git tree: android12-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=12d4cee7080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d50a6822f51376ca
dashboard link: https://syzkaller.appspot.com/bug?extid=a22dc4b0744ac658ed9b
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11b3e06d080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=139869db080000

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

EXT4-fs error (device loop0): ext4_quota_enable:6398: inode #5: comm syz-executor237: 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: 371 Comm: syz-executor237 Not tainted 5.10.136-syzkaller-00029-ga634d588813f #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+0x54e/0x660 fs/ext4/extents_status.c:903
Code: cf ff e9 e3 fe ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 74 fe ff ff 4c 89 e7 e8 0c 3e cf ff e9 67 fe ff ff e8 12 36 95 ff <0f> 0b e8 bb ee ba 02 65 8b 1d 0c 64 2a 7e 89 d8 c1 e8 06 48 8d 3c
RSP: 0018:ffffc90000b76e60 EFLAGS: 00010293
RAX: ffffffff81d7ad1e RBX: ffff88811a0b6d74 RCX: ffff8881067ae2c0
RDX: 0000000000000000 RSI: 000000002b754e16 RDI: 0000000000000000
RBP: ffffc90000b76f80 R08: ffffffff81d7aa8f R09: 0000000000000003
R10: fffff5200016edbd R11: 1ffff9200016edbc R12: ffff88811a0b6d74
R13: 0000000000000000 R14: 1ffff11023416dae R15: 000000002b754e16
FS: 0000555555e34300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff06eaddc4 CR3: 0000000105fd6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_cache_extents fs/ext4/extents.c:517 [inline]
ext4_find_extent+0x49d/0xd80 fs/ext4/extents.c:913
ext4_ext_map_blocks+0x219/0x3a30 fs/ext4/extents.c:4093
ext4_map_blocks+0x42a/0x1ee0 fs/ext4/inode.c:563
ext4_getblk+0x19c/0x660 fs/ext4/inode.c:849
ext4_bread+0x2f/0x1d0 fs/ext4/inode.c:901
ext4_quota_read+0x1bf/0x2c0 fs/ext4/super.c:6529
v2_read_header fs/quota/quota_v2.c:62 [inline]
v2_check_quota_file+0xf7/0x3d0 fs/quota/quota_v2.c:81
dquot_load_quota_sb+0x67d/0xbe0 fs/quota/dquot.c:2395
dquot_load_quota_inode+0x3ab/0x670 fs/quota/dquot.c:2438
ext4_quota_enable fs/ext4/super.c:6407 [inline]
ext4_enable_quotas+0x59a/0x960 fs/ext4/super.c:6433
ext4_orphan_cleanup+0x2ee/0xdb0 fs/ext4/super.c:3067
ext4_fill_super+0x8880/0x9150 fs/ext4/super.c:5092
mount_bdev+0x25f/0x370 fs/super.c:1419
ext4_mount+0x34/0x40 fs/ext4/super.c:6611
legacy_get_tree+0xf0/0x190 fs/fs_context.c:592
vfs_get_tree+0x88/0x290 fs/super.c:1549
do_new_mount+0x289/0xad0 fs/namespace.c:2899
path_mount+0x58d/0xce0 fs/namespace.c:3229
do_mount fs/namespace.c:3242 [inline]
__do_sys_mount fs/namespace.c:3450 [inline]
__se_sys_mount+0x2d2/0x3c0 fs/namespace.c:3427
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f9ff476e5ca
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:00007ffe39decb68 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe39decbc0 RCX: 00007f9ff476e5ca
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffe39decb80
RBP: 00007ffe39decb80 R08: 00007ffe39decbc0 R09: 0000000800000015
R10: 0000000000000081 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 000000000000041c
Modules linked in:
---[ end trace 26ff9ef6fc97571d ]---
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+0x54e/0x660 fs/ext4/extents_status.c:903
Code: cf ff e9 e3 fe ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 74 fe ff ff 4c 89 e7 e8 0c 3e cf ff e9 67 fe ff ff e8 12 36 95 ff <0f> 0b e8 bb ee ba 02 65 8b 1d 0c 64 2a 7e 89 d8 c1 e8 06 48 8d 3c
RSP: 0018:ffffc90000b76e60 EFLAGS: 00010293
RAX: ffffffff81d7ad1e RBX: ffff88811a0b6d74 RCX: ffff8881067ae2c0
RDX: 0000000000000000 RSI: 000000002b754e16 RDI: 0000000000000000
RBP: ffffc90000b76f80 R08: ffffffff81d7aa8f R09: 0000000000000003
R10: fffff5200016edbd R11: 1ffff9200016edbc R12: ffff88811a0b6d74
R13: 0000000000000000 R14: 1ffff11023416dae R15: 000000002b754e16
FS: 0000555555e34300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff06eaddc4 CR3: 0000000105fd6000 CR4: 00000000003506b0
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
回覆所有人
回覆作者
轉寄
0 則新訊息