mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arpith Alexander <arpith99@gmail.com>
To: liuwb@xiaopeng.com
Cc: broonie@kernel.org, linux-kernel@vger.kernel.org,
	linux-spi@vger.kernel.org, lixu.zhang@intel.com,
	sakari.ailus@linux.intel.com, stable@vger.kernel.org,
	wentong.wu@intel.com
Subject: Re: [PATCH v2] spi: ljca: validate the response length before copying the data
Date: Tue,  3 Nov 2026 19:06:08 +0530	[thread overview]
Message-ID: <20261103133608.29246-1-arpith99@gmail.com> (raw)
In-Reply-To: <20261013031717.3933277-1-liuwb@xiaopeng.com>

On Tue, 13 Oct 2026 11:17:17 +0800, Weibin Liu wrote:
> Check that the response carries the full header before reading
> r_packet->len, then reject responses whose payload is not contained in
> the data received or is longer than the requested transfer.

This breaks SPI writes on a Dell XPS 13 9340: the LJCA acks a write with
only the packet header (len = bytes written, no payload), so every write
now fails with -EIO and the IVSC behind it no longer initialises.

Fix posted here:
https://lore.kernel.org/linux-spi/20261103131435.21838-1-arpith99@gmail.com/

      parent reply	other threads:[~2026-11-03 13:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29  8:01 [PATCH] " Weibin Liu
2026-09-29 11:00 ` Sakari Ailus
2026-09-29 11:02 ` Mark Brown
2026-10-13  3:17 ` [PATCH v2] " Weibin Liu
2026-10-13 19:46   ` Mark Brown
2026-11-03 13:36   ` Arpith Alexander [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=20261103133608.29246-1-arpith99@gmail.com \
    --to=arpith99@gmail.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=liuwb@xiaopeng.com \
    --cc=lixu.zhang@intel.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=stable@vger.kernel.org \
    --cc=wentong.wu@intel.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®