diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2012-03-29 09:04:46 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-03-29 19:52:48 +0800 |
commit | 5219a5342ab13650ae0f0c62319407268c48d0ab (patch) | |
tree | 42f49976ca15418e512bc172e2b4b08c86b2008a /include/linux/cryptouser.h | |
parent | 1e1229940045a537c61fb69f86010a8774e576d0 (diff) | |
download | linux-stable-5219a5342ab13650ae0f0c62319407268c48d0ab.tar.gz linux-stable-5219a5342ab13650ae0f0c62319407268c48d0ab.tar.bz2 linux-stable-5219a5342ab13650ae0f0c62319407268c48d0ab.zip |
crypto: user - Fix size of netlink dump message
The default netlink message size limit might be exceeded when dumping a
lot of algorithms to userspace. As a result, not all of the instantiated
algorithms dumped to userspace. So calculate an upper bound on the message
size and call netlink_dump_start() with that value.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/cryptouser.h')
-rw-r--r-- | include/linux/cryptouser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cryptouser.h b/include/linux/cryptouser.h index 532fb58f16bf..4abf2ea6a887 100644 --- a/include/linux/cryptouser.h +++ b/include/linux/cryptouser.h @@ -100,3 +100,6 @@ struct crypto_report_rng { char type[CRYPTO_MAX_NAME]; unsigned int seedsize; }; + +#define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + \ + sizeof(struct crypto_report_blkcipher)) |