spi: Fix data corruption, uninitialised data leaks and bounds checks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 4 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/10] spi: Fix data corruption, uninitialised data leaks and bounds checks
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.
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
Signature · 1 line
2.56.1.708.g77570a6a1d-goog