BTRFS info (device loop3): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop3): turning on sync discard BTRFS info (device loop3): using free space tree BTRFS info (device loop3): enabling ssd optimizations ===================================================== 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+0x56a4/0x82d0 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+0x188b/0x2250 fs/btrfs/file.c:1927 vfs_fsync_range+0x1fd/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2469 [inline] btrfs_do_write_iter+0x1cd0/0x2580 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x38/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8f9/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 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+0x91/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+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:4468 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+0x56a4/0x82d0 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+0x188b/0x2250 fs/btrfs/file.c:1927 vfs_fsync_range+0x1fd/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2469 [inline] btrfs_do_write_iter+0x1cd0/0x2580 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x38/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8f9/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 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+0x91/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+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:4791 __alloc_pages_bulk+0x19e/0x1fa0 mm/page_alloc.c:4716 alloc_pages_bulk_array include/linux/gfp.h:201 [inline] btrfs_alloc_page_array fs/btrfs/extent_io.c:844 [inline] btrfs_clone_extent_buffer+0x440/0x11d0 fs/btrfs/extent_io.c:3589 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+0x56a4/0x82d0 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+0x188b/0x2250 fs/btrfs/file.c:1927 vfs_fsync_range+0x1fd/0x250 fs/sync.c:188 generic_write_sync include/linux/fs.h:2469 [inline] btrfs_do_write_iter+0x1cd0/0x2580 fs/btrfs/file.c:1684 btrfs_file_write_iter+0x38/0x40 fs/btrfs/file.c:1698 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8f9/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 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+0x91/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+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: 1 PID: 8619 Comm: syz-executor.3 Not tainted 6.4.0-rc4-syzkaller-g2741f1b02117 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 =====================================================