EXT4-fs error (device loop5): ext4_xattr_ibody_find:2240: inode #15: comm syz.5.32787: corrupted in-inode xattr: invalid ea_ino ================================================================== BUG: KCSAN: data-race in data_alloc / prb_reserve write to 0xffffffff8667fa88 of 8 bytes by task 29964 on cpu 1: data_alloc+0x291/0x2c0 kernel/printk/printk_ringbuffer.c:1096 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 __ext4_msg+0x18e/0x1a0 fs/ext4/super.c:998 ext4_handle_error+0x4a9/0x4e0 fs/ext4/super.c:743 __ext4_std_error+0x187/0x370 fs/ext4/super.c:978 ext4_reserve_inode_write+0x1bd/0x200 fs/ext4/inode.c:5837 __ext4_mark_inode_dirty+0x8e/0x440 fs/ext4/inode.c:6004 ext4_dirty_inode+0x91/0xb0 fs/ext4/inode.c:6041 __mark_inode_dirty+0x166/0x7e0 fs/fs-writeback.c:2515 mark_inode_dirty_sync include/linux/fs.h:2490 [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+0x100c/0x2020 fs/ext4/mballoc.c:6179 ext4_new_meta_blocks+0xc1/0x1a0 fs/ext4/balloc.c:750 ext4_ext_grow_indepth fs/ext4/extents.c:1329 [inline] ext4_ext_create_new_leaf fs/ext4/extents.c:1433 [inline] ext4_ext_insert_extent+0x9d8/0x2880 fs/ext4/extents.c:2115 ext4_ext_map_blocks+0x10be/0x35c0 fs/ext4/extents.c:4400 ext4_map_create_blocks fs/ext4/inode.c:516 [inline] ext4_map_blocks+0x5aa/0xd20 fs/ext4/inode.c:702 ext4_getblk+0x11f/0x530 fs/ext4/inode.c:849 ext4_bread+0x2c/0x110 fs/ext4/inode.c:912 ext4_quota_write+0x15a/0x370 fs/ext4/super.c:7285 write_blk fs/quota/quota_tree.c:70 [inline] get_free_dqblk+0x1cc/0x2d0 fs/quota/quota_tree.c:136 do_insert_tree+0x161/0x960 fs/quota/quota_tree.c:347 do_insert_tree+0x71c/0x960 fs/quota/quota_tree.c:402 do_insert_tree+0x71c/0x960 fs/quota/quota_tree.c:402 do_insert_tree+0x6ef/0x960 fs/quota/quota_tree.c:402 dq_insert_tree fs/quota/quota_tree.c:432 [inline] qtree_write_dquot+0x2e4/0x320 fs/quota/quota_tree.c:451 v2_write_dquot+0xd3/0x130 fs/quota/quota_v2.c:372 dquot_acquire+0x1ba/0x2b0 fs/quota/dquot.c:470 ext4_acquire_dquot+0x170/0x210 fs/ext4/super.c:6934 dqget+0x522/0x8b0 fs/quota/dquot.c:977 __dquot_initialize+0x194/0x760 fs/quota/dquot.c:1505 dquot_initialize+0x1a/0x20 fs/quota/dquot.c:1567 ext4_process_orphan+0x32/0x1c0 fs/ext4/orphan.c:329 ext4_orphan_cleanup+0x696/0x9e0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5610 [inline] ext4_fill_super+0x36bb/0x3a10 fs/ext4/super.c:5733 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5765 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 do_new_mount+0x227/0x690 fs/namespace.c:3511 path_mount+0x49b/0xb30 fs/namespace.c:3838 do_mount fs/namespace.c:3851 [inline] __do_sys_mount fs/namespace.c:4061 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4038 __x64_sys_mount+0x67/0x80 fs/namespace.c:4038 x64_sys_call+0x2c84/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff8667fa88 of 8 bytes by task 29962 on cpu 0: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_push_tail kernel/printk/printk_ringbuffer.c:778 [inline] desc_reserve kernel/printk/printk_ringbuffer.c:924 [inline] prb_reserve+0x235/0xb60 kernel/printk/printk_ringbuffer.c:1619 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 __ext4_error+0x221/0x310 fs/ext4/super.c:830 ext4_orphan_get+0x172/0x3e0 fs/ext4/ialloc.c:1392 ext4_orphan_cleanup+0x5df/0x9e0 fs/ext4/orphan.c:467 __ext4_fill_super fs/ext4/super.c:5610 [inline] ext4_fill_super+0x36bb/0x3a10 fs/ext4/super.c:5733 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5765 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 do_new_mount+0x227/0x690 fs/namespace.c:3511 path_mount+0x49b/0xb30 fs/namespace.c:3838 do_mount fs/namespace.c:3851 [inline] __do_sys_mount fs/namespace.c:4061 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4038 __x64_sys_mount+0x67/0x80 fs/namespace.c:4038 x64_sys_call+0x2c84/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000003d19d8 -> 0x000000000047c508 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 29962 Comm: syz.5.32787 Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== EXT4-fs error (device loop5): ext4_orphan_get:1394: comm syz.5.32787: couldn't read orphan inode 15 (err -117)