Skip to content

Commit

Permalink
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/herbert/crypto-2.6

Pull crypto fixes from Herbert Xu:
 "This fixes a Kconfig-related build error and an integer overflow in
  chacha20poly1305"

* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  crypto: chacha20poly1305 - prevent integer overflow on large input
  tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD
  • Loading branch information
torvalds committed Feb 24, 2020
2 parents bc570c1 + c9cc051 commit 7031ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tee/amdtee/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
config AMDTEE
tristate "AMD-TEE"
default m
depends on CRYPTO_DEV_SP_PSP
depends on CRYPTO_DEV_SP_PSP && CRYPTO_DEV_CCP_DD
help
This implements AMD's Trusted Execution Environment (TEE) driver.
3 changes: 3 additions & 0 deletions lib/crypto/chacha20poly1305.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ bool chacha20poly1305_crypt_sg_inplace(struct scatterlist *src,
__le64 lens[2];
} b __aligned(16);

if (WARN_ON(src_len > INT_MAX))
return false;

chacha_load_key(b.k, key);

b.iv[0] = 0;
Expand Down

0 comments on commit 7031ecf

Please sign in to comment.