EXT4-fs error (device loop2): ext4_dirty_inode:5942: inode #3: comm syz-executor.2: mark_inode_dirty error ================================================================== BUG: KCSAN: data-race in data_push_tail / string write to 0xffffffff871025f5 of 1 bytes by task 14421 on cpu 0: string_nocheck lib/vsprintf.c:650 [inline] string+0x16c/0x200 lib/vsprintf.c:728 vsnprintf+0xa09/0xe30 lib/vsprintf.c:2824 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_ext_dirty+0xbf/0x130 fs/ext4/extents.c:202 ext4_ext_insert_extent+0x1ba7/0x2720 fs/ext4/extents.c:2178 ext4_ext_map_blocks+0x11a6/0x33b0 fs/ext4/extents.c:4338 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_quota_write+0x155/0x370 fs/ext4/super.c:7225 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:6882 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:5582 [inline] ext4_fill_super+0x3668/0x39b0 fs/ext4/super.c:5703 get_tree_bdev+0x250/0x2e0 fs/super.c:1614 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x53/0x1d0 fs/super.c:1779 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x496/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 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 0xffffffff871025f0 of 8 bytes by task 14426 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_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_sync include/linux/fs.h:2387 [inline] dquot_alloc_space_nofail include/linux/quotaops.h:305 [inline] dquot_alloc_block_nofail include/linux/quotaops.h:331 [inline] ext4_mb_new_blocks+0x1016/0x21e0 fs/ext4/mballoc.c:6165 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_quota_write+0x155/0x370 fs/ext4/super.c:7225 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:6882 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:5582 [inline] ext4_fill_super+0x3668/0x39b0 fs/ext4/super.c:5703 get_tree_bdev+0x250/0x2e0 fs/super.c:1614 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x53/0x1d0 fs/super.c:1779 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x496/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 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: 0x000000010000e5c8 -> 0x652d7a7973206d6d Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 14426 Comm: syz-executor.2 Not tainted 6.8.0-rc7-syzkaller-00231-g09e5c48fea17 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ================================================================== EXT4-fs error (device loop2): ext4_do_update_inode:5082: inode #3: comm syz-executor.2: corrupted inode contents EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #3: comm syz-executor.2: mark_inode_dirty error EXT4-fs (loop2): 1 orphan inode deleted syz-executor.2 (14426) used greatest stack depth: 7608 bytes left