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:Herbert Xu <herbert@gondor.apana.org.au> Conflicts: include/crypto/if_alg.h Signed-off-by:
GUO Zihua <guozihua@huawei.com>
Loading
Please sign in to comment