================================================================== BUG: KASAN: use-after-free in ext4_data_block_valid+0x279/0x2d0 fs/ext4/block_validity.c:211 Read of size 8 at addr ffff8881d5ff4bb0 by task syz-executor.1/1845 CPU: 0 PID: 1845 Comm: syz-executor.1 Not tainted 4.14.103+ #18 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x10e lib/dump_stack.c:53 print_address_description+0x60/0x226 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0x88/0x2a5 mm/kasan/report.c:393 Allocated by task 1: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2723 [inline] slab_alloc mm/slub.c:2731 [inline] kmem_cache_alloc+0xd2/0x2d0 mm/slub.c:2736 add_system_zone+0x29b/0x530 fs/ext4/block_validity.c:85 ext4_setup_system_zone+0x2e2/0x470 fs/ext4/block_validity.c:169 Freed by task 7351: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xb0/0x190 mm/kasan/kasan.c:524 slab_free_hook mm/slub.c:1389 [inline] slab_free_freelist_hook mm/slub.c:1410 [inline] slab_free mm/slub.c:2966 [inline] kmem_cache_free+0xc4/0x330 mm/slub.c:2988 ext4_release_system_zone+0x68/0xe0 fs/ext4/block_validity.c:187 ext4_setup_system_zone+0x3a3/0x470 fs/ext4/block_validity.c:151 ext4_remount+0xf14/0x1d30 fs/ext4/super.c:5292 do_remount_sb2+0x35a/0x5e0 fs/super.c:878 do_remount fs/namespace.c:2388 [inline] do_mount+0x1305/0x26a0 fs/namespace.c:2894 SYSC_mount fs/namespace.c:3119 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3096 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 The buggy address belongs to the object at ffff8881d5ff4b98 which belongs to the cache ext4_system_zone of size 40 The buggy address is located 24 bytes inside of 40-byte region [ffff8881d5ff4b98, ffff8881d5ff4bc0) The buggy address belongs to the page: page:ffffea000757fd00 count:1 mapcount:0 mapping: (null) index:0xffff8881d5ff4b60 flags: 0x4000000000000100(slab) raw: 4000000000000100 0000000000000000 ffff8881d5ff4b60 0000000180490019 raw: dead000000000100 dead000000000200 ffff8881d9010200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d5ff4a80: fb fb fb fb fb fc fc fb fb fb fb fb fc fc fb fb ffff8881d5ff4b00: fb fb fb fc fc fb fb fb fb fb fc fc fb fb fb fb >ffff8881d5ff4b80: fb fc fc fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8881d5ff4c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d5ff4c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs (sda1): re-mounted. Opts: noblock_validity