crypto: sanitize argument for format string
authorKees Cook <keescook@chromium.org>
Wed, 3 Jul 2013 22:01:15 +0000 (15:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:25 +0000 (16:07 -0700)
commit1c8fca1d92e14859159a82b8a380d220139b7344
treefe9c17b832774f32823bbd5b1712ee686ccc21f6
parentffc8b30866879ed9ba62bd0a86fecdbd51cd3d19
crypto: sanitize argument for format string

The template lookup interface does not provide a way to use format
strings, so make sure that the interface cannot be abused accidentally.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
crypto/algapi.c