From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C190606A680 for ; Thu, 3 Dec 2026 08:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=16gdIubE; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Tb0PUF+t DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=ggfUaN85rjcXWHiOM6qmyWIQ4lXG43ZDWI3VZ2+3vKI=; b=16gdIubEhUdy2HejJ9Peo/zWWA gtX9OmFJcdmb6cXnhWS8FacohVgIuUvzVhavjaWBQnmtdMfIib6lXWAbTdssuNM32ZgTncF7t8Mxw Yf8BWwM2bVEQ814QQ4RE/SuVOZCXAUxyyGntOO9ePqUCpiXx9iwaBQ4qqug6cPkNeRIieAOE41jzy YdPeggULVNJJ3su07b/1SR9A1zxfMlDIa4B6slMulEzhRxhvg/2tcfuo6m+PK2PNMiBMNzfXg6RYz YnvekySWxcAP3GYgP+L/M7hcgWF0RSAO9T0PK3rtcOJqYdcBAuAQlrGcaraYLQAHl/+wWL7EkHRJt OzQVc5Iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ29G-0000000DqHS-3lgG; Thu, 03 Dec 2026 08:26:38 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ28x-0000000DqDy-0qUr; Thu, 03 Dec 2026 08:26:36 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id E24384389A; Thu, 3 Dec 2026 08:26:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CB051F000C1; Thu, 3 Dec 2026 08:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796286378; bh=ajfBsvUDCwpm1PHM/wUIO/+1Kn2MKhTxEbvLux7udR4=; h=From:To:Cc:Subject:Date; b=Tb0PUF+tof0qowxOjoJMLwMPQUrZfAJTJhAQXN36FtvPKO5S4WqgB/IhHAPmCIt7T H08OsenpAOQVzIJKpbA3o/O1r82ZPW6MXzOtl7o/hiKEmuqEaGih4MlnCw3mOTbWHX 08WCGlPHqyiqnNNg6U7ClbWVGu4uwSRkJKzokZ7ayiTgaXTZ9yzuW2bCh9agTo3GaY GNmsso2BYMXE9Dgy+K8wMx6HlKqdULa0Ethtppv4QTufegIvG2cZF6kp73WmZ85D+M tvgvE/63n77gdGZi+Rpg+M3oZvhY/7BhXez1D//sjwI7SOePyQuTmh7P3ZJ4/GrlHS pghwdzpawtjgw== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Alexandre Torgue , Anatolij Gustschin , Andrew Morton , Baolin Wang , Bartosz Golaszewski , Carlo Caione , Chunyan Zhang , Dan Carpenter , Dmitry Baryshkov , Etienne Carriere , Freeman Liu , Greg Kroah-Hartman , Jerome Brunet , Joy Chakraborty , Kevin Hilman , Khouloud Touil , Linus Walleij , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Martin Blumenstingl , Maxime Coquelin , Maxime Ripard , Miquel Raynal , Neil Armstrong , Orson Zhai , Patrick Delaunay , Randy Dunlap , Srinivas Kandagatla Subject: [PATCH 00/10] nvmem: Fix Critical and High issues reported by Sashiko Date: Thu, 3 Dec 2026 08:26:01 +0000 Message-ID: X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog X-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This series fixes 10 Critical and High issues across the NVMEM core and drivers (Meson eFuse, Spreadtrum eFuse, 93xx46 EEPROM, and STM32 BSEC OP-TEE TA), covering out-of-bounds reads, integer underflow, multi-byte bit-offset corruption, WP GPIO and erase/write locking races, stack DMA buffers, unchecked SMC sizes/short transfers, and an OP-TEE session leak. These issues were reported by Sashiko. Cc: Alexandre Torgue Cc: Anatolij Gustschin Cc: Andrew Morton Cc: Baolin Wang Cc: Bartosz Golaszewski Cc: Carlo Caione Cc: Chunyan Zhang Cc: Dan Carpenter Cc: Dmitry Baryshkov Cc: Etienne Carriere Cc: Freeman Liu Cc: Greg Kroah-Hartman Cc: Jerome Brunet Cc: Joy Chakraborty Cc: Kevin Hilman Cc: Khouloud Touil Cc: Linus Walleij Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: Martin Blumenstingl Cc: Maxime Coquelin Cc: Maxime Ripard Cc: Miquel Raynal Cc: Neil Armstrong Cc: Orson Zhai Cc: Patrick Delaunay Cc: Randy Dunlap Cc: Srinivas Kandagatla Lee Jones (10): nvmem: meson-efuse: Reject negative or zero SMC size in meson_efuse_probe() nvmem: core: Prevent integer underflow in nvmem_cell_attr_read() nvmem: sprd: Avoid out-of-bounds read on partial writes in sprd_efuse_raw_prog() nvmem: core: Handle multi-byte bit offsets in nvmem_cell_prepare_write_buffer() nvmem: core: Serialise writes when toggling the write-protect GPIO nvmem: eeprom_93xx46: Reject unaligned writes on 16-bit devices nvmem: eeprom_93xx46: Hold device lock across erase/write enable sequences nvmem: eeprom_93xx46: Use DMA-safe command buffer for SPI transfers nvmem: meson-efuse: Detect short reads and writes from Secure Monitor nvmem: stm32: Avoid OP-TEE session leak on unaligned writes drivers/nvmem/core.c | 50 ++++++++++++----- drivers/nvmem/eeprom_93xx46.c | 85 +++++++++++++++-------------- drivers/nvmem/internals.h | 2 + drivers/nvmem/meson-efuse.c | 17 ++++-- drivers/nvmem/sprd-efuse.c | 13 ++++- drivers/nvmem/stm32-bsec-optee-ta.c | 8 +-- 6 files changed, 111 insertions(+), 64 deletions(-) -- 2.56.1.911.g883d8bcb20-goog _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic