From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Maoyi Xie <maoyixie.tju@gmail.com>
Cc: Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>,
Tomasz Figa <tfiga@chromium.org>,
chrome-platform@lists.linux.dev, stable@vger.kernel.org
Subject: Re: [PATCH] platform/chrome: sensorhub: Check FIFO read reply length
Date: Fri, 27 Nov 2026 04:53:39 +0000 [thread overview]
Message-ID: <awkM0x7IKjAwKeOk@google.com> (raw)
In-Reply-To: <20261125121321.1603687-1-maoyixie.tju@gmail.com>
On Wed, Nov 25, 2026 at 08:13:21PM +0800, Maoyi Xie wrote:
> cros_ec_sensorhub_ring_handler() processes number_data entries of the
> EC reply to MOTIONSENSE_CMD_FIFO_READ. It checks number_data against the
> FIFO count and the ring space, but not against the reply length.
>
> A malfunctioning EC can send fewer entries than number_data. The loop
> then uses stale bytes as samples. Past max_response bytes, it reads
> beyond the message buffer.
>
> [...]
Added <linux/overflow.h> and slightly reworded the commit message.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: sensorhub: Check FIFO read reply length
commit: 057370d76cc261a075cd7287ab6e664dcae40377
Thanks!
prev parent reply other threads:[~2026-11-27 4:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 12:13 [PATCH] platform/chrome: sensorhub: Check FIFO read reply length Maoyi Xie
2026-11-27 4:53 ` Tzung-Bi Shih [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=awkM0x7IKjAwKeOk@google.com \
--to=tzungbi@kernel.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=groeck@chromium.org \
--cc=maoyixie.tju@gmail.com \
--cc=stable@vger.kernel.org \
--cc=tfiga@chromium.org \
/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.