BTRFS: device fsid 8ff932b8-f4e4-4b03-aed6-d7e5736fd60a devid 1 transid 8 /dev/loop4 scanned by syz-executor.4 (3746) BTRFS info (device loop4): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop4): using free space tree BTRFS info (device loop4): enabling ssd optimizations ===================================================== BUG: KMSAN: uninit-value in btrfs_comp_cpu_keys fs/btrfs/ctree.c:629 [inline] BUG: KMSAN: uninit-value in comp_keys fs/btrfs/ctree.c:605 [inline] BUG: KMSAN: uninit-value in generic_bin_search+0x780/0xb80 fs/btrfs/ctree.c:789 btrfs_comp_cpu_keys fs/btrfs/ctree.c:629 [inline] comp_keys fs/btrfs/ctree.c:605 [inline] generic_bin_search+0x780/0xb80 fs/btrfs/ctree.c:789 search_for_key_slot fs/btrfs/ctree.c:1742 [inline] btrfs_search_slot+0x1bdb/0x4630 fs/btrfs/ctree.c:2052 btrfs_insert_empty_items+0xaf/0x210 fs/btrfs/ctree.c:4103 btrfs_create_new_inode+0x192d/0x3bf0 fs/btrfs/inode.c:6410 btrfs_create_common+0x414/0x580 fs/btrfs/inode.c:6639 btrfs_create+0x167/0x210 fs/btrfs/inode.c:6679 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x28e9/0x5600 fs/namei.c:3710 do_filp_open+0x249/0x660 fs/namei.c:3740 do_sys_openat2+0x1f0/0x910 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_compat_sys_open fs/open.c:1377 [inline] __se_compat_sys_open fs/open.c:1375 [inline] __ia32_compat_sys_open+0x275/0x2e0 fs/open.c:1375 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:5578 alloc_pages+0xaae/0xd80 mm/mempolicy.c:2285 folio_alloc+0x3e/0x120 mm/mempolicy.c:2295 filemap_alloc_folio mm/filemap.c:971 [inline] __filemap_get_folio+0xe59/0x1b00 mm/filemap.c:1965 pagecache_get_page+0x4a/0x2f0 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:613 [inline] alloc_extent_buffer+0x731/0x2770 fs/btrfs/extent_io.c:4602 btrfs_find_create_tree_block+0x42/0x50 fs/btrfs/disk-io.c:915 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4863 [inline] btrfs_alloc_tree_block+0x36d/0x1f70 fs/btrfs/extent-tree.c:4982 __btrfs_cow_block+0x580/0x1cf0 fs/btrfs/ctree.c:417 btrfs_cow_block+0x7ca/0x9d0 fs/btrfs/ctree.c:572 btrfs_search_slot+0x17b9/0x4630 fs/btrfs/ctree.c:2009 btrfs_insert_empty_items+0xaf/0x210 fs/btrfs/ctree.c:4103 btrfs_create_new_inode+0x192d/0x3bf0 fs/btrfs/inode.c:6410 btrfs_create_common+0x414/0x580 fs/btrfs/inode.c:6639 btrfs_create+0x167/0x210 fs/btrfs/inode.c:6679 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x28e9/0x5600 fs/namei.c:3710 do_filp_open+0x249/0x660 fs/namei.c:3740 do_sys_openat2+0x1f0/0x910 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_compat_sys_open fs/open.c:1377 [inline] __se_compat_sys_open fs/open.c:1375 [inline] __ia32_compat_sys_open+0x275/0x2e0 fs/open.c:1375 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: 1 PID: 3746 Comm: syz-executor.4 Not tainted 6.1.0-rc4-syzkaller-62818-gb1376a14297d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 =====================================================