Linux-Amlogic Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee@kernel.org>
To: lee@kernel.org
Cc: linux-kernel@vger.kernel.org,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Anatolij Gustschin <agust@denx.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Baolin Wang <baolin.wang@linux.alibaba.com>,
	Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	Carlo Caione <carlo@endlessm.com>,
	Chunyan Zhang <zhang.lyra@gmail.com>,
	Dan Carpenter <error27@gmail.com>,
	Dmitry Baryshkov <lumag@kernel.org>,
	Etienne Carriere <etienne.carriere@linaro.org>,
	Freeman Liu <freeman.liu@unisoc.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Joy Chakraborty <joychakr@google.com>,
	Kevin Hilman <khilman@baylibre.com>,
	Khouloud Touil <ktouil@baylibre.com>,
	Linus Walleij <linusw@kernel.org>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-stm32@st-md-mailman.stormreply.com,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Maxime Ripard <mripard@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Orson Zhai <orsonzhai@gmail.com>,
	Patrick Delaunay <patrick.delaunay@foss.st.com>,
	Randy Dunlap <rdunlap@infradead.org>,
	Srinivas Kandagatla <srini@kernel.org>
Subject: [PATCH 00/10] nvmem: Fix Critical and High issues reported by Sashiko
Date: Thu,  3 Dec 2026 08:26:01 +0000	[thread overview]
Message-ID: <cover.1796286324.git.lee@kernel.org> (raw)

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 <alexandre.torgue@foss.st.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: Carlo Caione <carlo@endlessm.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Dmitry Baryshkov <lumag@kernel.org>
Cc: Etienne Carriere <etienne.carriere@linaro.org>
Cc: Freeman Liu <freeman.liu@unisoc.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Joy Chakraborty <joychakr@google.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Khouloud Touil <ktouil@baylibre.com>
Cc: Linus Walleij <linusw@kernel.org>
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-stm32@st-md-mailman.stormreply.com
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Srinivas Kandagatla <srini@kernel.org>

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

             reply	other threads:[~2026-12-03  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  8:26 Lee Jones [this message]
2026-12-03  8:26 ` [PATCH 01/10] nvmem: meson-efuse: Reject negative or zero SMC size in meson_efuse_probe() Lee Jones
2026-12-03  8:26 ` [PATCH 09/10] nvmem: meson-efuse: Detect short reads and writes from Secure Monitor Lee Jones
2026-12-03  8:54   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1796286324.git.lee@kernel.org \
    --to=lee@kernel.org \
    --cc=agust@denx.de \
    --cc=akpm@linux-foundation.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=carlo@endlessm.com \
    --cc=error27@gmail.com \
    --cc=etienne.carriere@linaro.org \
    --cc=freeman.liu@unisoc.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbrunet@baylibre.com \
    --cc=joychakr@google.com \
    --cc=khilman@baylibre.com \
    --cc=ktouil@baylibre.com \
    --cc=linusw@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=lumag@kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=orsonzhai@gmail.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=rdunlap@infradead.org \
    --cc=srini@kernel.org \
    --cc=zhang.lyra@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox