Linux cryptographic layer development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Artem Novak" <artem122novak@gmail.com>,
	herbert@gondor.apana.org.au, davem@davemloft.net
Cc: anirudh.venkataramanan@intel.com, mark.d.rustad@intel.com,
	linux-crypto@vger.kernel.org
Subject: Re: [PATCH] crypto: tcrypt: avoid 32-bit overflow in throughput calculation
Date: Thu, 26 Nov 2026 05:59:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-234814@kernel.org> (raw)
In-Reply-To: <20261126055600.23172-1-artem122novak@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] crypto: tcrypt: inaccurate Fixes trailers for 32-bit throughput
  overflow
--

commit 511920037074a37ed1b8de2506cd7025bc33e2ab
Author: Artem Novak <artem122novak@gmail.com>

> crypto: tcrypt: avoid 32-bit overflow in throughput calculation
>
> Cast bcount to u64 before multiplying by blen to prevent 32-bit
> overflow when calculating throughput on 32-bit architectures.
>
> Fixes: fdaeb224e2bf ("crypto: tcrypt - Use pr_cont to print test results")
> Fixes: 3e3dc25fe7d5 ("crypto: Resolve shadow warnings")
>
> Signed-off-by: Artem Novak <artem122novak@gmail.com>

[Severity: Low]
Are these Fixes: tags pointing to the right commit?  fdaeb224e2bf ("crypto:
tcrypt - Use pr_cont to print test results") only converted printk() to
pr_cont(), and 3e3dc25fe7d5 ("crypto: Resolve shadow warnings") only
renamed sec to secs.  Both test_ahash_jiffies_digest() and
test_ahash_jiffies() along with their ((long)bcount * blen) / sec
throughput calculations were introduced by:

  Fixes: beb63da739f7 ("crypto: tcrypt - Add speed tests for async hashing")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126055600.23172-1-artem122novak@gmail.com?part=1

  reply	other threads:[~2026-11-26  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:56 [PATCH] crypto: tcrypt: avoid 32-bit overflow in throughput calculation Artem Novak
2026-11-26  5:59 ` sashiko-bot [this message]
2026-11-26  6:05 ` [PATCH v2] " Artem Novak
2026-11-26  6:14   ` Artem Novak

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=sashiko-outbox-234814@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=anirudh.venkataramanan@intel.com \
    --cc=artem122novak@gmail.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=mark.d.rustad@intel.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox