summaryrefslogtreecommitdiff
path: root/include/linux/psp-sev.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-06-04 10:37:50 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-15 10:38:53 +0300
commitc61e5644c69775ae9d54b86018fca238aca64a9b (patch)
tree44e1bbdc760d7346de3716d8e88f8143ecb0f338 /include/linux/psp-sev.h
parent7cf81954705b7e5b057f7dc39a7ded54422ab6e1 (diff)
downloadlinux-c61e5644c69775ae9d54b86018fca238aca64a9b.tar.xz
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/psp-sev.h')
0 files changed, 0 insertions, 0 deletions