From: Andi Shyti <andi.shyti@kernel.org>
To: Paritosh Potukuchi <paritoshpotukuchi@gmail.com>
Cc: shyam-sundar.s-k@amd.com, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org,
Paritosh Potukuchi <paritosh.potukuchi@amd.com>
Subject: Re: [PATCH] i2c: amd-asf: Validate firmware-reported length
Date: Thu, 18 Jun 2026 01:38:23 +0200 [thread overview]
Message-ID: <ajMv2evldPGr59gT@zenone.zhora.eu> (raw)
In-Reply-To: <20260612101815.4124804-1-paritosh.potukuchi@amd.com>
Hi Paritosh,
On Fri, Jun 12, 2026 at 10:18:15AM +0000, Paritosh Potukuchi wrote:
> The firmware may sometimes return a length greater than the
> allocated buffer size, which can lead to out-of-bounds access
> and a kernel panic.
>
> Currently, the driver does not validate the length read from
> firmware.
>
> Add a check to ensure the firmware-reported length stays within
> the bounds of the data buffer.
>
> Fix indentation issues reported by checkpatch.
>
> Signed-off-by: Paritosh Potukuchi <paritosh.potukuchi@amd.com>
merged to i2c/i2c-for-7.2
Thanks,
Andi
prev parent reply other threads:[~2026-06-17 23:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 9:35 Paritosh Potukuchi
2026-06-12 10:18 ` Paritosh Potukuchi
2026-06-17 10:20 ` Andi Shyti
2026-06-17 11:06 ` Shyam Sundar S K
2026-06-17 23:38 ` Andi Shyti [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=ajMv2evldPGr59gT@zenone.zhora.eu \
--to=andi.shyti@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paritosh.potukuchi@amd.com \
--cc=paritoshpotukuchi@gmail.com \
--cc=shyam-sundar.s-k@amd.com \
/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
all inboxes | Powered by JetHome®