mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Rob Barnes <robbarnes@google.com>
Cc: bleung@chromium.org, tomhughes@chromium.org,
	chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] platform/chrome: cros_ec_proto: Fix deferred response
Date: Tue, 1 Sep 2026 02:20:48 +0000	[thread overview]
Message-ID: <apY2gGlAXsuqjCPR@google.com> (raw)
In-Reply-To: <20260901005126.3344929-1-robbarnes@google.com>

On Mon, Aug 31, 2026 at 06:51:26PM -0600, Rob Barnes wrote:
> When cros_ec_wait_until_complete() succeeds after an
> EC_RES_IN_PROGRESS status, it previously returned the 4-byte
> transfer size of EC_CMD_GET_COMMS_STATUS. For 0-byte payload
> commands (such as EC_CMD_FLASH_ERASE), userspace received 4
> bytes instead of 0, causing response size validation errors.
> For commands expecting non-zero response payloads, the kernel
> exited without issuing EC_CMD_RESEND_RESPONSE, leaving response
> buffers uninitialized.
> 
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/1] platform/chrome: cros_ec_proto: Fix deferred response
      commit: c55749415623a58eba3eb527da023d29b43fbf5d

Thanks!

      reply	other threads:[~2026-09-01  2:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01  0:51 Rob Barnes
2026-09-01  2:20 ` 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=apY2gGlAXsuqjCPR@google.com \
    --to=tzungbi@kernel.org \
    --cc=bleung@chromium.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robbarnes@google.com \
    --cc=tomhughes@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 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®