With vmalloc stack addresses enabled (CONFIG_VMAP_STACK=y) DCP trusted
keys can crash during en- and decryption of the blob encryption key via
the DCP crypto driver. This is caused by improperly using sg_init_one()
with vmalloc'd stack buffers (plain_key_blob).
Fix this by always using kmalloc() for buffers we give to the DCP crypto
driver.
Cc: stable@vger.kernel.org # v6.10+
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
tpm2key.asn1 | ||
trusted_caam.c | ||
trusted_core.c | ||
trusted_dcp.c | ||
trusted_tee.c | ||
trusted_tpm1.c | ||
trusted_tpm2.c |