EXT4-fs error (device loop4): ext4_free_branches:1030: inode #13: comm syz-executor.4: invalid indirect mapped block 1819239214 (level 1) EXT4-fs error (device loop4): ext4_validate_block_bitmap:441: comm syz-executor.4: bg 0: block 361: padding at end of block bitmap is not set ================================================================== BUG: KCSAN: data-race in data_push_tail / string write to 0xffffffff86edb455 of 1 bytes by task 7720 on cpu 1: string_nocheck lib/vsprintf.c:650 [inline] string+0x16c/0x200 lib/vsprintf.c:728 vsnprintf+0xa09/0xe20 lib/vsprintf.c:2819 vscnprintf+0x42/0x80 lib/vsprintf.c:2925 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2124 vprintk_store+0x56f/0x800 kernel/printk/printk.c:2238 vprintk_emit+0xd0/0x5d0 kernel/printk/printk.c:2284 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x71/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __ext4_error+0x21c/0x310 fs/ext4/super.c:838 ext4_validate_block_bitmap+0x95b/0x990 fs/ext4/balloc.c:440 ext4_read_block_bitmap_nowait+0x40b/0x680 fs/ext4/balloc.c:556 ext4_mb_init_cache+0x2b8/0xcc0 fs/ext4/mballoc.c:1315 ext4_mb_init_group+0x1c5/0x5b0 fs/ext4/mballoc.c:1520 ext4_mb_load_buddy_gfp+0x85f/0xf50 fs/ext4/mballoc.c:1590 ext4_mb_clear_bb fs/ext4/mballoc.c:6425 [inline] ext4_free_blocks+0x744/0x1350 fs/ext4/mballoc.c:6619 ext4_clear_blocks+0x2a3/0x2c0 fs/ext4/indirect.c:895 ext4_free_data+0x116/0x2c0 fs/ext4/indirect.c:956 ext4_free_branches+0x65/0x410 fs/ext4/indirect.c:1115 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_ind_truncate+0x540/0x870 fs/ext4/indirect.c:1188 ext4_truncate+0x750/0xb10 fs/ext4/inode.c:4171 ext4_process_orphan+0x113/0x1c0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0x669/0x9b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5591 [inline] ext4_fill_super+0x3660/0x39a0 fs/ext4/super.c:5712 get_tree_bdev+0x272/0x300 fs/super.c:1598 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5744 vfs_get_tree+0x51/0x1b0 fs/super.c:1771 do_new_mount+0x203/0x660 fs/namespace.c:3337 path_mount+0x496/0xb30 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3863 __x64_sys_mount+0x67/0x80 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffffff86edb450 of 8 bytes by task 7723 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x53e/0x800 kernel/printk/printk.c:2228 vprintk_emit+0xd0/0x5d0 kernel/printk/printk.c:2284 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x71/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __ext4_error+0x21c/0x310 fs/ext4/super.c:838 ext4_validate_block_bitmap+0x95b/0x990 fs/ext4/balloc.c:440 ext4_read_block_bitmap_nowait+0x40b/0x680 fs/ext4/balloc.c:556 ext4_mb_init_cache+0x2b8/0xcc0 fs/ext4/mballoc.c:1315 ext4_mb_init_group+0x1c5/0x5b0 fs/ext4/mballoc.c:1520 ext4_mb_load_buddy_gfp+0x85f/0xf50 fs/ext4/mballoc.c:1590 ext4_mb_clear_bb fs/ext4/mballoc.c:6425 [inline] ext4_free_blocks+0x744/0x1350 fs/ext4/mballoc.c:6619 ext4_clear_blocks+0x2a3/0x2c0 fs/ext4/indirect.c:895 ext4_free_data+0x116/0x2c0 fs/ext4/indirect.c:956 ext4_free_branches+0x65/0x410 fs/ext4/indirect.c:1115 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_ind_truncate+0x540/0x870 fs/ext4/indirect.c:1188 ext4_truncate+0x750/0xb10 fs/ext4/inode.c:4171 ext4_process_orphan+0x113/0x1c0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0x669/0x9b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5591 [inline] ext4_fill_super+0x3660/0x39a0 fs/ext4/super.c:5712 get_tree_bdev+0x272/0x300 fs/super.c:1598 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5744 vfs_get_tree+0x51/0x1b0 fs/super.c:1771 do_new_mount+0x203/0x660 fs/namespace.c:3337 path_mount+0x496/0xb30 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3863 __x64_sys_mount+0x67/0x80 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x000000010002ddc8 -> 0x652d7a7973206d6d Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7723 Comm: syz-executor.4 Not tainted 6.7.0-rc6-syzkaller-00168-g9a6b294ab496 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== EXT4-fs error (device loop4) in ext4_mb_clear_bb:6517: Corrupt filesystem EXT4-fs error (device loop4): ext4_clear_blocks:883: inode #13: comm syz-executor.4: attempt to clear invalid blocks 33619980 len 1 EXT4-fs error (device loop4): ext4_free_branches:1030: inode #13: comm syz-executor.4: invalid indirect mapped block 1819239214 (level 0) EXT4-fs (loop4): 1 truncate cleaned up syz-executor.4 (7723) used greatest stack depth: 8744 bytes left