summaryrefslogtreecommitdiff
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
commit85750b8e30243cedebc3fd5819dc6e1c64065ed7 (patch)
tree024787d979ba3d74520946b4a167ee822893d19b
parent4adaf25e9ae3322f8d185181c36b561231d71e96 (diff)
downloadlinux-crypto-85750b8e30243cedebc3fd5819dc6e1c64065ed7.tar.gz
linux-crypto-85750b8e30243cedebc3fd5819dc6e1c64065ed7.zip
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>
-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 b32d8341..ceea83d1 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)