Skip to content
Snippets Groups Projects
Commit 946bb161 authored by Yu'an Wang's avatar Yu'an Wang Committed by Yang Yingliang
Browse files

crypto: hisilicon-Cap block size at 2^31


hulk inclusion
category: Feature
bugzilla: NA
CVE: NA

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.

Signed-off-by: default avatarYu'an Wang <wangyuan46@huawei.com>
Signed-off-by: default avatarZibo Xu <xuzaibo@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 289ca045
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment