summaryrefslogtreecommitdiffstats
path: root/crypto/jitterentropy-kcapi.c
diff options
context:
space:
mode:
authorKees Cook2015-07-25 00:41:27 +0200
committerHerbert Xu2015-07-28 09:03:34 +0200
commit0c5f0aa5dd92a36a2c6491695abcb95196b88ef6 (patch)
tree11adb66615a9dcfd1fbe6d42cdf49e2541d2b40b /crypto/jitterentropy-kcapi.c
parentcrypto: qat - Fix typo othewise->otherwise (diff)
downloadkernel-qcow2-linux-0c5f0aa5dd92a36a2c6491695abcb95196b88ef6.tar.gz
kernel-qcow2-linux-0c5f0aa5dd92a36a2c6491695abcb95196b88ef6.tar.xz
kernel-qcow2-linux-0c5f0aa5dd92a36a2c6491695abcb95196b88ef6.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>
Diffstat (limited to 'crypto/jitterentropy-kcapi.c')
-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)