loop3: p3 start 201 is beyond EOD, truncated loop3: p4 start 301 is beyond EOD, [ 190.006434] ================================================================== BUG: KASAN: use-after-free in ext4_data_block_valid+0x290/0x2e0 fs/ext4/block_validity.c:210 Read of size 8 at addr ffff8801cdbf8590 by task jbd2/sda1-8/1925 CPU: 1 PID: 1925 Comm: jbd2/sda1-8 Not tainted 4.9.124-g09eb2ba #31 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cdbdf208 ffffffff81eb95e9 ffffea000736fe00 ffff8801cdbf8590 0000000000000000 ffff8801cdbf8590 0000000000030777 ffff8801cdbdf240 ffffffff8156c35e ffff8801cdbf8590 0000000000000008 0000000000000000Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 [] ext4_data_block_valid+0x290/0x2e0 fs/ext4/block_validity.c:210 [] __check_block_validity.constprop.86+0xc1/0x200 fs/ext4/inode.c:378 [] ext4_map_blocks+0xc87/0x16d0 fs/ext4/inode.c:568 [] _ext4_get_block+0x1ea/0x510 fs/ext4/inode.c:763 [] ext4_get_block+0x32/0x40 fs/ext4/inode.c:777 [] generic_block_bmap+0x107/0x180 fs/buffer.c:2990 [] ext4_bmap+0x196/0x3e0 fs/ext4/inode.c:3226 [] bmap+0x93/0xc0 fs/inode.c:1563 [] jbd2_journal_bmap+0x57/0xf0 fs/jbd2/journal.c:797 [] jbd2_journal_next_log_block+0xe5/0x160 fs/jbd2/journal.c:780 [] jbd2_journal_get_descriptor_buffer+0x92/0x370 fs/jbd2/journal.c:832 [] journal_submit_commit_record+0x11a/0xab0 fs/jbd2/commit.c:134 [] jbd2_journal_commit_transaction+0x4158/0x6050 fs/jbd2/commit.c:869 [] kjournald2+0x22a/0x830 fs/jbd2/journal.c:224 [] kthread+0x26d/0x300 kernel/kthread.c:211 [] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373 Allocated by task 1: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:505 set_track mm/kasan/kasan.c:517 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:609 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:547 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xbe/0x290 mm/slub.c:2728 add_system_zone+0x284/0x5d0 fs/ext4/block_validity.c:84 ext4_setup_system_zone+0x27a/0x490 fs/ext4/block_validity.c:159 ext4_fill_super+0x6a6d/0xb490 fs/ext4/super.c:4178 mount_bdev+0x2c7/0x390 fs/super.c:1100 ext4_mount+0x34/0x40 fs/ext4/super.c:5608 mount_fs+0x28c/0x370 fs/super.c:1206 vfs_kern_mount.part.29+0xd1/0x3d0 fs/namespace.c:1000 vfs_kern_mount fs/namespace.c:982 [inline] do_new_mount fs/namespace.c:2537 [inline] do_mount+0x3c9/0x2740 fs/namespace.c:2859 SYSC_mount fs/namespace.c:3075 [inline] SyS_mount+0xfe/0x110 fs/namespace.c:3052 do_mount_root init/do_mounts.c:366 [inline] mount_block_root+0x35d/0x711 init/do_mounts.c:396 mount_root+0x77/0x7a init/do_mounts.c:541 prepare_namespace+0x1d8/0x215 init/do_mounts.c:601 kernel_init_freeable+0x50f/0x52d init/main.c:1036 kernel_init+0x11/0x15e init/main.c:946 ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373 Freed by task 12606: (stack is not available) The buggy address belongs to the object at ffff8801cdbf8578 which belongs to the cache ext4_system_zone of size 40 The buggy address is located 24 bytes inside of 40-byte region [ffff8801cdbf8578, ffff8801cdbf85a0) The buggy address belongs to the page: page:ffffea000736fe00 count:1 mapcount:0 mapping: (null) index:0xffff8801cdbf8b60 flags: 0x8000000000000080(slab) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cdbf8480: fb fc fc fb fb fb fb fb fc fc fb fb fb fb fb fc ffff8801cdbf8500: fc fb fb fb fb fb fc fc fb fb fb fb fb fc fc fb >ffff8801cdbf8580: fb fb fb fb fc fc fb fb fb fb fb fc fc fb fb fb ^ ffff8801cdbf8600: fb fb fc fc fb fb fb fb fb fc fc fb fb fb fb fb ffff8801cdbf8680: fc fc fb fb fb fb fb fc fc fb fb fb fb fb fc fc ==================================================================