summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2015-07-24 15:41:27 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2015-07-28 15:03:34 +0800
commit0c5f0aa5dd92a36a2c6491695abcb95196b88ef6 (patch)
tree11adb66615a9dcfd1fbe6d42cdf49e2541d2b40b /crypto
parentec0d6fa3e8849fd52755bca6cec550985d66546d (diff)
downloadlinux-0c5f0aa5dd92a36a2c6491695abcb95196b88ef6.tar.bz2
crypto: jitterentropy - use safe format string parameters
Since the API for jent_panic() does not include format string parameters, adjust the call to panic() to use a literal string to avoid any future callers from leaking format strings into the panic message. Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/jitterentropy-kcapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/jitterentropy-kcapi.c b/crypto/jitterentropy-kcapi.c
index b32d834144cd..ceea83d13168 100644
--- a/crypto/jitterentropy-kcapi.c
+++ b/crypto/jitterentropy-kcapi.c
@@ -79,7 +79,7 @@ int jent_fips_enabled(void)
void jent_panic(char *s)
{
- panic(s);
+ panic("%s", s);
}
void jent_memcpy(void *dest, const void *src, unsigned int n)