EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #3: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5): ext4_dirty_inode:5965: inode #3: comm syz-executor.5: mark_inode_dirty error ================================================================== BUG: KCSAN: data-race in data_push_tail / vsnprintf write to 0xffffffff86ed7beb of 1 bytes by task 29670 on cpu 1: vsnprintf+0xdd0/0xe20 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_error_inode+0x2d5/0x400 fs/ext4/super.c:869 __ext4_mark_inode_dirty+0xbe/0x440 fs/ext4/inode.c:5939 __ext4_ext_dirty fs/ext4/extents.c:202 [inline] ext4_ext_insert_extent+0x1e25/0x2980 fs/ext4/extents.c:2178 ext4_ext_map_blocks+0x117f/0x3640 fs/ext4/extents.c:4306 ext4_map_blocks+0x704/0xf60 fs/ext4/inode.c:621 ext4_getblk+0x112/0x510 fs/ext4/inode.c:831 ext4_bread+0x2c/0x110 fs/ext4/inode.c:887 ext4_quota_write+0x155/0x370 fs/ext4/super.c:7235 write_blk fs/quota/quota_tree.c:64 [inline] get_free_dqblk+0x1c5/0x2d0 fs/quota/quota_tree.c:130 do_insert_tree+0x14c/0xde0 fs/quota/quota_tree.c:340 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 dq_insert_tree fs/quota/quota_tree.c:401 [inline] qtree_write_dquot+0x241/0x2b0 fs/quota/quota_tree.c:420 v2_write_dquot+0x9e/0xd0 fs/quota/quota_v2.c:358 dquot_acquire+0x1c8/0x2d0 fs/quota/dquot.c:470 ext4_acquire_dquot+0x161/0x1a0 fs/ext4/super.c:6892 dqget+0x51c/0x880 fs/quota/dquot.c:978 __dquot_initialize+0x18a/0x750 fs/quota/dquot.c:1504 dquot_initialize+0x1a/0x20 fs/quota/dquot.c:1562 ext4_process_orphan+0x32/0x1c0 fs/ext4/orphan.c:329 ext4_orphan_cleanup+0x669/0x9b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5590 [inline] ext4_fill_super+0x3660/0x39a0 fs/ext4/super.c:5711 get_tree_bdev+0x272/0x300 fs/super.c:1598 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5743 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:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffffff86ed7be8 of 8 bytes by task 29671 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_inode+0x2d5/0x400 fs/ext4/super.c:869 __ext4_mark_inode_dirty+0xbe/0x440 fs/ext4/inode.c:5939 ext4_dirty_inode+0x91/0xb0 fs/ext4/inode.c:5965 __mark_inode_dirty+0x169/0x7d0 fs/fs-writeback.c:2452 mark_inode_dirty_sync include/linux/fs.h:2311 [inline] dquot_alloc_space_nofail include/linux/quotaops.h:306 [inline] dquot_alloc_block_nofail include/linux/quotaops.h:332 [inline] ext4_mb_new_blocks+0x1013/0x21e0 fs/ext4/mballoc.c:6149 ext4_ext_map_blocks+0x1086/0x3640 fs/ext4/extents.c:4285 ext4_map_blocks+0x704/0xf60 fs/ext4/inode.c:621 ext4_getblk+0x112/0x510 fs/ext4/inode.c:831 ext4_bread+0x2c/0x110 fs/ext4/inode.c:887 ext4_quota_write+0x155/0x370 fs/ext4/super.c:7235 write_blk fs/quota/quota_tree.c:64 [inline] get_free_dqblk+0x1c5/0x2d0 fs/quota/quota_tree.c:130 do_insert_tree+0x14c/0xde0 fs/quota/quota_tree.c:340 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 do_insert_tree+0x4ab/0xde0 fs/quota/quota_tree.c:375 dq_insert_tree fs/quota/quota_tree.c:401 [inline] qtree_write_dquot+0x241/0x2b0 fs/quota/quota_tree.c:420 v2_write_dquot+0x9e/0xd0 fs/quota/quota_v2.c:358 dquot_acquire+0x1c8/0x2d0 fs/quota/dquot.c:470 ext4_acquire_dquot+0x161/0x1a0 fs/ext4/super.c:6892 dqget+0x51c/0x880 fs/quota/dquot.c:978 __dquot_initialize+0x18a/0x750 fs/quota/dquot.c:1504 dquot_initialize+0x1a/0x20 fs/quota/dquot.c:1562 ext4_process_orphan+0x32/0x1c0 fs/ext4/orphan.c:329 ext4_orphan_cleanup+0x669/0x9b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5590 [inline] ext4_fill_super+0x3660/0x39a0 fs/ext4/super.c:5711 get_tree_bdev+0x272/0x300 fs/super.c:1598 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5743 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:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000100018fab -> 0x0000000100726f72 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 29671 Comm: syz-executor.5 Not tainted 6.6.0-syzkaller-14651-gd2f51b3516da #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ================================================================== EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #3: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5): __ext4_ext_dirty:202: inode #3: comm syz-executor.5: mark_inode_dirty error Quota error (device loop5): write_blk: dquota write failed Quota error (device loop5): qtree_write_dquot: Error -117 occurred while creating quota EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #16: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5): ext4_dirty_inode:5965: inode #16: comm syz-executor.5: mark_inode_dirty error EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #16: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5): __ext4_ext_dirty:202: inode #16: comm syz-executor.5: mark_inode_dirty error EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #16: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5) in ext4_orphan_del:305: Corrupt filesystem EXT4-fs error (device loop5): ext4_do_update_inode:5105: inode #16: comm syz-executor.5: corrupted inode contents EXT4-fs error (device loop5): ext4_truncate:4192: inode #16: comm syz-executor.5: mark_inode_dirty error EXT4-fs error (device loop5) in ext4_process_orphan:347: Corrupt filesystem EXT4-fs (loop5): 1 truncate cleaned up EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ext4 filesystem being mounted at /root/syzkaller-testdir3296775270/syzkaller.6gxenw/1547/file1 supports timestamps until 2038-01-19 (0x7fffffff) syz-executor.5 (29671) used greatest stack depth: 7624 bytes left