syzbot


KMSAN: uninit-value in check_leaf

Status: closed as invalid on 2021/04/27 05:57
Subsystems: btrfs
[Documentation on labels]
First crash: 1098d, last: 1098d

Sample crash report:
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1263 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x35de/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1263 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x35de/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1272 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x35f3/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1272 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x35f3/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memcpy_extent_buffer+0x696/0xbc0 fs/btrfs/extent_io.c:6552
 memmove_extent_buffer+0x260/0xd30 fs/btrfs/extent_io.c:6577
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1273 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x3bfc/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1273 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x3bfc/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 read_extent_buffer+0x316/0x7b0 fs/btrfs/extent_io.c:6141
 btrfs_item_key fs/btrfs/ctree.h:1948 [inline]
 btrfs_item_key_to_cpu fs/btrfs/ctree.h:2053 [inline]
 check_leaf+0x34c/0xc1d0 fs/btrfs/tree-checker.c:1649
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1297 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x6603/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1297 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x6603/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 read_extent_buffer+0x316/0x7b0 fs/btrfs/extent_io.c:6141
 btrfs_item_key fs/btrfs/ctree.h:1948 [inline]
 btrfs_item_key_to_cpu fs/btrfs/ctree.h:2053 [inline]
 check_leaf+0x34c/0xc1d0 fs/btrfs/tree-checker.c:1649
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1312 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x454f/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1312 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x454f/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_extent_item fs/btrfs/tree-checker.c:1320 [inline]
BUG: KMSAN: uninit-value in check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
BUG: KMSAN: uninit-value in check_leaf+0x4452/0xc1d0 fs/btrfs/tree-checker.c:1709
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_extent_item fs/btrfs/tree-checker.c:1320 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x4452/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in btrfs_get_8+0x2c8/0x470 fs/btrfs/struct-funcs.c:160
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_get_8+0x2c8/0x470 fs/btrfs/struct-funcs.c:160
 btrfs_extent_inline_ref_type fs/btrfs/ctree.h:1827 [inline]
 check_extent_item fs/btrfs/tree-checker.c:1327 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x3e69/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
=====================================================
=====================================================
BUG: KMSAN: uninit-value in check_setget_bounds fs/btrfs/struct-funcs.c:15 [inline]
BUG: KMSAN: uninit-value in btrfs_get_8+0x2e7/0x470 fs/btrfs/struct-funcs.c:160
CPU: 0 PID: 32330 Comm: syz-executor.5 Tainted: G    B   W         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_setget_bounds fs/btrfs/struct-funcs.c:15 [inline]
 btrfs_get_8+0x2e7/0x470 fs/btrfs/struct-funcs.c:160
 btrfs_extent_inline_ref_type fs/btrfs/ctree.h:1827 [inline]
 check_extent_item fs/btrfs/tree-checker.c:1327 [inline]
 check_leaf_item fs/btrfs/tree-checker.c:1569 [inline]
 check_leaf+0x3e69/0xc1d0 fs/btrfs/tree-checker.c:1709
 btrfs_check_leaf_full+0x4a/0x60 fs/btrfs/tree-checker.c:1724
 csum_dirty_buffer fs/btrfs/disk-io.c:486 [inline]
 btree_csum_one_bio+0xcca/0xfe0 fs/btrfs/disk-io.c:853
 btrfs_submit_metadata_bio+0x949/0xcd0 fs/btrfs/disk-io.c:901
 submit_one_bio fs/btrfs/extent_io.c:178 [inline]
 flush_write_bio fs/btrfs/extent_io.c:205 [inline]
 btree_write_cache_pages+0x20a4/0x2270 fs/btrfs/extent_io.c:4382
 btree_writepages+0xce/0x2e0 fs/btrfs/disk-io.c:966
 do_writepages+0x15f/0x420 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x59c/0x600 mm/filemap.c:424
 filemap_fdatawrite_range+0x9d/0xb0 mm/filemap.c:444
 btrfs_write_marked_extents+0x464/0x830 fs/btrfs/transaction.c:1050
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1162 [inline]
 btrfs_commit_transaction+0x4045/0x5640 fs/btrfs/transaction.c:2344
 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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7fc2549
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:00000000ffd7479c EFLAGS: 00000296 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffd74840 RCX: 0000000000000002
RDX: 000000000816c000 RSI: 0000000000000000 RDI: 00000000080e9e6a
RBP: 00000000ffd74840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memmove_metadata+0xe/0x10 mm/kmsan/kmsan.c:251
 __msan_memmove+0x46/0x60 mm/kmsan/kmsan_instr.c:92
 copy_pages fs/btrfs/extent_io.c:6521 [inline]
 memmove_extent_buffer+0x7c3/0xd30 fs/btrfs/extent_io.c:6589
 setup_items_for_insert+0x11d8/0x1a00 fs/btrfs/ctree.c:4741
 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+0x5df/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+0x6a/0xc0 arch/x86/entry/common.c:167
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147
 put_unaligned_le32 include/linux/unaligned/access_ok.h:45 [inline]
 btrfs_set_token_32+0x9a6/0xb40 fs/btrfs/struct-funcs.c:162
 btrfs_set_token_item_offset fs/btrfs/ctree.h:1907 [inline]
 setup_items_for_insert+0x10e9/0x1a00 fs/btrfs/ctree.c:4737
 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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/22 03:40 https://github.com/google/kmsan.git master 4ebaab5fb428 2bc8999a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in check_leaf
* Struck through repros no longer work on HEAD.