diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-03 14:56:00 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-11-09 17:35:43 +0800 |
commit | f43f39958beb206b53292801e216d9b8a660f087 (patch) | |
tree | 55c72a4428c1e7cb5e38e85e8912e1540be2e65b /arch/mips/include/asm/mach-netlogic/multi-node.h | |
parent | 508a1c4df085a547187eed346f1bfe5e381797f1 (diff) |
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 'arch/mips/include/asm/mach-netlogic/multi-node.h')
0 files changed, 0 insertions, 0 deletions