From: sashiko-bot@kernel.org
To: "Andrew Stellman" <bugs@stellman-greene.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next v2] RDMA/siw: Fix overflow in inline SGE length check
Date: Sat, 05 Dec 2026 15:15:16 +0000 [thread overview]
Message-ID: <sashiko-outbox-251681@kernel.org> (raw)
In-Reply-To: <20261205150402.97273-1-bugs@stellman-greene.com>
> From: Andrew Stellman <astellman@stellman-greene.com>
>
> siw_copy_inline_sgl() adds each u32 SGE length to the int running total
> 'bytes' before checking the total against SIW_MAX_INLINE, so lengths that
> add up to 2^32 or more can wrap the total to a small value, and memcpy()
> then copies the full SGE length into the inline area of the send queue
> entry. With inline SGE lengths of 16 and 0xfffffff8 from a kernel
> caller, siw_post_send() returns 0 and KASAN reports:
>
> [ 45.087395] ==================================================================
> [ 45.087402] BUG: KASAN: vmalloc-out-of-bounds in siw_copy_inline_sgl.isra.0+0xdc/0x1e0
> [ 45.087432] Write of size 4294967288 at addr ffff800080069038 by task insmod/418
>
> [ 45.087439] CPU: 4 UID: 0 PID: 418 Comm: insmod Tainted: G O 7.4.0-rc5 #1 PREEMPT(full)
> [ 45.087442] Tainted: [O]=OOT_MODULE
> [ ... ]
> OpenAI GPT-6 (Codex) and Claude Opus 5.5, and both were reviewed by me.
>
> Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
> Suggested-by: Bernard Metzler <bernard.metzler@linux.dev>
> Signed-off-by: Andrew Stellman <astellman@stellman-greene.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205150402.97273-1-bugs@stellman-greene.com?part=1
next prev parent reply other threads:[~2026-12-05 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 15:04 [PATCH rdma-next v2] RDMA/siw: Fix overflow in inline SGE length check Andrew Stellman
2026-12-05 15:15 ` sashiko-bot [this message]
2026-12-05 18:18 ` Bernard Metzler
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-251681@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bugs@stellman-greene.com \
--cc=linux-rdma@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