BTRFS info (device loop1): using free space tree BTRFS info (device loop1): enabling ssd optimizations BTRFS info (device loop1): auto enabling async discard ===================================================== BUG: KMSAN: uninit-value in copy_items+0x85a/0x1eb0 fs/btrfs/tree-log.c:4349 copy_items+0x85a/0x1eb0 fs/btrfs/tree-log.c:4349 btrfs_log_all_xattrs+0x869/0x9e0 fs/btrfs/tree-log.c:5045 btrfs_log_inode+0x566f/0x8220 fs/btrfs/tree-log.c:6564 btrfs_log_inode_parent+0x1206/0x1c40 fs/btrfs/tree-log.c:7015 btrfs_log_dentry_safe+0x9a/0x100 fs/btrfs/tree-log.c:7116 btrfs_sync_file+0x1862/0x22d0 fs/btrfs/file.c:1914 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fsync fs/sync.c:220 [inline] __se_sys_fsync fs/sync.c:218 [inline] __ia32_sys_fsync+0x307/0x400 fs/sync.c:218 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+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was stored to memory at: read_extent_buffer+0x16d/0x3d0 fs/btrfs/extent_io.c:4073 btrfs_item_key fs/btrfs/accessors.h:489 [inline] btrfs_item_key_to_cpu fs/btrfs/accessors.h:603 [inline] copy_items+0x46f/0x1eb0 fs/btrfs/tree-log.c:4347 btrfs_log_all_xattrs+0x869/0x9e0 fs/btrfs/tree-log.c:5045 btrfs_log_inode+0x566f/0x8220 fs/btrfs/tree-log.c:6564 btrfs_log_inode_parent+0x1206/0x1c40 fs/btrfs/tree-log.c:7015 btrfs_log_dentry_safe+0x9a/0x100 fs/btrfs/tree-log.c:7116 btrfs_sync_file+0x1862/0x22d0 fs/btrfs/file.c:1914 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fsync fs/sync.c:220 [inline] __se_sys_fsync fs/sync.c:218 [inline] __ia32_sys_fsync+0x307/0x400 fs/sync.c:218 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+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Uninit was created at: __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4500 __alloc_pages_bulk+0x19e/0x1fa0 mm/page_alloc.c:4425 alloc_pages_bulk_array include/linux/gfp.h:201 [inline] btrfs_alloc_page_array fs/btrfs/extent_io.c:764 [inline] btrfs_clone_extent_buffer+0x3e7/0x1180 fs/btrfs/extent_io.c:3272 copy_items+0x14d/0x1eb0 fs/btrfs/tree-log.c:4313 btrfs_log_all_xattrs+0x869/0x9e0 fs/btrfs/tree-log.c:5045 btrfs_log_inode+0x566f/0x8220 fs/btrfs/tree-log.c:6564 btrfs_log_inode_parent+0x1206/0x1c40 fs/btrfs/tree-log.c:7015 btrfs_log_dentry_safe+0x9a/0x100 fs/btrfs/tree-log.c:7116 btrfs_sync_file+0x1862/0x22d0 fs/btrfs/file.c:1914 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fsync fs/sync.c:220 [inline] __se_sys_fsync fs/sync.c:218 [inline] __ia32_sys_fsync+0x307/0x400 fs/sync.c:218 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+0x37/0x80 arch/x86/entry/common.c:203 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246 entry_SYSENTER_compat_after_hwframe+0x70/0x82 CPU: 0 PID: 5516 Comm: syz-executor.1 Not tainted 6.5.0-rc3-syzkaller-00024-g18b44bc5a672 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 =====================================================