From: Kees Cook Date: Fri, 24 Jul 2015 22:41:27 +0000 (-0700) Subject: crypto: jitterentropy - use safe format string parameters X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c5f0aa5dd92a36a2c6491695abcb95196b88ef6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Stephan Mueller Signed-off-by: Herbert Xu --- 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)