BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop1 scanned by syz-executor.1 (7669) BTRFS info (device loop1): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop1): turning on sync discard BTRFS info (device loop1): using free space tree BTRFS info (device loop1): enabling ssd optimizations ===================================================== BUG: KMSAN: uninit-value in extent_fiemap+0x2a1e/0x5820 fs/btrfs/extent_io.c:2938 extent_fiemap+0x2a1e/0x5820 fs/btrfs/extent_io.c:2938 btrfs_fiemap+0x203/0x240 fs/btrfs/inode.c:7943 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x2d5a/0x3b40 fs/ioctl.c:810 __do_compat_sys_ioctl fs/ioctl.c:962 [inline] __se_compat_sys_ioctl+0x6af/0xfe0 fs/ioctl.c:910 __ia32_compat_sys_ioctl+0x93/0xd0 fs/ioctl.c:910 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 fs/btrfs/extent_io.c:4073 [inline] btrfs_item_key fs/btrfs/accessors.h:489 [inline] btrfs_item_key_to_cpu fs/btrfs/accessors.h:603 [inline] extent_fiemap+0x1dbb/0x5820 fs/btrfs/extent_io.c:2937 btrfs_fiemap+0x203/0x240 fs/btrfs/inode.c:7943 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x2d5a/0x3b40 fs/ioctl.c:810 __do_compat_sys_ioctl fs/ioctl.c:962 [inline] __se_compat_sys_ioctl+0x6af/0xfe0 fs/ioctl.c:910 __ia32_compat_sys_ioctl+0x93/0xd0 fs/ioctl.c:910 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 fiemap_search_slot fs/btrfs/extent_io.c:2665 [inline] extent_fiemap+0x1a65/0x5820 fs/btrfs/extent_io.c:2912 btrfs_fiemap+0x203/0x240 fs/btrfs/inode.c:7943 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x2d5a/0x3b40 fs/ioctl.c:810 __do_compat_sys_ioctl fs/ioctl.c:962 [inline] __se_compat_sys_ioctl+0x6af/0xfe0 fs/ioctl.c:910 __ia32_compat_sys_ioctl+0x93/0xd0 fs/ioctl.c:910 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: 7669 Comm: syz-executor.1 Not tainted 6.5.0-rc4-syzkaller-00251-gf0ab9f34e59e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 =====================================================