summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-14 16:43:40 +0100
committerMark Brown <broonie@kernel.org>2026-10-14 16:43:40 +0100
commit17515973d1e6435e6b6bf3c1ea81d28228cdb5b5 (patch)
treeae1a06e98ccda0680203db65e3d87f77a5299feb /tools/perf/scripts/python
parent9d71f9fe5b5de916bded51343138b09b1eb103ed (diff)
parentef9690269999ddf9b204731baca1bd6b7aea1aa7 (diff)
spi: cadence-xspi: two memory-safety fixes in the slave-DMA paths
Weibin Liu <liuwb@xiaopeng.com> says: While reviewing the slave-DMA handling of the Cadence XSPI driver I found two ways in which memory the SPI core handed to the driver can be overrun: 1/2 both SDMA handlers copy the byte count reported by SDMA_SIZE_REG without checking it against the requested transfer length; a device reporting more bytes than were programmed makes the handlers walk past the end of the transfer buffers 2/2 the Marvell b0 transfer path points the SDMA buffers at a 10-byte stack scratch area for transfers without TX data; transfers longer than that overflow it in both directions and clock out uninitialized stack bytes to the attached device The two patches are independent of each other and each carries its own Fixes: tag, so they can be queued separately. Tested on x86_64: with both patches applied the driver builds, loads and unloads cleanly; no xSPI controller is available in this environment to exercise the slave-DMA paths on hardware. Details are in the notes of the individual patches. Link: https://patch.msgid.link/20260929081146.41041-1-liuwb@xiaopeng.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions