===================================================== BUG: KMSAN: uninit-value in copy_items+0x84d/0x1fb0 fs/btrfs/tree-log.c:4377 copy_items+0x84d/0x1fb0 fs/btrfs/tree-log.c:4377 btrfs_log_all_xattrs+0x8ad/0xa50 fs/btrfs/tree-log.c:5073 btrfs_log_inode+0x5560/0x8a70 fs/btrfs/tree-log.c:6573 btrfs_log_inode_parent+0x11df/0x1c10 fs/btrfs/tree-log.c:7024 btrfs_log_dentry_safe+0x96/0x100 fs/btrfs/tree-log.c:7125 btrfs_sync_file+0x1a1e/0x24c0 fs/btrfs/file.c:1927 vfs_fsync_range+0x1f9/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] btrfs_do_write_iter+0x1ce8/0x25e0 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x34/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x830/0x1570 fs/read_write.c:584 ksys_write+0x21b/0x4e0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __ia32_sys_write+0x8d/0xd0 fs/read_write.c:646 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was stored to memory at: read_extent_buffer+0x169/0x3c0 fs/btrfs/extent_io.c:5093 btrfs_item_key fs/btrfs/accessors.h:489 [inline] btrfs_item_key_to_cpu fs/btrfs/accessors.h:603 [inline] copy_items+0x476/0x1fb0 fs/btrfs/tree-log.c:4375 btrfs_log_all_xattrs+0x8ad/0xa50 fs/btrfs/tree-log.c:5073 btrfs_log_inode+0x5560/0x8a70 fs/btrfs/tree-log.c:6573 btrfs_log_inode_parent+0x11df/0x1c10 fs/btrfs/tree-log.c:7024 btrfs_log_dentry_safe+0x96/0x100 fs/btrfs/tree-log.c:7125 btrfs_sync_file+0x1a1e/0x24c0 fs/btrfs/file.c:1927 vfs_fsync_range+0x1f9/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] btrfs_do_write_iter+0x1ce8/0x25e0 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x34/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x830/0x1570 fs/read_write.c:584 ksys_write+0x21b/0x4e0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __ia32_sys_write+0x8d/0xd0 fs/read_write.c:646 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was created at: __alloc_pages+0x9f1/0xe80 mm/page_alloc.c:5572 __alloc_pages_bulk+0x1f60/0x2500 mm/page_alloc.c:5497 alloc_pages_bulk_array include/linux/gfp.h:201 [inline] btrfs_alloc_page_array fs/btrfs/extent_io.c:1227 [inline] btrfs_clone_extent_buffer+0x441/0x11d0 fs/btrfs/extent_io.c:4199 copy_items+0x15a/0x1fb0 fs/btrfs/tree-log.c:4341 btrfs_log_all_xattrs+0x8ad/0xa50 fs/btrfs/tree-log.c:5073 btrfs_log_inode+0x5560/0x8a70 fs/btrfs/tree-log.c:6573 btrfs_log_inode_parent+0x11df/0x1c10 fs/btrfs/tree-log.c:7024 btrfs_log_dentry_safe+0x96/0x100 fs/btrfs/tree-log.c:7125 btrfs_sync_file+0x1a1e/0x24c0 fs/btrfs/file.c:1927 vfs_fsync_range+0x1f9/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] btrfs_do_write_iter+0x1ce8/0x25e0 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x34/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x830/0x1570 fs/read_write.c:584 ksys_write+0x21b/0x4e0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __ia32_sys_write+0x8d/0xd0 fs/read_write.c:646 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 CPU: 0 PID: 8638 Comm: syz-executor.2 Not tainted 6.2.0-rc6-syzkaller-80422-geda666ff2276 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 =====================================================