EXT4-fs error (device loop0): ext4_mb_generate_buddy:1098: group 0, ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff86ec1b90 of 8 bytes by task 10185 on cpu 1: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1074 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x50b/0xad0 kernel/printk/printk.c:2282 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2338 vprintk_default+0x22/0x30 kernel/printk/printk.c:2368 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0xa0 kernel/printk/printk.c:2378 __ext4_msg+0x174/0x180 fs/ext4/super.c:937 ext4_orphan_cleanup+0x93d/0xa00 fs/ext4/orphan.c:497 __ext4_fill_super fs/ext4/super.c:5516 [inline] ext4_fill_super+0x4237/0x4500 fs/ext4/super.c:5644 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1282 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5675 vfs_get_tree+0x49/0x190 fs/super.c:1489 do_new_mount+0x200/0x650 fs/namespace.c:3145 path_mount+0x4aa/0xb70 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3674 __x64_sys_mount+0x63/0x70 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86ec1b90 of 8 bytes by task 10195 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x10f/0x440 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x50b/0xad0 kernel/printk/printk.c:2282 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2338 vprintk_default+0x22/0x30 kernel/printk/printk.c:2368 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0xa0 kernel/printk/printk.c:2378 __ext4_grp_locked_error+0x4dd/0x710 fs/ext4/super.c:1003 ext4_mb_generate_buddy+0x4bb/0x550 fs/ext4/mballoc.c:1095 ext4_mb_init_cache+0xbb0/0xf00 fs/ext4/mballoc.c:1261 ext4_mb_init_group+0x29e/0x480 fs/ext4/mballoc.c:1394 ext4_mb_load_buddy_gfp+0x89c/0x1010 fs/ext4/mballoc.c:1462 ext4_mb_clear_bb+0x4f5/0x12a0 fs/ext4/mballoc.c:5974 ext4_free_blocks+0x77d/0x890 fs/ext4/mballoc.c:6173 ext4_free_branches+0x320/0x440 fs/ext4/indirect.c:1082 ext4_ind_truncate+0x783/0x8b0 fs/ext4/indirect.c:1193 ext4_truncate+0x762/0xaf0 fs/ext4/inode.c:4344 ext4_process_orphan+0x115/0x1c0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0x690/0xa00 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5516 [inline] ext4_fill_super+0x4237/0x4500 fs/ext4/super.c:5644 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1282 ext4_get_tree+0x18/0x20 fs/ext4/super.c:5675 vfs_get_tree+0x49/0x190 fs/super.c:1489 do_new_mount+0x200/0x650 fs/namespace.c:3145 path_mount+0x4aa/0xb70 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3674 __x64_sys_mount+0x63/0x70 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001000112f4 -> 0x0000000100011bcc Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10195 Comm: syz-executor.0 Not tainted 6.2.0-rc1-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ================================================================== block bitmap and bg descriptor inconsistent: 191 vs 220 free clusters EXT4-fs error (device loop0): ext4_clear_blocks:875: inode #13: comm syz-executor.0: attempt to clear invalid blocks 33619980 len 1 EXT4-fs error (device loop0): ext4_free_branches:1022: inode #13: comm syz-executor.0: invalid indirect mapped block 1819239214 (level 0) EXT4-fs error (device loop0): ext4_free_branches:1022: inode #13: comm syz-executor.0: invalid indirect mapped block 1819239214 (level 1) EXT4-fs (loop0): 1 truncate cleaned up syz-executor.0 (10195) used greatest stack depth: 8912 bytes left