summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRadu Solea <radu.solea@nxp.com>2018-10-02 19:01:50 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-25 15:54:45 +0100
commit33378afbd12b2e7f10b911dd2869b0ff7b21b1ed (patch)
tree9592a4f9c247de94377497706346ca12fbc22cea /net/unix/af_unix.c
parent429382a0177819b65b2ff641c04fbd557cbb848a (diff)
crypto: mxs-dcp - Fix SHA null hashes and output length
[ Upstream commit c709eebaf5c5faa8a0f140355f9cfe67e8f7afb1 ] DCP writes at least 32 bytes in the output buffer instead of hash length as documented. Add intermediate buffer to prevent write out of bounds. When requested to produce null hashes DCP fails to produce valid output. Add software workaround to bypass hardware and return valid output. Signed-off-by: Radu Solea <radu.solea@nxp.com> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions