===================================================== BUG: KMSAN: uninit-value in ima_lookup_digest_entry security/integrity/ima/ima_queue.c:64 [inline] BUG: KMSAN: uninit-value in ima_add_template_entry+0x7a5/0x8d0 security/integrity/ima/ima_queue.c:191 ima_lookup_digest_entry security/integrity/ima/ima_queue.c:64 [inline] ima_add_template_entry+0x7a5/0x8d0 security/integrity/ima/ima_queue.c:191 ima_store_template security/integrity/ima/ima_api.c:122 [inline] ima_store_measurement+0x388/0x970 security/integrity/ima/ima_api.c:383 process_measurement+0x3075/0x40e0 security/integrity/ima/ima_main.c:393 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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] 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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:498 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x1f87/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:491 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x18a8/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:491 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x18a8/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:491 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x18a8/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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:94 [inline] sha256_blocks_generic+0xe11/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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:491 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x18a8/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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:83 [inline] sha256_blocks_generic+0x265d/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] ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:491 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x18a8/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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: memcpy_to_iter lib/iov_iter.c:65 [inline] iterate_kvec include/linux/iov_iter.h:86 [inline] iterate_and_advance2 include/linux/iov_iter.h:306 [inline] iterate_and_advance include/linux/iov_iter.h:328 [inline] _copy_to_iter+0x179c/0x33f0 lib/iov_iter.c:185 copy_page_to_iter+0x482/0x910 lib/iov_iter.c:362 copy_folio_to_iter include/linux/uio.h:204 [inline] filemap_read+0xcfd/0x2300 mm/filemap.c:2762 bch2_read_iter+0x559/0x21b0 fs/bcachefs/fs-io-direct.c:222 __kernel_read+0x762/0xdb0 fs/read_write.c:530 integrity_kernel_read+0x77/0x90 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x17cb/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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_mpol+0x328/0x860 mm/mempolicy.c:2419 alloc_frozen_pages_noprof mm/mempolicy.c:2490 [inline] alloc_pages_noprof mm/mempolicy.c:2510 [inline] folio_alloc_noprof+0x109/0x360 mm/mempolicy.c:2520 filemap_alloc_folio_noprof+0x9d/0x420 mm/filemap.c:1007 ractl_alloc_folio mm/readahead.c:186 [inline] ra_alloc_folio mm/readahead.c:441 [inline] page_cache_ra_order+0x93f/0x14f0 mm/readahead.c:509 page_cache_sync_ra+0x1083/0x13e0 mm/readahead.c:621 filemap_get_pages+0xfb3/0x3a60 mm/filemap.c:2602 filemap_read+0x5d2/0x2300 mm/filemap.c:2711 bch2_read_iter+0x559/0x21b0 fs/bcachefs/fs-io-direct.c:222 __kernel_read+0x762/0xdb0 fs/read_write.c:530 integrity_kernel_read+0x77/0x90 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x17cb/0x4050 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x45d/0xe60 security/integrity/ima/ima_api.c:293 process_measurement+0x2d1a/0x40e0 security/integrity/ima/ima_main.c:385 ima_file_check+0x8e/0xd0 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbf/0x530 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x5ac3/0x6760 fs/namei.c:4055 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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: 1 UID: 0 PID: 12389 Comm: syz.1.1944 Not tainted 6.16.0-rc5-syzkaller-00053-g8c2e52ebbe88 #0 PREEMPT(none) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 =====================================================