diff options
| author | tim <[email protected]> | 2016-12-05 19:46:31 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2016-12-07 11:55:37 +0000 |
| commit | 48a992727d82cb7db076fa15d372178743b1f4cd (patch) | |
| tree | 2cc24a02c43a2d4d6382916f4614b118b82d27b4 /drivers/fpga | |
| parent | crypto: algif_aead - fix AEAD tag memory handling (diff) | |
| download | kernel-48a992727d82cb7db076fa15d372178743b1f4cd.tar.gz kernel-48a992727d82cb7db076fa15d372178743b1f4cd.zip | |
crypto: mcryptd - Check mcryptd algorithm compatibility
Algorithms not compatible with mcryptd could be spawned by mcryptd
with a direct crypto_alloc_tfm invocation using a "mcryptd(alg)" name
construct. This causes mcryptd to crash the kernel if an arbitrary
"alg" is incompatible and not intended to be used with mcryptd. It is
an issue if AF_ALG tries to spawn mcryptd(alg) to expose it externally.
But such algorithms must be used internally and not be exposed.
We added a check to enforce that only internal algorithms are allowed
with mcryptd at the time mcryptd is spawning an algorithm.
Link: http://marc.info/?l=linux-crypto-vger&m=148063683310477&w=2
Cc: [email protected]
Reported-by: Mikulas Patocka <[email protected]>
Signed-off-by: Tim Chen <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions
