================================================================== BUG: KASAN: wild-memory-access in generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] BUG: KASAN: wild-memory-access in test_bit_le include/asm-generic/bitops/le.h:21 [inline] BUG: KASAN: wild-memory-access in ext2_valid_block_bitmap fs/ext2/balloc.c:86 [inline] BUG: KASAN: wild-memory-access in read_block_bitmap+0x388/0x698 fs/ext2/balloc.c:153 Read of size 8 at addr 1fff0000f2763ff8 by task syz-executor.3/6727 CPU: 1 PID: 6727 Comm: syz-executor.3 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_report+0xe4/0x518 mm/kasan/report.c:491 kasan_report+0xd8/0x138 mm/kasan/report.c:601 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline] test_bit_le include/asm-generic/bitops/le.h:21 [inline] ext2_valid_block_bitmap fs/ext2/balloc.c:86 [inline] read_block_bitmap+0x388/0x698 fs/ext2/balloc.c:153 ext2_free_blocks+0x284/0x998 fs/ext2/balloc.c:514 ext2_free_data fs/ext2/inode.c:1111 [inline] ext2_free_branches+0x38c/0x3c4 fs/ext2/inode.c:1159 ext2_free_branches+0x180/0x3c4 fs/ext2/inode.c:1150 __ext2_truncate_blocks+0x93c/0xd00 fs/ext2/inode.c:1225 ext2_setsize fs/ext2/inode.c:1291 [inline] ext2_setattr+0x774/0xa40 fs/ext2/inode.c:1660 notify_change+0x9d4/0xc8c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:66 do_sys_ftruncate+0x284/0x318 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:203 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ================================================================== EXT2-fs (loop3): error: ext2_valid_block_bitmap: Invalid block bitmap - block_group = 0, block = 0 EXT2-fs (loop3): error: ext2_free_blocks: Freeing blocks in system zones - Block = 3, count = 1 EXT2-fs (loop3): error: ext2_free_blocks: Freeing blocks in system zones - Block = 2, count = 1