===================================================== BUG: KMSAN: uninit-value in hex_string+0x92b/0xa40 lib/vsprintf.c:1179 hex_string+0x92b/0xa40 lib/vsprintf.c:1179 pointer+0x3ae/0x2060 lib/vsprintf.c:2407 vsnprintf+0x1a9b/0x3650 lib/vsprintf.c:2809 sprintf+0x214/0x260 lib/vsprintf.c:3007 format_mk_users_keyring_description fs/crypto/keyring.c:186 [inline] allocate_master_key_users_keyring fs/crypto/keyring.c:260 [inline] add_new_master_key fs/crypto/keyring.c:356 [inline] do_add_master_key fs/crypto/keyring.c:453 [inline] add_master_key+0x193b/0x2090 fs/crypto/keyring.c:501 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: add_new_master_key fs/crypto/keyring.c:347 [inline] do_add_master_key fs/crypto/keyring.c:453 [inline] add_master_key+0x16ea/0x2090 fs/crypto/keyring.c:501 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: fscrypt_hkdf_expand+0x75d/0xc70 fs/crypto/hkdf.c:161 add_master_key+0x1230/0x2090 fs/crypto/keyring.c:494 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: put_unaligned_be64 include/asm-generic/unaligned.h:82 [inline] sha512_base_finish include/crypto/sha512_base.h:128 [inline] sha512_final+0x45a/0x5c0 crypto/sha512_generic.c:167 crypto_sha512_finup+0x31d/0x680 crypto/sha512_generic.c:174 crypto_shash_finup+0x315/0x770 crypto/shash.c:193 hmac_finup+0x4da/0x510 crypto/hmac.c:138 crypto_shash_finup+0x315/0x770 crypto/shash.c:193 fscrypt_hkdf_expand+0x6a6/0xc70 fs/crypto/hkdf.c:158 add_master_key+0x1230/0x2090 fs/crypto/keyring.c:494 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: sha512_transform crypto/sha512_generic.c:144 [inline] sha512_generic_block_fn+0x2a1c/0x2c40 crypto/sha512_generic.c:152 sha512_base_do_finalize include/crypto/sha512_base.h:115 [inline] sha512_final+0x31c/0x5c0 crypto/sha512_generic.c:166 crypto_sha512_finup+0x31d/0x680 crypto/sha512_generic.c:174 crypto_shash_finup+0x315/0x770 crypto/shash.c:193 hmac_finup+0x4da/0x510 crypto/hmac.c:138 crypto_shash_finup+0x315/0x770 crypto/shash.c:193 fscrypt_hkdf_expand+0x6a6/0xc70 fs/crypto/hkdf.c:158 add_master_key+0x1230/0x2090 fs/crypto/keyring.c:494 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: shash_default_import+0xb6/0x100 crypto/shash.c:245 crypto_shash_import include/crypto/hash.h:925 [inline] hmac_finup+0x3bc/0x510 crypto/hmac.c:137 crypto_shash_finup+0x315/0x770 crypto/shash.c:193 fscrypt_hkdf_expand+0x6a6/0xc70 fs/crypto/hkdf.c:158 add_master_key+0x1230/0x2090 fs/crypto/keyring.c:494 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: shash_default_export+0xb6/0x100 crypto/shash.c:239 crypto_shash_export include/crypto/hash.h:903 [inline] hmac_setkey+0x10ee/0x1130 crypto/hmac.c:80 crypto_shash_setkey+0x340/0x670 crypto/shash.c:79 fscrypt_init_hkdf+0x435/0x5b0 fs/crypto/hkdf.c:91 add_master_key+0x15b/0x2090 fs/crypto/keyring.c:482 fscrypt_add_test_dummy_key+0x136/0x2c0 fs/crypto/keyring.c:709 fscrypt_set_test_dummy_encryption+0x355/0x890 fs/crypto/policy.c:754 ext4_set_test_dummy_encryption+0x15b/0x400 fs/ext4/super.c:2074 handle_mount_opt fs/ext4/super.c:2310 [inline] parse_options+0x206a/0x5160 fs/ext4/super.c:2451 ext4_fill_super+0x407c/0x113a0 fs/ext4/super.c:4163 mount_bdev+0x626/0x920 fs/super.c:1370 ext4_mount+0xc9/0xe0 fs/ext4/super.c:6523 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:610 vfs_get_tree+0xd8/0x5d0 fs/super.c:1500 do_new_mount+0x7b5/0x16f0 fs/namespace.c:2988 path_mount+0x1021/0x28b0 fs/namespace.c:3318 do_mount fs/namespace.c:3331 [inline] __do_sys_mount fs/namespace.c:3539 [inline] __se_sys_mount+0x8a8/0x9d0 fs/namespace.c:3516 __ia32_sys_mount+0x157/0x1b0 fs/namespace.c:3516 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline] __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Local variable __shash_desc created at: hmac_setkey+0x21b/0x1130 crypto/hmac.c:51 crypto_shash_setkey+0x340/0x670 crypto/shash.c:79 CPU: 1 PID: 16361 Comm: syz-executor.2 Not tainted 5.16.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 =====================================================