You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static int uadk_e_digest_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from)
{
.........
if (t->sess) {
params.numa_id = -1;
t->setup.sched_param = ¶ms;
t->sess = wd_digest_alloc_sess(&t->setup);
if (!t->sess) {
fprintf(stderr, "failed to alloc session for digest ctx copy.\n");
return 0;
}
........
In the uadk_e_digest_copy function, if the to context applies for hardware resources to calculate digest, and the hardware instance value is exhausted during the copy process, applying for a session to the to context will return failure. The code logic here is to return an error, and the business will be interrupted.
Recurrence conditions: Construct a situation where the instance value is small, triggering the calculation of digets in flow mode. For example, yum reinstall git or SSL link building, multiple processes can be started in the background to exhaust the queue. It will report failed to alloc session for digest ctx copy, and the business will fail.
The text was updated successfully, but these errors were encountered:
In the
uadk_e_digest_copy
function, if the to context applies for hardware resources to calculate digest, and the hardware instance value is exhausted during the copy process, applying for a session to theto
context will return failure. The code logic here is to return an error, and the business will be interrupted.Recurrence conditions: Construct a situation where the instance value is small, triggering the calculation of digets in flow mode. For example,
yum reinstall git
or SSL link building, multiple processes can be started in the background to exhaust the queue. It will reportfailed to alloc session for digest ctx copy
, and the business will fail.The text was updated successfully, but these errors were encountered: