EXT4-fs error (device loop0): ext4_mb_generate_buddy:1217: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop0): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2048 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost ================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff86ee5fb8 of 1 bytes by task 3130 on cpu 1: number+0x7d0/0xa90 lib/vsprintf.c:564 vsnprintf+0xa44/0xe20 lib/vsprintf.c:2885 va_format lib/vsprintf.c:1683 [inline] pointer+0x8a1/0xd10 lib/vsprintf.c:2450 vsnprintf+0x861/0xe20 lib/vsprintf.c:2823 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_grp_locked_error+0x5a5/0x780 fs/ext4/super.c:1079 ext4_mb_generate_buddy+0x3d2/0x460 fs/ext4/mballoc.c:1214 ext4_mb_init_cache+0x933/0xcc0 fs/ext4/mballoc.c:1384 ext4_mb_init_group+0x1c5/0x5b0 fs/ext4/mballoc.c:1520 ext4_mb_good_group_nolock fs/ext4/mballoc.c:2673 [inline] ext4_mb_regular_allocator+0xb25/0x2380 fs/ext4/mballoc.c:2871 ext4_mb_new_blocks+0x801/0x21e0 fs/ext4/mballoc.c:6187 ext4_ext_map_blocks+0x1086/0x3640 fs/ext4/extents.c:4285 ext4_map_blocks+0x704/0xf60 fs/ext4/inode.c:621 mpage_map_one_extent fs/ext4/inode.c:2169 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2222 [inline] ext4_do_writepages+0xd85/0x2100 fs/ext4/inode.c:2685 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2774 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 __writeback_single_inode+0x91/0x860 fs/fs-writeback.c:1625 writeback_sb_inodes+0x514/0xad0 fs/fs-writeback.c:1916 wb_writeback+0x252/0x6e0 fs/fs-writeback.c:2092 wb_do_writeback fs/fs-writeback.c:2239 [inline] wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2279 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2703 worker_thread+0x525/0x730 kernel/workqueue.c:2784 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 read to 0xffffffff86ee5fb8 of 8 bytes by task 10226 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_msg+0x18a/0x1a0 fs/ext4/super.c:1006 mpage_map_and_submit_extent fs/ext4/inode.c:2246 [inline] ext4_do_writepages+0x19cb/0x2100 fs/ext4/inode.c:2685 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2774 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:387 __filemap_fdatawrite_range mm/filemap.c:420 [inline] __filemap_fdatawrite mm/filemap.c:426 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:453 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3077 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x299/0x630 fs/file_table.c:394 __fput_sync+0x44/0x50 fs/file_table.c:475 __do_sys_close fs/open.c:1590 [inline] __se_sys_close+0xfa/0x1a0 fs/open.c:1575 __x64_sys_close+0x1f/0x30 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000ffffecbc -> 0x3939303531207376 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10226 Comm: syz-executor.0 Not tainted 6.7.0-rc2-syzkaller-00265-gd2da77f431ac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 ================================================================== EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=2415919104 EXT4-fs (loop0): dirty_blocks=8192 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=512 syz-executor.0 (10226) used greatest stack depth: 10312 bytes left