WSL2-Linux-Kernel/drivers/crypto/hisilicon
Herbert Xu c61e5644c6 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: d8ac7b8523 ("crypto: hisilicon - fix large sgl memory...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-06-15 17:38:53 +10:00
..
hpre crypto: hisilicon - fix driver compatibility issue with different versions of devices 2020-05-28 17:27:52 +10:00
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2019-09-20 22:53:09 +10:00
sec2 crypto: hisilicon - fix driver compatibility issue with different versions of devices 2020-05-28 17:27:52 +10:00
zip crypto: hisilicon - fix driver compatibility issue with different versions of devices 2020-05-28 17:27:52 +10:00
Kconfig crypto: hisilicon/qm - add more ACPI dependencies 2020-04-22 23:28:55 +10:00
Makefile crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
qm.c crypto: hisilicon - fix driver compatibility issue with different versions of devices 2020-05-28 17:27:52 +10:00
qm.h crypto: hisilicon - fix driver compatibility issue with different versions of devices 2020-05-28 17:27:52 +10:00
sgl.c crypto: hisilicon - Cap block size at 2^31 2020-06-15 17:38:53 +10:00