diff options
author | 2020-08-12 14:58:25 +0200 | |
---|---|---|
committer | 2020-08-13 17:09:32 +1000 | |
commit | 21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd (patch) | |
tree | 64f287d2b506bc1f88147319dae4c32945b275f0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | crypto: sa2ul - Fix inconsistent IS_ERR and PTR_ERR (diff) | |
download | wireguard-linux-21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd.tar.xz wireguard-linux-21dfbcd1f5cbff9cf2f9e7e43475aed8d072b0dd.zip |
crypto: algif_aead - fix uninitialized ctx->init
In skcipher_accept_parent_nokey() the whole af_alg_ctx structure is
cleared by memset() after allocation, so add such memset() also to
aead_accept_parent_nokey() so that the new "init" field is also
initialized to zero. Without that the initial ctx->init checks might
randomly return true and cause errors.
While there, also remove the redundant zero assignments in both
functions.
Found via libkcapi testsuite.
Cc: Stephan Mueller <smueller@chronox.de>
Fixes: f3c802a1f300 ("crypto: algif_aead - Only wake up when ctx->more is zero")
Suggested-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions