From: Praneeth Balasubramanian <praneethb2002@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crypto: bcm - Reject requests with too many fragments
Date: Sat, 5 Dec 2026 00:21:16 -0800 [thread overview]
Message-ID: <20261205082116.2597262-1-praneethb2002@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-251182@kernel.org>
On Sat, 05 Dec 2026 07:02:46 +0000, sashiko-bot@kernel.org wrote:
> [Severity: Critical]
> Can rx_frag_num still wrap to 0 inside spu_aead_rx_sg_create()?
>
> This check lets rx_frag_num == U8_MAX (255) through, but
> spu_aead_rx_sg_create() takes rx_frag_num as a u8 and increments it again
> when data_padlen is non-zero:
Right, thanks. The check in handle_aead_req() does not count the pad
entry, so the count can still wrap. Please do not apply this version.
v2 makes spu_aead_rx_sg_create() fail with -EINVAL when the pad entry
would not fit, before it allocates. The other sg create helpers do not
add entries on their own.
prev parent reply other threads:[~2026-12-05 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 6:41 [PATCH] crypto: bcm - Reject requests with too many fragments Praneeth Balasubramanian
2026-12-05 7:02 ` sashiko-bot
2026-12-05 8:21 ` Praneeth Balasubramanian [this message]
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=20261205082116.2597262-1-praneethb2002@gmail.com \
--to=praneethb2002@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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