Commit e162d78d authored by Herbert Xu's avatar Herbert Xu Committed by GUO Zihua
Browse files

crypto: algif_aead - Only wake up when ctx->more is zero

mainline inclusion
from mainline-v5.9-rc1
commit f3c802a1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I992IL
CVE: NA

Reference: https://github.com/torvalds/linux/commit/f3c802a1f30013f8f723b62d7fa49eb9e991da23



--------------------------------

AEAD does not support partial requests so we must not wake up
while ctx->more is set.  In order to distinguish between the
case of no data sent yet and a zero-length request, a new init
flag has been added to ctx.

SKCIPHER has also been modified to ensure that at least a block
of data is available if there is more data to come.

Fixes: 2d97591e ("crypto: af_alg - consolidation of...")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Conflicts:
	include/crypto/if_alg.h
Signed-off-by: default avatarGUO Zihua <guozihua@huawei.com>
parent 8e3c9317
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment