aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmc/core.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-08-09 10:19:39 -0700
committerJarkko Sakkinen <jarkko@kernel.org>2025-09-27 21:05:06 +0300
commiteed0e3d305530066b4fc5370107cff8ef1a0d229 (patch)
treea0c27772822b9234c1d01b986134d9d8ae595376 /drivers/platform/x86/intel/pmc/core.c
parentMerge tag 'riscv-for-linus-v6.17-rc8' of git://git.kernel.org/pub/scm/linux/k... (diff)
downloadlinux-eed0e3d305530066b4fc5370107cff8ef1a0d229.tar.gz
linux-eed0e3d305530066b4fc5370107cff8ef1a0d229.zip
KEYS: trusted_tpm1: Compare HMAC values in constant time
To prevent timing attacks, HMAC value comparison needs to be constant time. Replace the memcmp() with the correct function, crypto_memneq(). [For the Fixes commit I used the commit that introduced the memcmp(). It predates the introduction of crypto_memneq(), but it was still a bug at the time even though a helper function didn't exist yet.] Fixes: d00a1c72f7f4 ("keys: add new trusted key-type") Cc: stable@vger.kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/core.c')
0 files changed, 0 insertions, 0 deletions