EXT4-fs error (device loop1): ext4_do_update_inode:5082: inode #2: comm syz-executor.1: corrupted inode contents ================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff870e60ae of 1 bytes by task 11202 on cpu 0: number+0x7d0/0xa90 lib/vsprintf.c:564 vsnprintf+0xa44/0xe30 lib/vsprintf.c:2890 vscnprintf+0x42/0x80 lib/vsprintf.c:2930 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_inode+0x2d5/0x400 fs/ext4/super.c:869 __ext4_mark_inode_dirty+0xbe/0x440 fs/ext4/inode.c:5916 ext4_dirty_inode+0x91/0xb0 fs/ext4/inode.c:5942 __mark_inode_dirty+0x169/0x7d0 fs/fs-writeback.c:2452 mark_inode_dirty include/linux/fs.h:2380 [inline] dquot_alloc_space include/linux/quotaops.h:319 [inline] dquot_alloc_block include/linux/quotaops.h:336 [inline] ext4_mb_new_blocks+0x1041/0x21e0 fs/ext4/mballoc.c:6169 ext4_ext_map_blocks+0x10a1/0x33b0 fs/ext4/extents.c:4317 ext4_map_blocks+0x72a/0xf50 fs/ext4/inode.c:623 ext4_getblk+0x112/0x510 fs/ext4/inode.c:833 ext4_bread+0x2c/0x110 fs/ext4/inode.c:889 ext4_add_entry+0x10dd/0x1ec0 fs/ext4/namei.c:2436 ext4_add_nondir+0x50/0x190 fs/ext4/namei.c:2793 ext4_create+0x20e/0x2f0 fs/ext4/namei.c:2839 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3565 [inline] path_openat+0xdc2/0x1d40 fs/namei.c:3795 do_filp_open+0xf6/0x200 fs/namei.c:3825 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_open fs/open.c:1427 [inline] __se_sys_open fs/open.c:1423 [inline] __x64_sys_open+0xe6/0x110 fs/open.c:1423 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffffff870e60a8 of 8 bytes by task 11199 on cpu 1: 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+0x897/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_inode+0x2d5/0x400 fs/ext4/super.c:869 ext4_do_update_inode fs/ext4/inode.c:5082 [inline] ext4_mark_iloc_dirty+0x325/0xe10 fs/ext4/inode.c:5709 __ext4_mark_inode_dirty+0x314/0x440 fs/ext4/inode.c:5913 ext4_dirty_inode+0x91/0xb0 fs/ext4/inode.c:5942 __mark_inode_dirty+0x169/0x7d0 fs/fs-writeback.c:2452 mark_inode_dirty include/linux/fs.h:2380 [inline] dquot_alloc_space include/linux/quotaops.h:319 [inline] dquot_alloc_block include/linux/quotaops.h:336 [inline] ext4_mb_new_blocks+0x1041/0x21e0 fs/ext4/mballoc.c:6169 ext4_ext_map_blocks+0x10a1/0x33b0 fs/ext4/extents.c:4317 ext4_map_blocks+0x72a/0xf50 fs/ext4/inode.c:623 ext4_getblk+0x112/0x510 fs/ext4/inode.c:833 ext4_bread+0x2c/0x110 fs/ext4/inode.c:889 ext4_add_entry+0x10dd/0x1ec0 fs/ext4/namei.c:2436 ext4_add_nondir+0x50/0x190 fs/ext4/namei.c:2793 ext4_create+0x20e/0x2f0 fs/ext4/namei.c:2839 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3565 [inline] path_openat+0xdc2/0x1d40 fs/namei.c:3795 do_filp_open+0xf6/0x200 fs/namei.c:3825 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_open fs/open.c:1427 [inline] __se_sys_open fs/open.c:1423 [inline] __x64_sys_open+0xe6/0x110 fs/open.c:1423 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000ffffefcf -> 0x63203a3223206564 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 11199 Comm: syz-executor.1 Not tainted 6.8.0-rc4-syzkaller-00331-gc1ca10ceffbb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ================================================================== EXT4-fs error (device loop1): ext4_dirty_inode:5942: inode #2: comm syz-executor.1: mark_inode_dirty error EXT4-fs error (device loop1): ext4_do_update_inode:5082: inode #2: comm syz-executor.1: corrupted inode contents EXT4-fs error (device loop1): __ext4_ext_dirty:202: inode #2: comm syz-executor.1: mark_inode_dirty error syz-executor.1 (11199) used greatest stack depth: 8608 bytes left