diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-04 17:37:50 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-15 17:38:53 +1000 |
commit | c61e5644c69775ae9d54b86018fca238aca64a9b (patch) | |
tree | 44e1bbdc760d7346de3716d8e88f8143ecb0f338 /include/linux | |
parent | 7cf81954705b7e5b057f7dc39a7ded54422ab6e1 (diff) | |
download | linux-stable-c61e5644c69775ae9d54b86018fca238aca64a9b.tar.gz linux-stable-c61e5644c69775ae9d54b86018fca238aca64a9b.tar.bz2 linux-stable-c61e5644c69775ae9d54b86018fca238aca64a9b.zip |
crypto: hisilicon - Cap block size at 2^31
The function hisi_acc_create_sg_pool may allocate a block of
memory of size PAGE_SIZE * 2^(MAX_ORDER - 1). This value may
exceed 2^31 on ia64, which would overflow the u32.
This patch caps it at 2^31.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: d8ac7b85236b ("crypto: hisilicon - fix large sgl memory...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions