Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2482334pxj; Sun, 13 Jun 2021 22:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygcFZO++gHITlYgeOdx4IfVyO/yjYAcBvTzn1/BhLZ3tmBZV2MLeam213RkPTOnzfmgP91 X-Received: by 2002:a05:6402:177a:: with SMTP id da26mr15391283edb.40.1623649643449; Sun, 13 Jun 2021 22:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623649643; cv=none; d=google.com; s=arc-20160816; b=ACoDNXpdECmumY2Sh/0JhT8nHiQE4Cg+ETR2fXFmGa6yK8D3kkS1SdGVUJYZHEkGWQ GfcQky6YHFENGrWWnIbQofQM5G4zDfLJLrut8FLk1TBGAgWQT3t69LOdXQTmKMWo3ofO 22WE7wK/By4meoaXjuX/aaZ6+lp0s0y+lJsqGpp5BL1Gd7IKwa+8AgZLdPHStjDRV4nI QBVlUbxH38KwMntFTaQAPLUqMndpMXq58ujuz9YhXsSb58mb/KSBlhDtDKjHOUNO3uoX O8XoZj56stp5CoFqOZkWJ2IgZWEId/B4XfoA/89SAsbQ/5P7vTnnKBAbICJRBmGMv3LD s2+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=vd0Pp4K+wO+0tLQcnUgsSoN9w68unbWA/SgwyIREfs8=; b=Y/UY1CRfxuwAAhkN86wxFIOiPH3EYvkVmnQa1OYU2G2GVbZm7ZsMXKY+sr9A2Ca6BE fRGadlFAiDKu91DC/rN6V/wwIFUtbiyji+ppM3i4QoYEnchn25CZxvukFxtzaDFf/ZW+ /KKmiHJxeeYkPvQPxWj23RfGcpltfR0ctrGt+x7CjJsecO2L3dWNadUXrc1L5S6s3C/M HWV9yMwC8bQdsdHJF/E9erpsOVLhSk5FysI0oUnn2mwkbhnr1zJWk+euiutGDJttEP6w YVInknGbUfaD/IhfRgaNQVyZ9yeW4Jz25dDdiT79CMrZ/YKLSqeEUoaJjotG7HtX+caW ZRVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si10430554ejt.172.2021.06.13.22.46.59; Sun, 13 Jun 2021 22:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232122AbhFNFnZ (ORCPT + 99 others); Mon, 14 Jun 2021 01:43:25 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:49937 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbhFNFnX (ORCPT ); Mon, 14 Jun 2021 01:43:23 -0400 Received: by mail-il1-f199.google.com with SMTP id h7-20020a92d8470000b02901edc4e8db7bso2140218ilq.16 for ; Sun, 13 Jun 2021 22:41:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=vd0Pp4K+wO+0tLQcnUgsSoN9w68unbWA/SgwyIREfs8=; b=BNFKmQ04o91LgUUzVYSEDl4voFsrQxG9PWh6SAo/+Nvjf6LKwenhxCz9zy/AYrh19/ L3WtSBbMDEhkGqfd54ycN67rufj2lLFmN42Yv7Hq6jTWFzvgx3xuDoQgZQO1QCqEC+Hw Ps1BnV/e5rFMxjQEdLK2dC87kwpl5tKg7Tn017BG30yu320BmV/7rCK6e+NR6T+9Nczf 87w6oAW9iEpPdKWWcRuROmZEqUpVxFEZk74wCH7E4Z4BtnAOkw0M5Hw1GoXpsRDoUEwz C5QIuFW3G92F4jZVA2NsqsQM+reWO+1PRvjgOb3DyaAcSaoJvqvJ7esPJE3zQ3nPYyEQ cOUA== X-Gm-Message-State: AOAM533ln/CfzKCjAYP2JX5/LnjjQAtfRD9oZycnJ6FXsg29rP6eyCEV lx3Hud4E4f/TDoxPWut5f1RyMMV0xjuLDPEl1ksExu5L5aqK MIME-Version: 1.0 X-Received: by 2002:a6b:8b51:: with SMTP id n78mr13164501iod.143.1623649280590; Sun, 13 Jun 2021 22:41:20 -0700 (PDT) Date: Sun, 13 Jun 2021 22:41:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009c083105c4b34e70@google.com> Subject: [syzbot] KMSAN: uninit-value in generic_bin_search (2) From: syzbot To: clm@fb.com, dsterba@suse.com, glider@google.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 6099c9da x86: entry: speculatively unpoison pt_regs in do_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12c7a057d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=4e6842a91012889c dashboard link: https://syzkaller.appspot.com/bug?extid=8aa9678d1cda7a0432b7 compiler: Debian clang version 11.0.1-2 userspace arch: i386 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8aa9678d1cda7a0432b7@syzkaller.appspotmail.com tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in btrfs_comp_cpu_keys fs/btrfs/ctree.c:1556 [inline] BUG: KMSAN: uninit-value in comp_keys fs/btrfs/ctree.c:1528 [inline] BUG: KMSAN: uninit-value in generic_bin_search+0x799/0xbc0 fs/btrfs/ctree.c:1702 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 btrfs_comp_cpu_keys fs/btrfs/ctree.c:1556 [inline] comp_keys fs/btrfs/ctree.c:1528 [inline] generic_bin_search+0x799/0xbc0 fs/btrfs/ctree.c:1702 btrfs_bin_search fs/btrfs/ctree.c:1724 [inline] btrfs_search_slot+0x2144/0x3f20 fs/btrfs/ctree.c:2724 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in leaf_space_used+0x3c0/0x3d0 fs/btrfs/ctree.c:3517 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 leaf_space_used+0x3c0/0x3d0 fs/btrfs/ctree.c:3517 btrfs_leaf_free_space+0x16e/0x3d0 fs/btrfs/ctree.c:3532 btrfs_search_slot+0x3841/0x3f20 fs/btrfs/ctree.c:2747 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in btrfs_leaf_free_space+0x246/0x3d0 fs/btrfs/ctree.c:3533 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 btrfs_leaf_free_space+0x246/0x3d0 fs/btrfs/ctree.c:3533 btrfs_search_slot+0x3841/0x3f20 fs/btrfs/ctree.c:2747 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in btrfs_search_slot+0x394f/0x3f20 fs/btrfs/ctree.c:2746 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 btrfs_search_slot+0x394f/0x3f20 fs/btrfs/ctree.c:2746 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in leaf_space_used+0x3c0/0x3d0 fs/btrfs/ctree.c:3517 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 leaf_space_used+0x3c0/0x3d0 fs/btrfs/ctree.c:3517 btrfs_leaf_free_space+0x16e/0x3d0 fs/btrfs/ctree.c:3532 setup_items_for_insert+0xc47/0x1a00 fs/btrfs/ctree.c:4710 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in btrfs_leaf_free_space+0x246/0x3d0 fs/btrfs/ctree.c:3533 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 btrfs_leaf_free_space+0x246/0x3d0 fs/btrfs/ctree.c:3533 setup_items_for_insert+0xc47/0x1a00 fs/btrfs/ctree.c:4710 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in setup_items_for_insert+0x15a8/0x1a00 fs/btrfs/ctree.c:4710 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 setup_items_for_insert+0x15a8/0x1a00 fs/btrfs/ctree.c:4710 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in setup_items_for_insert+0x18eb/0x1a00 fs/btrfs/ctree.c:4721 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 setup_items_for_insert+0x18eb/0x1a00 fs/btrfs/ctree.c:4721 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in check_eb_range fs/btrfs/extent_io.c:6115 [inline] BUG: KMSAN: uninit-value in memmove_extent_buffer+0x996/0xd30 fs/btrfs/extent_io.c:6573 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 check_eb_range fs/btrfs/extent_io.c:6115 [inline] memmove_extent_buffer+0x996/0xd30 fs/btrfs/extent_io.c:6573 setup_items_for_insert+0x1258/0x1a00 fs/btrfs/ctree.c:4746 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in check_eb_range fs/btrfs/extent_io.c:6115 [inline] BUG: KMSAN: uninit-value in memmove_extent_buffer+0x9a2/0xd30 fs/btrfs/extent_io.c:6573 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 check_eb_range fs/btrfs/extent_io.c:6115 [inline] memmove_extent_buffer+0x9a2/0xd30 fs/btrfs/extent_io.c:6573 setup_items_for_insert+0x1258/0x1a00 fs/btrfs/ctree.c:4746 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in check_eb_range fs/btrfs/extent_io.c:6115 [inline] BUG: KMSAN: uninit-value in memmove_extent_buffer+0x9ca/0xd30 fs/btrfs/extent_io.c:6574 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 check_eb_range fs/btrfs/extent_io.c:6115 [inline] memmove_extent_buffer+0x9ca/0xd30 fs/btrfs/extent_io.c:6574 setup_items_for_insert+0x1258/0x1a00 fs/btrfs/ctree.c:4746 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7ff2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000fff227dc EFLAGS: 00000292 ORIG_RAX: 0000000000000034 RAX: 0000000000000000 RBX: 00000000fff22880 RCX: 0000000000000002 RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080ea118 RBP: 00000000fff22880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277 alloc_pages include/linux/gfp.h:561 [inline] __page_cache_alloc mm/filemap.c:978 [inline] pagecache_get_page+0x111d/0x2040 mm/filemap.c:1797 find_or_create_page include/linux/pagemap.h:405 [inline] alloc_extent_buffer+0x8f8/0x33d0 fs/btrfs/extent_io.c:5618 btrfs_find_create_tree_block+0xb6/0xd0 fs/btrfs/disk-io.c:1024 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4743 [inline] btrfs_alloc_tree_block+0x545/0x2140 fs/btrfs/extent-tree.c:4845 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:992 [inline] __btrfs_cow_block+0xb93/0x2760 fs/btrfs/ctree.c:1048 btrfs_cow_block+0xa3c/0xc90 fs/btrfs/ctree.c:1495 btrfs_search_slot+0x1ad5/0x3f20 fs/btrfs/ctree.c:2676 btrfs_insert_empty_items+0x5a7/0x790 fs/btrfs/ctree.c:4791 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x486/0x560 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x35/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x14f/0x180 arch/x86/entry/common.c:145 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== ===================================================== BUG: KMSAN: uninit-value in check_eb_range fs/btrfs/extent_io.c:6115 [inline] BUG: KMSAN: uninit-value in memmove_extent_buffer+0x9db/0xd30 fs/btrfs/extent_io.c:6574 CPU: 1 PID: 9364 Comm: syz-executor.2 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 check_eb_range fs/btrfs/extent_io.c:6115 [inline] memmove_extent_buffer+0x9db/0xd30 fs/btrfs/extent_io.c:6574 setup_items_for_insert+0x1258/0x1a00 fs/btrfs/ctree.c:4746 btrfs_insert_empty_items+0x6f9/0x790 fs/btrfs/ctree.c:4800 btrfs_insert_empty_item fs/btrfs/ctree.h:2867 [inline] alloc_reserved_tree_block+0x403/0xef0 fs/btrfs/extent-tree.c:4618 run_delayed_tree_ref+0x3ea/0xa30 fs/btrfs/extent-tree.c:1678 run_one_delayed_ref fs/btrfs/extent-tree.c:1707 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0xf48/0x2c20 fs/btrfs/extent-tree.c:2026 btrfs_run_delayed_refs+0x2cc/0x910 fs/btrfs/extent-tree.c:2157 commit_cowonly_roots+0xea1/0x1560 fs/btrfs/transaction.c:1272 btrfs_commit_transaction+0x212b/0x5640 fs/btrfs/transaction.c:2293 btrfs_commit_super+0x1b7/0x1f0 fs/btrfs/disk-io.c:4210 close_ctree+0x4b1/0xf57 fs/btrfs/disk-io.c:4275 btrfs_put_super+0x53/0x70 fs/btrfs/super.c:325 generic_shutdown_super+0x2ab/0x650 fs/super.c:464 kill_anon_super+0x63/0xb0 fs/super.c:1056 btrfs_kill_super+0x61/0x90 fs/btrfs/super.c:2353 deactivate_locked_super+0x10d/0x1e0 fs/super.c:335 deactivate_super+0x1b7/0x1d0 fs/super.c:366 cleanup_mnt+0x7a0/0x870 fs/namespace.c:1136 __cleanup_mnt+0x3b/0x50 fs/namespace.c:1143 task_work_run+0x140/0x280 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepar --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.