-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels