Searched hist:ce0fc6db38decf0d2919bfe783de6d6b76e421a9 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_buffer_mgr.h | diff ce0fc6db38decf0d2919bfe783de6d6b76e421a9 Wed Jan 29 08:37:54 CST 2020 Gilad Ben-Yossef <gilad@benyossef.com> crypto: ccree - protect against empty or NULL scatterlists
Deal gracefully with a NULL or empty scatterlist which can happen if both cryptlen and assoclen are zero and we're doing in-place AEAD encryption.
This fixes a crash when this causes us to try and map a NULL page, at least with some platforms / DMA mapping configs.
Cc: stable@vger.kernel.org # v4.19+ Reported-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|
H A D | cc_buffer_mgr.c | diff ce0fc6db38decf0d2919bfe783de6d6b76e421a9 Wed Jan 29 08:37:54 CST 2020 Gilad Ben-Yossef <gilad@benyossef.com> crypto: ccree - protect against empty or NULL scatterlists
Deal gracefully with a NULL or empty scatterlist which can happen if both cryptlen and assoclen are zero and we're doing in-place AEAD encryption.
This fixes a crash when this causes us to try and map a NULL page, at least with some platforms / DMA mapping configs.
Cc: stable@vger.kernel.org # v4.19+ Reported-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|