projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb0ad2
)
[CRYPTO] api: Require block size to be less than PAGE_SIZE/8
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 7 Jan 2006 05:24:15 +0000
(16:24 +1100)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 9 Jan 2006 22:15:58 +0000
(14:15 -0800)
The cipher code path may allocate up to two blocks of data on the stack.
Therefore we need to place limits on the maximum block size.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/api.c
b/crypto/api.c
index 2715afdf678c19c7b908d01c76c3fbce1160a9df..e26156f718395393bc50883bc61edc7b2a7e2d22 100644
(file)
--- a/
crypto/api.c
+++ b/
crypto/api.c
@@
-251,7
+251,7
@@
int crypto_register_alg(struct crypto_alg *alg)
if (alg->cra_alignmask & alg->cra_blocksize)
return -EINVAL;
- if (alg->cra_blocksize > PAGE_SIZE)
+ if (alg->cra_blocksize > PAGE_SIZE
/ 8
)
return -EINVAL;
if (alg->cra_priority < 0)