From: linuxtestproject.agent@gmail.com
To: Frank Ranner <frank.ranner@intel.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] testcases/kernel/crypto/crypto_user02.c: fix hmac candidate probing
Date: Thu, 13 Aug 2026 16:04:02 +0000 [thread overview]
Message-ID: <20260813160402.9147-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260813152433.73259-1-frank.ranner@intel.com>
Hi Frank,
On August 13, 2026, Frank Ranner wrote:
> testcases/kernel/crypto/crypto_user02.c: fix hmac candidate probing
> + rc = tst_crypto_add_alg(ctx, &alg);
> + if (rc != 0 && rc != -EEXIST)
> + continue;
> +
> + memset(&report, 0, sizeof(report));
> + strcpy(report.cru_name, ALGORITHM_CANDIDATES[i]);
> + if (tst_crypto_get_alg(ctx, &report) != 0)
> continue;
>
> /* it also has to be deletable */
> + rc = tst_crypto_del_alg(ctx, &report, 1000);
Could -EEXIST candidates be skipped here? If this result refers to an
already-registered, unused template instance, GETALG selects it and DELALG
removes global crypto state that the test did not create. Such instances
remain registered after their users release them and are deletable once the
reference count permits it, so cleanup does not restore the original state.
This can also leave another implementation with the same cru_name. The race
loop then gets -EEXIST from every NEWALG request, creates no larval, accepts
-ENOENT from the fixed-driver DELALG request, and falsely passes. Could setup
require successful creation rather than accepting an existing registration?
> Commit a4be708b4 ("try non-generic hmac names first") added a list of
Could this use c05a44cf instead? a4be708b4 does not resolve in the local LTP
history, while the Fixes tag identifies the same subject as c05a44cf.
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-13 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 15:24 [LTP] [PATCH v2 ltp] testcases/kernel/crypto/crypto_user02.c: fix hmac candidate probing Frank Ranner
2026-08-13 16:04 ` linuxtestproject.agent [this message]
2026-08-13 19:38 ` Eric Biggers via ltp
-- strict thread matches above, loose matches on Subject: below --
2026-08-13 14:06 [LTP] [PATCH " Frank Ranner
2026-08-13 15:00 ` [LTP] " linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260813160402.9147-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=frank.ranner@intel.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.