BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop0 scanned by syz-executor.0 (10077) BTRFS info (device loop0): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop0): turning on sync discard BTRFS info (device loop0): using free space tree BTRFS info (device loop0): enabling ssd optimizations ===================================================== 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 generic_bin_search+0x784/0xb80 fs/btrfs/ctree.c:913 btrfs_comp_cpu_keys fs/btrfs/ctree.c:753 [inline] comp_keys fs/btrfs/ctree.c:729 [inline] generic_bin_search+0x784/0xb80 fs/btrfs/ctree.c:913 search_for_key_slot fs/btrfs/ctree.c:1872 [inline] btrfs_search_slot+0x1caa/0x4710 fs/btrfs/ctree.c:2184 btrfs_insert_empty_items+0xb3/0x220 fs/btrfs/ctree.c:4206 btrfs_insert_empty_item fs/btrfs/ctree.h:631 [inline] btrfs_insert_inode_ref+0x2a8/0x1890 fs/btrfs/inode-item.c:331 btrfs_rename fs/btrfs/inode.c:9451 [inline] btrfs_rename2+0x3f73/0x66c0 fs/btrfs/inode.c:9561 vfs_rename+0x1dd5/0x2710 fs/namei.c:4779 do_renameat2+0x176f/0x1de0 fs/namei.c:4930 __do_sys_rename fs/namei.c:4976 [inline] __se_sys_rename fs/namei.c:4974 [inline] __ia32_sys_rename+0xdc/0x130 fs/namei.c:4974 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+0x9f6/0xe90 mm/page_alloc.c:5572 alloc_pages+0xab0/0xd80 mm/mempolicy.c:2287 folio_alloc+0x42/0x120 mm/mempolicy.c:2297 filemap_alloc_folio+0xb2/0x460 mm/filemap.c:972 __filemap_get_folio+0xe4b/0x1920 mm/filemap.c:1966 pagecache_get_page+0x4f/0x290 mm/folio-compat.c:98 find_or_create_page include/linux/pagemap.h:612 [inline] alloc_extent_buffer+0x733/0x3190 fs/btrfs/extent_io.c:4500 btrfs_find_create_tree_block+0x46/0x60 fs/btrfs/disk-io.c:1002 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4873 [inline] btrfs_alloc_tree_block+0x371/0x1f70 fs/btrfs/extent-tree.c:4992 __btrfs_cow_block+0x578/0x1f20 fs/btrfs/ctree.c:541 btrfs_cow_block+0x7cc/0xa00 fs/btrfs/ctree.c:696 btrfs_search_slot+0x189f/0x4710 fs/btrfs/ctree.c:2141 btrfs_insert_empty_items+0xb3/0x220 fs/btrfs/ctree.c:4206 btrfs_insert_empty_item fs/btrfs/ctree.h:631 [inline] btrfs_insert_inode_ref+0x2a8/0x1890 fs/btrfs/inode-item.c:331 btrfs_rename fs/btrfs/inode.c:9451 [inline] btrfs_rename2+0x3f73/0x66c0 fs/btrfs/inode.c:9561 vfs_rename+0x1dd5/0x2710 fs/namei.c:4779 do_renameat2+0x176f/0x1de0 fs/namei.c:4930 __do_sys_rename fs/namei.c:4976 [inline] __se_sys_rename fs/namei.c:4974 [inline] __ia32_sys_rename+0xdc/0x130 fs/namei.c:4974 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: 10077 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller-81151-g224e1375d540 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 =====================================================