===================================================== BUG: KMSAN: uninit-value in memcmp lib/string.c:683 [inline] BUG: KMSAN: uninit-value in bcmp+0x98/0x150 lib/string.c:715 memcmp lib/string.c:683 [inline] bcmp+0x98/0x150 lib/string.c:715 memcmp include/linux/fortify-string.h:727 [inline] btrfs_validate_extent_buffer+0x99f/0x2440 fs/btrfs/disk-io.c:399 end_bbio_meta_read+0x48a/0x8d0 fs/btrfs/extent_io.c:3669 btrfs_bio_end_io+0x4a7/0x6c0 fs/btrfs/bio.c:132 btrfs_end_bio_work+0xeb/0x160 fs/btrfs/bio.c:335 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xb91/0x1d80 kernel/workqueue.c:3321 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402 kthread+0xd59/0xf00 kernel/kthread.c:464 ret_from_fork+0x1e0/0x310 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Uninit was stored to memory at: sha256_block_generic lib/crypto/sha256-generic.c:118 [inline] sha256_blocks_generic+0x273f/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] sha256_finup include/crypto/internal/sha2.h:60 [inline] crypto_sha256_finup crypto/sha256.c:87 [inline] crypto_sha256_finup_arch+0x2b2/0x4a0 crypto/sha256.c:102 crypto_shash_op_and_zero crypto/shash.c:105 [inline] crypto_shash_finup+0x327/0xe80 crypto/shash.c:171 crypto_shash_final include/crypto/hash.h:1013 [inline] csum_tree_block+0x4a3/0x4c0 fs/btrfs/disk-io.c:110 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: sha256_block_generic lib/crypto/sha256-generic.c:118 [inline] sha256_blocks_generic+0x273f/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: BLEND_OP lib/crypto/sha256-generic.c:61 [inline] sha256_block_generic lib/crypto/sha256-generic.c:92 [inline] sha256_blocks_generic+0xde9/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: BLEND_OP lib/crypto/sha256-generic.c:61 [inline] sha256_block_generic lib/crypto/sha256-generic.c:93 [inline] sha256_blocks_generic+0xdfc/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: BLEND_OP lib/crypto/sha256-generic.c:61 [inline] sha256_block_generic lib/crypto/sha256-generic.c:99 [inline] sha256_blocks_generic+0xeb0/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: BLEND_OP lib/crypto/sha256-generic.c:61 [inline] sha256_block_generic lib/crypto/sha256-generic.c:99 [inline] sha256_blocks_generic+0xeb0/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: LOAD_OP lib/crypto/sha256-generic.c:56 [inline] sha256_block_generic lib/crypto/sha256-generic.c:86 [inline] sha256_blocks_generic+0x2690/0x2850 lib/crypto/sha256-generic.c:128 sha256_choose_blocks include/crypto/internal/sha2.h:33 [inline] crypto_sha256_update crypto/sha256.c:44 [inline] crypto_sha256_update_arch+0x80/0xd0 crypto/sha256.c:65 crypto_shash_finup+0x729/0xe80 crypto/shash.c:152 crypto_shash_update include/crypto/hash.h:994 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:96 btree_csum_one_bio+0x469/0x1030 fs/btrfs/disk-io.c:292 btrfs_bio_csum fs/btrfs/bio.c:518 [inline] btrfs_submit_chunk fs/btrfs/bio.c:751 [inline] btrfs_submit_bbio+0x219e/0x2be0 fs/btrfs/bio.c:794 write_one_eb+0x12dc/0x18f0 fs/btrfs/extent_io.c:2101 btree_write_cache_pages+0x196e/0x2330 fs/btrfs/extent_io.c:2204 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:512 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:437 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1157 btrfs_sync_log+0xa8d/0x3ab0 fs/btrfs/tree-log.c:2972 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1749 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: __alloc_frozen_pages_noprof+0x689/0xf00 mm/page_alloc.c:4982 __alloc_pages_noprof mm/page_alloc.c:4993 [inline] alloc_pages_bulk_noprof+0x157b/0x19c0 mm/page_alloc.c:4913 btrfs_alloc_page_array fs/btrfs/extent_io.c:601 [inline] alloc_eb_folio_array+0x15a/0x670 fs/btrfs/extent_io.c:625 alloc_extent_buffer+0x613/0x3380 fs/btrfs/extent_io.c:3281 btrfs_find_create_tree_block+0x44/0x60 fs/btrfs/disk-io.c:606 btrfs_init_new_buffer fs/btrfs/extent-tree.c:5057 [inline] btrfs_alloc_tree_block+0x3fe/0x1c00 fs/btrfs/extent-tree.c:5170 split_leaf+0x17a8/0x3110 fs/btrfs/ctree.c:3752 search_leaf fs/btrfs/ctree.c:1933 [inline] btrfs_search_slot+0x450c/0x5170 fs/btrfs/ctree.c:2124 btrfs_insert_empty_items+0xb6/0x230 fs/btrfs/ctree.c:4287 copy_items+0x1625/0x2120 fs/btrfs/tree-log.c:4495 copy_inode_items_to_log fs/btrfs/tree-log.c:5967 [inline] btrfs_log_inode+0x386c/0x8db0 fs/btrfs/tree-log.c:6599 btrfs_log_inode_parent+0x11f7/0x1e40 fs/btrfs/tree-log.c:7076 btrfs_log_dentry_safe+0x96/0x130 fs/btrfs/tree-log.c:7178 btrfs_sync_file+0x1991/0x22e0 fs/btrfs/file.c:1711 vfs_fsync_range+0x1a1/0x240 fs/sync.c:187 generic_write_sync include/linux/fs.h:3031 [inline] btrfs_do_write_iter+0xa8f/0xcb0 fs/btrfs/file.c:1448 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1458 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xb4b/0x1580 fs/read_write.c:686 ksys_write fs/read_write.c:738 [inline] __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 36 Comm: kworker/u8:2 Tainted: G W 6.16.0-rc7-syzkaller #0 PREEMPT(none) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: btrfs-endio-meta btrfs_end_bio_work =====================================================