EXT4-fs error (device loop2): ext4_free_branches:1030: inode #13: comm syz-executor.2: invalid indirect mapped block 327680 (level 1) EXT4-fs error (device loop2): ext4_clear_blocks:883: inode #13: comm syz-executor.2: attempt to clear invalid blocks 2 len 1 ================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff86f5303f of 1 bytes by task 9199 on cpu 1: number+0x7d0/0xa90 lib/vsprintf.c:562 vsnprintf+0xa44/0xe20 lib/vsprintf.c:2883 vscnprintf+0x42/0x80 lib/vsprintf.c:2923 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2128 vprintk_store+0x56f/0x800 kernel/printk/printk.c:2242 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2288 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 set_capacity_and_notify+0x11d/0x170 block/genhd.c:86 loop_set_size+0x2e/0x70 drivers/block/loop.c:237 loop_configure+0xaf9/0xca0 drivers/block/loop.c:1100 lo_ioctl+0x682/0x12e0 blkdev_ioctl+0x375/0x460 block/ioctl.c:628 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86f53038 of 8 bytes by task 9186 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:2232 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2288 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __ext4_error_inode+0x2d5/0x400 fs/ext4/super.c:801 ext4_clear_blocks+0x186/0x2c0 fs/ext4/indirect.c:881 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_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_ind_truncate+0x82c/0x870 fs/ext4/indirect.c:1215 ext4_truncate+0x74b/0xb20 fs/ext4/inode.c:4129 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:5554 [inline] ext4_fill_super+0x360c/0x3950 fs/ext4/super.c:5675 get_tree_bdev+0x250/0x2d0 fs/super.c:1538 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5707 vfs_get_tree+0x51/0x1b0 fs/super.c:1711 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000100014057 -> 0x742030206d6f7266 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9186 Comm: syz-executor.2 Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 ================================================================== EXT4-fs error (device loop2): ext4_mb_generate_buddy:1216: group 0, block bitmap and bg descriptor inconsistent: 218 vs 220 free clusters EXT4-fs error (device loop2): ext4_free_branches:1030: inode #13: comm syz-executor.2: invalid indirect mapped block 1819239214 (level 0) EXT4-fs error (device loop2): ext4_free_branches:1030: inode #13: comm syz-executor.2: invalid indirect mapped block 1819239214 (level 1) EXT4-fs (loop2): 1 truncate cleaned up syz-executor.2 (9186) used greatest stack depth: 9544 bytes left