The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Lee Jones <lee@kernel.org>
To: lee@kernel.org
Cc: linux-kernel@vger.kernel.org,
	"Anton Vorontsov" <avorontsov@ru.mvista.com>,
	"Baolin Wang" <baolin.wang@linux.alibaba.com>,
	"Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>,
	"Boris Brezillon" <bbrezillon@kernel.org>,
	"Broadcom internal kernel review list"
	<bcm-kernel-feedback-list@broadcom.com>,
	"Chris Boot" <bootc@bootc.net>,
	"Chunyan Zhang" <zhang.lyra@gmail.com>,
	"Dhruva Gole" <d-gole@ti.com>, "Felix Gu" <ustc.gu@gmail.com>,
	"Florian Fainelli" <florian.fainelli@broadcom.com>,
	"Foon Tan" <lftan@altera.com>,
	"Frieder Schrempf" <frieder.schrempf@kontron.de>,
	"Gabor Juhos" <juhosg@openwrt.org>,
	"Giulio Benetti" <giulio.benetti@benettiengineering.com>,
	"Graham Moore" <grmoore@opensource.altera.com>,
	"Grant Likely" <grant.likely@secretlab.ca>,
	"Han Xu" <han.xu@nxp.com>,
	imx@lists.linux.dev, "Jayshri Pawar" <jpawar@cadence.com>,
	"Jisheng Zhang" <jszhang@kernel.org>,
	"Johan Hovold" <johan@kernel.org>,
	"Johannes Thumshirn" <jth@kernel.org>,
	"Konrad Kociolek" <konrad@cadence.com>,
	"Linus Walleij" <linusw@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-rpi-kernel@lists.infradead.org, linux-spi@vger.kernel.org,
	"Mark Brown" <broonie@kernel.org>,
	"Murugan R" <vadivel.muruganx.ramuthevar@intel.com>,
	"Orson Zhai" <orsonzhai@gmail.com>,
	"Parshuram Thombare" <pthombar@cadence.com>,
	"Pratyush Yadav" <p.yadav@ti.com>, "Ray Jui" <rjui@broadcom.com>,
	"Scott Branden" <sbranden@broadcom.com>,
	"Suresh Gupta" <suresh.gupta@nxp.com>,
	"Théo Lebrun" <theo.lebrun@bootlin.com>,
	"Tomoya MORINAGA" <tomoya.rohm@gmail.com>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Weibin Liu" <liuwb@xiaopeng.com>,
	"Witold Sadowski" <wsadowski@marvell.com>,
	"Yogesh Gaur" <yogeshnarayan.gaur@nxp.com>
Subject: [PATCH 00/10] spi: Fix data corruption, uninitialised data leaks and bounds checks
Date: Thu, 19 Nov 2026 09:17:12 +0000	[thread overview]
Message-ID: <20261119091810.3440619-1-lee@kernel.org> (raw)

These issues were reported by Sashiko.

The series is based on spi/for-7.5, since patch 5 relies on the
following commit, which is not yet in Linus's tree:

  3515e312e096 ("spi: topcliff-pch: clamp DMA bpw_len by bytes not words")

Witold, patch 10 is derived from the TX-only accounting in the Marvell
b0 path, so confirmation that it matches the hardware's READ_DATA
behaviour would be appreciated.

Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Cc: Chris Boot <bootc@bootc.net>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dhruva Gole <d-gole@ti.com>
Cc: Felix Gu <ustc.gu@gmail.com>
Cc: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Foon Tan <lftan@altera.com>
Cc: Frieder Schrempf <frieder.schrempf@kontron.de>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: Graham Moore <grmoore@opensource.altera.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Han Xu <han.xu@nxp.com>
Cc: imx@lists.linux.dev
Cc: Jayshri Pawar <jpawar@cadence.com>
Cc: Jisheng Zhang <jszhang@kernel.org>
Cc: Johan Hovold <johan@kernel.org>
Cc: Johannes Thumshirn <jth@kernel.org>
Cc: Konrad Kociolek <konrad@cadence.com>
Cc: Linus Walleij <linusw@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rpi-kernel@lists.infradead.org
Cc: linux-spi@vger.kernel.org
Cc: Mark Brown <broonie@kernel.org>
Cc: Murugan R <vadivel.muruganx.ramuthevar@intel.com>
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Parshuram Thombare <pthombar@cadence.com>
Cc: Pratyush Yadav <p.yadav@ti.com>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: Suresh Gupta <suresh.gupta@nxp.com>
Cc: "Théo Lebrun" <theo.lebrun@bootlin.com>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Weibin Liu <liuwb@xiaopeng.com>
Cc: Witold Sadowski <wsadowski@marvell.com>
Cc: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>

Lee Jones (10):
  spi: fsl-cpm: Map the zero page's address, not its struct page
  spi: bcm2835: Store native chip-select GPIO descriptor per device
  spi: ch341: Limit transfers to the hardware packet size
  spi: sprd-adi: Do not copy uninitialised data to rx_buf on read
    failure
  spi: topcliff-pch: Advance tx_buf between DMA chunks
  spi: cadence-quadspi: Bound chip select against f_pdata array size
  spi: cadence-xspi: Zero the tail word in m_iowriteq()
  spi: fsl-qspi: Propagate clock errors from fsl_qspi_select_mem()
  spi: cadence-xspi: Advance tx pointer between Marvell b0 chunks
  spi: cadence-xspi: Skip tail read for qword-aligned Marvell b0
    receives

 drivers/spi/spi-bcm2835.c         | 18 +++++++++---------
 drivers/spi/spi-cadence-quadspi.c |  8 +++++---
 drivers/spi/spi-cadence-xspi.c    |  8 ++++++--
 drivers/spi/spi-ch341.c           |  6 ++++++
 drivers/spi/spi-fsl-cpm.c         |  3 ++-
 drivers/spi/spi-fsl-qspi.c        | 26 +++++++++++++++++---------
 drivers/spi/spi-sprd-adi.c        |  3 ++-
 drivers/spi/spi-topcliff-pch.c    |  5 +++++
 8 files changed, 52 insertions(+), 25 deletions(-)


base-commit: 9b2d7c8736a6fd27ceda93bd67529758c139e24f
-- 
2.56.1.708.g77570a6a1d-goog


             reply	other threads:[~2026-11-19  9:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  9:17 Lee Jones [this message]
2026-11-19  9:17 ` [PATCH 01/10] spi: fsl-cpm: Map the zero page's address, not its struct page Lee Jones
2026-11-19  9:17 ` [PATCH 02/10] spi: bcm2835: Store native chip-select GPIO descriptor per device Lee Jones
2026-11-19  9:17 ` [PATCH 03/10] spi: ch341: Limit transfers to the hardware packet size Lee Jones
2026-11-19  9:17 ` [PATCH 04/10] spi: sprd-adi: Do not copy uninitialised data to rx_buf on read failure Lee Jones
2026-11-19  9:17 ` [PATCH 05/10] spi: topcliff-pch: Advance tx_buf between DMA chunks Lee Jones
2026-11-19  9:17 ` [PATCH 06/10] spi: cadence-quadspi: Bound chip select against f_pdata array size Lee Jones
2026-11-19 10:15   ` Théo Lebrun
2026-11-19  9:17 ` [PATCH 07/10] spi: cadence-xspi: Zero the tail word in m_iowriteq() Lee Jones
2026-11-19  9:17 ` [PATCH 08/10] spi: fsl-qspi: Propagate clock errors from fsl_qspi_select_mem() Lee Jones
2026-11-19  9:17 ` [PATCH 09/10] spi: cadence-xspi: Advance tx pointer between Marvell b0 chunks Lee Jones
2026-11-19  9:17 ` [PATCH 10/10] spi: cadence-xspi: Skip tail read for qword-aligned Marvell b0 receives Lee Jones

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=20261119091810.3440619-1-lee@kernel.org \
    --to=lee@kernel.org \
    --cc=avorontsov@ru.mvista.com \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bbrezillon@kernel.org \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=bootc@bootc.net \
    --cc=broonie@kernel.org \
    --cc=d-gole@ti.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=giulio.benetti@benettiengineering.com \
    --cc=grant.likely@secretlab.ca \
    --cc=grmoore@opensource.altera.com \
    --cc=han.xu@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=johan@kernel.org \
    --cc=jpawar@cadence.com \
    --cc=jszhang@kernel.org \
    --cc=jth@kernel.org \
    --cc=juhosg@openwrt.org \
    --cc=konrad@cadence.com \
    --cc=lftan@altera.com \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=liuwb@xiaopeng.com \
    --cc=orsonzhai@gmail.com \
    --cc=p.yadav@ti.com \
    --cc=pthombar@cadence.com \
    --cc=rjui@broadcom.com \
    --cc=sbranden@broadcom.com \
    --cc=suresh.gupta@nxp.com \
    --cc=theo.lebrun@bootlin.com \
    --cc=tomoya.rohm@gmail.com \
    --cc=ustc.gu@gmail.com \
    --cc=vadivel.muruganx.ramuthevar@intel.com \
    --cc=vigneshr@ti.com \
    --cc=wsadowski@marvell.com \
    --cc=yogeshnarayan.gaur@nxp.com \
    --cc=zhang.lyra@gmail.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