BTRFS info (device loop5): using sha256 (sha256-generic) checksum algorithm BTRFS info (device loop5): using free space tree BTRFS info (device loop5): enabling ssd optimizations BTRFS info (device loop5): auto enabling async discard ===================================================== BUG: KMSAN: uninit-value in btrfs_comp_cpu_keys fs/btrfs/ctree.c:753 [inline] BUG: KMSAN: uninit-value in comp_keys fs/btrfs/ctree.c:729 [inline] BUG: KMSAN: uninit-value in btrfs_bin_search+0x74c/0xb30 fs/btrfs/ctree.c:919 btrfs_comp_cpu_keys fs/btrfs/ctree.c:753 [inline] comp_keys fs/btrfs/ctree.c:729 [inline] btrfs_bin_search+0x74c/0xb30 fs/btrfs/ctree.c:919 search_for_key_slot fs/btrfs/ctree.c:1875 [inline] btrfs_search_slot+0x1a7e/0x4380 fs/btrfs/ctree.c:2187 btrfs_truncate_inode_items+0x5fb/0x40d0 fs/btrfs/inode-item.c:516 btrfs_truncate fs/btrfs/inode.c:8310 [inline] btrfs_setsize fs/btrfs/inode.c:5045 [inline] btrfs_setattr+0x1728/0x2990 fs/btrfs/inode.c:5080 notify_change+0x1bfc/0x1cf0 fs/attr.c:483 do_truncate+0x22a/0x2a0 fs/open.c:66 handle_truncate fs/namei.c:3295 [inline] do_open fs/namei.c:3640 [inline] path_openat+0x4fd9/0x5a00 fs/namei.c:3791 do_filp_open+0x20d/0x590 fs/namei.c:3818 do_sys_openat2+0x1e9/0x8a0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_compat_sys_open fs/open.c:1423 [inline] __se_compat_sys_open fs/open.c:1421 [inline] __ia32_compat_sys_open+0x26c/0x2c0 fs/open.c:1421 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+0xd01/0x1040 folio_alloc+0x42/0x120 mm/mempolicy.c:2289 filemap_alloc_folio+0xa5/0x430 mm/filemap.c:976 __filemap_get_folio+0x908/0x13a0 mm/filemap.c:1965 pagecache_get_page+0x4e/0x200 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:635 [inline] alloc_extent_buffer+0x725/0x3130 fs/btrfs/extent_io.c:3888 btrfs_find_create_tree_block+0x46/0x60 fs/btrfs/disk-io.c:835 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4776 [inline] btrfs_alloc_tree_block+0x344/0x1d20 fs/btrfs/extent-tree.c:4895 __btrfs_cow_block+0x562/0x1d50 fs/btrfs/ctree.c:541 btrfs_cow_block+0x7cc/0xa00 fs/btrfs/ctree.c:696 btrfs_search_slot+0x169d/0x4380 fs/btrfs/ctree.c:2144 btrfs_truncate_inode_items+0x5fb/0x40d0 fs/btrfs/inode-item.c:516 btrfs_truncate fs/btrfs/inode.c:8310 [inline] btrfs_setsize fs/btrfs/inode.c:5045 [inline] btrfs_setattr+0x1728/0x2990 fs/btrfs/inode.c:5080 notify_change+0x1bfc/0x1cf0 fs/attr.c:483 do_truncate+0x22a/0x2a0 fs/open.c:66 handle_truncate fs/namei.c:3295 [inline] do_open fs/namei.c:3640 [inline] path_openat+0x4fd9/0x5a00 fs/namei.c:3791 do_filp_open+0x20d/0x590 fs/namei.c:3818 do_sys_openat2+0x1e9/0x8a0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_compat_sys_open fs/open.c:1423 [inline] __se_compat_sys_open fs/open.c:1421 [inline] __ia32_compat_sys_open+0x26c/0x2c0 fs/open.c:1421 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: 5227 Comm: syz-executor.5 Not tainted 6.4.0-rc4-syzkaller-g2741f1b02117 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 =====================================================