EXT4-fs error (device loop2): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 50 vs 25 free clusters EXT4-fs error (device loop4): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 50 vs 25 free clusters ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:392 [inline] BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x2562/0x3750 fs/ext4/xattr.c:1733 Read of size 18446744073709551600 at addr ffff8880a988c0d4 by task syz-executor.4/10520 CPU: 0 PID: 10520 Comm: syz-executor.4 Not tainted 4.19.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 memmove+0x20/0x50 mm/kasan/kasan.c:293 memmove include/linux/string.h:392 [inline] ext4_xattr_set_entry+0x2562/0x3750 fs/ext4/xattr.c:1733 ext4_xattr_ibody_inline_set+0x81/0x2a0 fs/ext4/xattr.c:2222 ext4_destroy_inline_data_nolock+0x22d/0x4f0 fs/ext4/inline.c:434 ext4_convert_inline_data_nolock+0x145/0xd10 fs/ext4/inline.c:1207 ext4_convert_inline_data+0x347/0x3a0 fs/ext4/inline.c:2027 ext4_fallocate+0x137/0x2150 fs/ext4/extents.c:4956 vfs_fallocate+0x487/0x9a0 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xcf/0x140 fs/open.c:337 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe9b8b5b188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000bb89 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffd497d652f R14: 00007fe9b8b5b300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0002a62300 count:2 mapcount:0 mapping:ffff8880b54023e0 index:0x8 flags: 0xfff0000001107c(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 00fff0000001107c ffffea000235f348 ffffea00020a2648 ffff8880b54023e0 raw: 0000000000000008 ffff888082d5af18 00000002ffffffff ffff8880b59f88c0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8880b59f88c0 Memory state around the buggy address: ffff8880a988bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a988c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a988c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880a988c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a988c180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================