From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795079899; b=xiZLk/X/EsgzGA8TtMoH8HfKcaal93kyWyWBMBflGvPRE9r7pb2YM+1CmMfrELnC03GQ 8wf7Ghx1aj72QkHDfIye+6SoDhjqvMtQb2BmJc+9cqKHF2mLB8GDNdY5m45V219jUuqh5 N8DajZtomoCda+HMgvA9oCFM2Y1dsi3/fiZokeLmwiVhDK5z8lPu1HCKZ8Lx/jF5F7UR2 IuSoNICzJ5FvtV8mmHGhF9WBuaV67884+gS4jA88clGaiMNtLwKrxloMUKgAMGorZPfIb PG3ngijNRew8JW2OUCH4/FFdbkl92ucguyTxQHmAD1WDDkZ28xKWBNwVEDgdb4Dq2Sw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795079899; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=v3bo8ZcbgAObjcXddzvPQDs3qKip3UcYyi2IBIcsxXE=; b=xF2XvQqVFfE6byW+SscXthuvFFM+plcyweVYJJ2UuMT/3QZCbprOFArFkRwVjYkzXkbd QvY1w6VSh3HjqjWPKTg49sdHOO40S5CTUYwWAR5Iai3fn1fRwZ+8TAdqGlJAKUaMPfvg/ q35zNKx3Y5rWaskk5/5849DnE0iBqNzJYyyBYSfpZzRtJc49DRQW7rgnHVhYzDahCY4rS FTiEXxkMecHuWtJurgM02l75ybJc/654hNyfVROEKFn2fj8ev6Q89sIVWH/YklrbCHA0q 8kalOUCVoHB1eCaMadPTWmZN0HtTezHUazhjl5VMPSuF2XDaKktWs+XtZeVGclLEPSA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cUlTbof7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2DB9606A324; Thu, 19 Nov 2026 09:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cUlTbof7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E19B51F000C5; Thu, 19 Nov 2026 09:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795079899; bh=v3bo8ZcbgAObjcXddzvPQDs3qKip3UcYyi2IBIcsxXE=; h=From:To:Cc:Subject:Date; b=cUlTbof7TRhkdIj9zM4tAOPe0BxnlUOXyAgKKafiWTNT7F37OrMgblULvjHOKHi7B 7kJ68GQ0aMp8WMQbw4aC8lMNrvwUI6lA1C6kJcpAGHDKysiBnB5+FNjwJgiPrnjngT cYH32bJQ6VPHjApvcg3HgSlzaIRhgMMEeHCf49Zvb0v3zOqVL6NSn2USYZo/llzCNe uPV6dDgTc8I12wAuxTfy5qWgbfoaFD15SdhpYdz49kFnYyR6s/dTsaIp51i6PrqDSb 2oZ5uY6GET3M+5w2+rb74fN+2RO5sL5kV7Q5hSeu+5/2Gsawym3Srgm4tubLNwcwKF u1CnU5Mu0dqKg== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Anton Vorontsov , Baolin Wang , Bartosz Golaszewski , Boris Brezillon , Broadcom internal kernel review list , Chris Boot , Chunyan Zhang , Dhruva Gole , Felix Gu , Florian Fainelli , Foon Tan , Frieder Schrempf , Gabor Juhos , Giulio Benetti , Graham Moore , Grant Likely , Han Xu , imx@lists.linux.dev, Jayshri Pawar , Jisheng Zhang , Johan Hovold , Johannes Thumshirn , Konrad Kociolek , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-spi@vger.kernel.org, Mark Brown , Murugan R , Orson Zhai , Parshuram Thombare , Pratyush Yadav , Ray Jui , Scott Branden , Suresh Gupta , =?UTF-8?q?Th=C3=A9o=20Lebrun?= , Tomoya MORINAGA , Vignesh Raghavendra , Weibin Liu , Witold Sadowski , Yogesh Gaur Subject: [PATCH 00/10] spi: Fix data corruption, uninitialised data leaks and bounds checks Date: Thu, 19 Nov 2026 09:17:12 +0000 Message-ID: <20261119091810.3440619-1-lee@kernel.org> X-Mailer: git-send-email 2.56.1.708.g77570a6a1d-goog X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Baolin Wang Cc: Bartosz Golaszewski Cc: Boris Brezillon Cc: Broadcom internal kernel review list Cc: Chris Boot Cc: Chunyan Zhang Cc: Dhruva Gole Cc: Felix Gu Cc: Florian Fainelli Cc: Foon Tan Cc: Frieder Schrempf Cc: Gabor Juhos Cc: Giulio Benetti Cc: Graham Moore Cc: Grant Likely Cc: Han Xu Cc: imx@lists.linux.dev Cc: Jayshri Pawar Cc: Jisheng Zhang Cc: Johan Hovold Cc: Johannes Thumshirn Cc: Konrad Kociolek Cc: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-spi@vger.kernel.org Cc: Mark Brown Cc: Murugan R Cc: Orson Zhai Cc: Parshuram Thombare Cc: Pratyush Yadav Cc: Ray Jui Cc: Scott Branden Cc: Suresh Gupta Cc: "Théo Lebrun" Cc: Tomoya MORINAGA Cc: Vignesh Raghavendra Cc: Weibin Liu Cc: Witold Sadowski Cc: Yogesh Gaur 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