BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop1 scanned by syz-executor.1 (3770) BTRFS info (device loop1): using crc32c (crc32c-generic) checksum algorithm BTRFS info (device loop1): using free space tree BTRFS info (device loop1): enabling ssd optimizations ===================================================== BUG: KMSAN: uninit-value in iterate_inode_refs fs/btrfs/backref.c:2321 [inline] BUG: KMSAN: uninit-value in paths_from_inode+0xd1b/0x1f50 fs/btrfs/backref.c:2455 iterate_inode_refs fs/btrfs/backref.c:2321 [inline] paths_from_inode+0xd1b/0x1f50 fs/btrfs/backref.c:2455 btrfs_ioctl_ino_to_path+0x308/0x7a0 fs/btrfs/ioctl.c:4227 btrfs_ioctl+0x2d8/0x10e0 fs/btrfs/ioctl.c:5482 btrfs_compat_ioctl+0x61/0x70 fs/btrfs/ioctl.c:5594 __do_compat_sys_ioctl fs/ioctl.c:968 [inline] __se_compat_sys_ioctl+0x781/0xfa0 fs/ioctl.c:910 __ia32_compat_sys_ioctl+0x8f/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+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:5581 __alloc_pages_bulk+0x1a99/0x2690 mm/page_alloc.c:5506 alloc_pages_bulk_array include/linux/gfp.h:201 [inline] btrfs_alloc_page_array fs/btrfs/extent_io.c:1317 [inline] btrfs_clone_extent_buffer+0x48d/0x1230 fs/btrfs/extent_io.c:4303 iterate_inode_refs fs/btrfs/backref.c:2312 [inline] paths_from_inode+0x22d/0x1f50 fs/btrfs/backref.c:2455 btrfs_ioctl_ino_to_path+0x308/0x7a0 fs/btrfs/ioctl.c:4227 btrfs_ioctl+0x2d8/0x10e0 fs/btrfs/ioctl.c:5482 btrfs_compat_ioctl+0x61/0x70 fs/btrfs/ioctl.c:5594 __do_compat_sys_ioctl fs/ioctl.c:968 [inline] __se_compat_sys_ioctl+0x781/0xfa0 fs/ioctl.c:910 __ia32_compat_sys_ioctl+0x8f/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+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: 3770 Comm: syz-executor.1 Not tainted 6.1.0-syzkaller-64311-g5c6259d6d19f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 =====================================================