Skip to content

nvmem: Fix Critical and High issues reported by Sashiko

Lee Jones linux-amlogic linux-arm-kernel lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10nvmem: meson-efuse: Reject negative or zero SMC size in meson_efuse_probe()drivers/nvmem/meson-efuse.c+3 -20 replies
2/10nvmem: core: Prevent integer underflow in nvmem_cell_attr_read()drivers/nvmem/core.c+6 -20 replies
3/10nvmem: sprd: Avoid out-of-bounds read on partial writes in sprd_efuse_raw_prog()drivers/nvmem/sprd-efuse.c+10 -30 replies
4/10nvmem: core: Handle multi-byte bit offsets in nvmem_cell_prepare_write_buffer()drivers/nvmem/core.c+24 -110 replies
5/10nvmem: core: Serialise writes when toggling the write-protect GPIOdrivers/nvmem/core.c drivers/nvmem/internals.h+9 -00 replies
6/10nvmem: eeprom_93xx46: Reject unaligned writes on 16-bit devicesdrivers/nvmem/eeprom_93xx46.c+4 -30 replies
7/10nvmem: eeprom_93xx46: Hold device lock across erase/write enable sequencesdrivers/nvmem/eeprom_93xx46.c+13 -110 replies
8/10nvmem: eeprom_93xx46: Use DMA-safe command buffer for SPI transfersdrivers/nvmem/eeprom_93xx46.c+30 -280 replies
9/10nvmem: meson-efuse: Detect short reads and writes from Secure Monitordrivers/nvmem/meson-efuse.c+10 -20 replies
10/10nvmem: stm32: Avoid OP-TEE session leak on unaligned writesdrivers/nvmem/stm32-bsec-optee-ta.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] nvmem: Fix Critical and High issues reported by Sashiko

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 <[email protected]>
Cc Anatolij Gustschin <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Baolin Wang <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Carlo Caione <[email protected]>
Cc Chunyan Zhang <[email protected]>
Cc Dan Carpenter <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Etienne Carriere <[email protected]>
Cc Freeman Liu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jerome Brunet <[email protected]>
Cc Joy Chakraborty <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Khouloud Touil <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Martin Blumenstingl <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Miquel Raynal <[email protected]>
Cc Neil Armstrong <[email protected]>
Cc Orson Zhai <[email protected]>
Cc Patrick Delaunay <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc Srinivas Kandagatla <[email protected]>

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(-)
Signature · 1 line
2.56.1.911.g883d8bcb20-goog