EXT4-fs error (device loop0): ext4_mb_generate_buddy:747: group 0, block bitmap and bg descriptor inconsistent: 50 vs 25 free clusters EXT4-fs error (device loop1): ext4_mb_generate_buddy:747: group 0, block bitmap and bg descriptor inconsistent: 50 vs 25 free clusters EXT4-fs error (device loop5): ext4_mb_generate_buddy:747: 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+0x186c/0x3950 fs/ext4/xattr.c:1733 Read of size 18446744073709551600 at addr ffff888098cb80d4 by task syz-executor.0/11359 CPU: 1 PID: 11359 Comm: syz-executor.0 Not tainted 4.19.203-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+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 memmove+0x23/0x50 mm/kasan/kasan.c:293 memmove include/linux/string.h:392 [inline] ext4_xattr_set_entry+0x186c/0x3950 fs/ext4/xattr.c:1733 ext4_xattr_ibody_inline_set+0x70/0x290 fs/ext4/xattr.c:2222 ext4_destroy_inline_data_nolock+0x1d6/0x490 fs/ext4/inline.c:434 ext4_convert_inline_data_nolock+0x136/0xc40 fs/ext4/inline.c:1207 ext4_convert_inline_data+0x299/0x3c0 fs/ext4/inline.c:2027 ext4_fallocate+0xdb/0x1920 fs/ext4/extents.c:4962 vfs_fallocate+0x2b5/0x7c0 fs/open.c:308 ksys_fallocate+0x3c/0x80 fs/open.c:331 __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0x92/0xf0 fs/open.c:337 do_syscall_64+0xd0/0x4e0 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:00007fe8a011f188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000010000101 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffcc9c8dc6f R14: 00007fe8a011f300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0002632e00 count:2 mapcount:0 mapping:ffff8880ae21bba0 index:0x8 flags: 0xfff0000001107c(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 00fff0000001107c ffffea00026de508 ffffea00026f41c8 ffff8880ae21bba0 raw: 0000000000000008 ffff888080aee000 00000002ffffffff ffff88823b2d4900 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88823b2d4900 Memory state around the buggy address: ffff888098cb7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888098cb8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888098cb8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888098cb8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888098cb8180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff c3 inc %ebx 2: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 9: 00 00 00 c: 0f 1f 40 00 nopl 0x0(%rax) 10: 48 89 f8 mov %rdi,%rax 13: 48 89 f7 mov %rsi,%rdi 16: 48 89 d6 mov %rdx,%rsi 19: 48 89 ca mov %rcx,%rdx 1c: 4d 89 c2 mov %r8,%r10 1f: 4d 89 c8 mov %r9,%r8 22: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 27: 0f 05 syscall 29: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 2f: 73 01 jae 0x32 31: c3 retq 32: 48 c7 c1 bc ff ff ff mov $0xffffffffffffffbc,%rcx 39: f7 d8 neg %eax 3b: 64 89 01 mov %eax,%fs:(%rcx) 3e: 48 rex.W