===================================================== BUG: KMSAN: uninit-value in sw842_compress+0xd19/0x4fa0 lib/842/842_compress.c:528 sw842_compress+0xd19/0x4fa0 lib/842/842_compress.c:528 crypto842_scompress+0x4e/0x70 crypto/842.c:46 scomp_acomp_comp_decomp+0xa49/0x1120 include/crypto/internal/scompress.h:-1 scomp_acomp_compress+0x33/0x40 crypto/scompress.c:282 crypto_acomp_compress+0x5b4/0xe80 crypto/acompress.c:291 zswap_compress mm/zswap.c:886 [inline] zswap_store_page mm/zswap.c:1428 [inline] zswap_store+0x1e0b/0x4a90 mm/zswap.c:1539 swap_writeout+0x8c1/0x1390 mm/page_io.c:275 shmem_writeout+0x1abb/0x1f60 mm/shmem.c:1662 writeout mm/vmscan.c:649 [inline] pageout mm/vmscan.c:698 [inline] shrink_folio_list+0x5920/0x7fc0 mm/vmscan.c:1418 evict_folios+0x999d/0xbf30 mm/vmscan.c:4711 try_to_shrink_lruvec+0x12b6/0x17e0 mm/vmscan.c:4874 lru_gen_shrink_lruvec mm/vmscan.c:5023 [inline] shrink_lruvec+0x46f/0x4f10 mm/vmscan.c:5784 shrink_node_memcgs mm/vmscan.c:6020 [inline] shrink_node+0xf1e/0x51e0 mm/vmscan.c:6061 shrink_zones mm/vmscan.c:6300 [inline] do_try_to_free_pages+0x849/0x26b0 mm/vmscan.c:6362 try_to_free_mem_cgroup_pages+0x3ae/0x950 mm/vmscan.c:6690 try_charge_memcg+0x80f/0x1c50 mm/memcontrol.c:2388 obj_cgroup_charge_pages+0x2ed/0x600 mm/memcontrol.c:2823 __memcg_kmem_charge_page+0x14a/0x4c0 mm/memcontrol.c:2867 __alloc_frozen_pages_noprof+0x3ba/0xab0 mm/page_alloc.c:5227 alloc_pages_mpol+0x328/0x860 mm/mempolicy.c:2486 alloc_frozen_pages_noprof mm/mempolicy.c:2557 [inline] alloc_pages_noprof+0x102/0x280 mm/mempolicy.c:2577 vm_area_alloc_pages mm/vmalloc.c:3718 [inline] __vmalloc_area_node mm/vmalloc.c:3863 [inline] __vmalloc_node_range_noprof+0x1577/0x2d90 mm/vmalloc.c:4051 __vmalloc_node_noprof mm/vmalloc.c:4111 [inline] __vmalloc_noprof+0x128/0x1f0 mm/vmalloc.c:4127 do_replace+0x467/0x8c0 net/bridge/netfilter/ebtables.c:1135 do_ebt_set_ctl+0x24f/0x2230 net/bridge/netfilter/ebtables.c:2527 nf_setsockopt+0x4fb/0x550 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x1f2/0x210 net/ipv4/ip_sockglue.c:1424 sock_common_setsockopt+0xf5/0x140 net/core/sock.c:3972 do_sock_setsockopt net/socket.c:2322 [inline] __sys_setsockopt+0x43e/0x580 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0xf4/0x1a0 net/socket.c:2350 x64_sys_call+0x28e3/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: memcpy_from_iter lib/iov_iter.c:85 [inline] iterate_bvec include/linux/iov_iter.h:123 [inline] iterate_and_advance2 include/linux/iov_iter.h:306 [inline] iterate_and_advance include/linux/iov_iter.h:330 [inline] __copy_from_iter lib/iov_iter.c:261 [inline] copy_folio_from_iter_atomic+0xe9b/0x3900 lib/iov_iter.c:491 generic_perform_write+0x8b1/0x1050 mm/filemap.c:4332 shmem_file_write_iter+0x2b7/0x2f0 mm/shmem.c:3490 lo_rw_aio+0x11de/0x1520 drivers/block/loop.c:-1 do_req_filebacked drivers/block/loop.c:-1 [inline] loop_handle_cmd drivers/block/loop.c:1926 [inline] loop_process_work+0xf14/0x2020 drivers/block/loop.c:1961 loop_workfn+0x3e/0x60 drivers/block/loop.c:1985 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xb91/0x1d80 kernel/workqueue.c:3340 worker_thread+0xedf/0x1590 kernel/workqueue.c:3421 kthread+0xd5c/0xf00 kernel/kthread.c:463 ret_from_fork+0x208/0x710 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Uninit was stored to memory at: __write_extent_buffer+0x203/0x940 fs/btrfs/extent_io.c:4105 write_extent_buffer+0x39/0x50 fs/btrfs/extent_io.c:4132 btree_csum_one_bio+0x793/0x1190 fs/btrfs/disk-io.c:322 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: blake2b_final+0xc8/0x110 lib/crypto/blake2b.c:150 crypto_blake2b_final+0x2f/0x60 crypto/blake2b.c:50 shash_default_finup+0x11f/0x190 crypto/shash.c:95 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:1025 [inline] csum_tree_block+0x4a3/0x4c0 fs/btrfs/disk-io.c:111 btree_csum_one_bio+0x46e/0x1190 fs/btrfs/disk-io.c:300 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: blake2b_compress_generic+0xc2bd/0xc460 lib/crypto/blake2b.c:99 blake2b_final+0x96/0x110 lib/crypto/blake2b.c:148 crypto_blake2b_final+0x2f/0x60 crypto/blake2b.c:50 shash_default_finup+0x11f/0x190 crypto/shash.c:95 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:1025 [inline] csum_tree_block+0x4a3/0x4c0 fs/btrfs/disk-io.c:111 btree_csum_one_bio+0x46e/0x1190 fs/btrfs/disk-io.c:300 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: blake2b_compress_generic+0x24d/0xc460 lib/crypto/blake2b.c:56 blake2b_final+0x96/0x110 lib/crypto/blake2b.c:148 crypto_blake2b_final+0x2f/0x60 crypto/blake2b.c:50 shash_default_finup+0x11f/0x190 crypto/shash.c:95 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:1025 [inline] csum_tree_block+0x4a3/0x4c0 fs/btrfs/disk-io.c:111 btree_csum_one_bio+0x46e/0x1190 fs/btrfs/disk-io.c:300 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: blake2b_compress_generic+0xc3bf/0xc460 lib/crypto/blake2b.c:99 blake2b_update+0x20f/0x360 lib/crypto/blake2b.c:133 crypto_blake2b_update+0x35/0x60 crypto/blake2b.c:44 crypto_shash_finup+0x401/0xe80 crypto/shash.c:123 crypto_shash_update include/crypto/hash.h:1006 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:97 btree_csum_one_bio+0x46e/0x1190 fs/btrfs/disk-io.c:300 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: blake2b_compress_generic+0x22c/0xc460 lib/crypto/blake2b.c:54 blake2b_update+0x20f/0x360 lib/crypto/blake2b.c:133 crypto_blake2b_update+0x35/0x60 crypto/blake2b.c:44 crypto_shash_finup+0x401/0xe80 crypto/shash.c:123 crypto_shash_update include/crypto/hash.h:1006 [inline] csum_tree_block+0x142/0x4c0 fs/btrfs/disk-io.c:97 btree_csum_one_bio+0x46e/0x1190 fs/btrfs/disk-io.c:300 btrfs_bio_csum fs/btrfs/bio.c:584 [inline] btrfs_submit_chunk fs/btrfs/bio.c:835 [inline] btrfs_submit_bbio+0x29df/0x3b40 fs/btrfs/bio.c:907 write_one_eb+0x1123/0x13e0 fs/btrfs/extent_io.c:2253 btree_write_cache_pages+0x14ee/0x2330 fs/btrfs/extent_io.c:2356 btree_writepages+0x84/0x280 fs/btrfs/disk-io.c:520 do_writepages+0x3f2/0x860 mm/page-writeback.c:2598 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x227/0x280 mm/filemap.c:412 btrfs_write_marked_extents+0x2c6/0x640 fs/btrfs/transaction.c:1164 btrfs_sync_log+0xab5/0x3c00 fs/btrfs/tree-log.c:3379 btrfs_sync_file+0x1bad/0x22e0 fs/btrfs/file.c:1771 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: __alloc_frozen_pages_noprof+0x421/0xab0 mm/page_alloc.c:5233 __alloc_pages_noprof mm/page_alloc.c:5244 [inline] alloc_pages_bulk_noprof+0x1bbb/0x1cc0 mm/page_alloc.c:5164 btrfs_alloc_page_array fs/btrfs/extent_io.c:677 [inline] alloc_eb_folio_array+0x15a/0x670 fs/btrfs/extent_io.c:701 alloc_extent_buffer+0x884/0x3cf0 fs/btrfs/extent_io.c:3434 btrfs_find_create_tree_block+0x44/0x60 fs/btrfs/disk-io.c:614 btrfs_init_new_buffer fs/btrfs/extent-tree.c:5049 [inline] btrfs_alloc_tree_block+0x3fe/0x1bc0 fs/btrfs/extent-tree.c:5162 btrfs_alloc_log_tree_node fs/btrfs/disk-io.c:934 [inline] btrfs_add_log_tree+0x243/0x7a0 fs/btrfs/disk-io.c:982 start_log_trans fs/btrfs/tree-log.c:349 [inline] btrfs_log_inode_parent+0x9ca/0x1e40 fs/btrfs/tree-log.c:7510 btrfs_log_dentry_safe+0x96/0x130 fs/btrfs/tree-log.c:7616 btrfs_sync_file+0x1991/0x22e0 fs/btrfs/file.c:1733 vfs_fsync_range+0x1a1/0x240 fs/sync.c:188 generic_write_sync include/linux/fs.h:2616 [inline] btrfs_do_write_iter+0xb53/0xd90 fs/btrfs/file.c:1470 btrfs_file_write_iter+0x38/0x50 fs/btrfs/file.c:1480 new_sync_write fs/read_write.c:593 [inline] vfs_write+0xbe2/0x15d0 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x2ab/0x3b0 fs/read_write.c:798 x64_sys_call+0xbaf/0x3e70 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd3/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 9204 Comm: syz.6.658 Not tainted syzkaller #0 PREEMPT(none) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 =====================================================