summaryrefslogtreecommitdiffstats
path: root/crypto/crypto_user_stat.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-11-03 14:56:00 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-11-09 17:35:43 +0800
commitf43f39958beb206b53292801e216d9b8a660f087 (patch)
tree55c72a4428c1e7cb5e38e85e8912e1540be2e65b /crypto/crypto_user_stat.c
parent508a1c4df085a547187eed346f1bfe5e381797f1 (diff)
downloadlinux-f43f39958beb206b53292801e216d9b8a660f087.tar.bz2
crypto: user - fix leaking uninitialized memory to userspace
All bytes of the NETLINK_CRYPTO report structures must be initialized, since they are copied to userspace. The change from strncpy() to strlcpy() broke this. As a minimal fix, change it back. Fixes: 4473710df1f8 ("crypto: user - Prepare for CRYPTO_MAX_ALG_NAME expansion") Cc: <stable@vger.kernel.org> # v4.12+ Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_user_stat.c')
0 files changed, 0 insertions, 0 deletions