[PATCH 00/10] spi: Fix data corruption, uninitialised data leaks and bounds checks

Lee Jones lee at kernel.org
Thu Nov 19 01:17:12 PST 2026


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




More information about the linux-arm-kernel mailing list