summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2020-01-29 17:37:54 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-13 12:05:24 +0300
commitce0fc6db38decf0d2919bfe783de6d6b76e421a9 (patch)
tree3e6b3bcab86364c8ded48f79fc9ea9f0188d8f28 /tools
parent07b586fe06625b0b610dc3d3a969c51913d143d4 (diff)
downloadlinux-ce0fc6db38decf0d2919bfe783de6d6b76e421a9.tar.xz
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions