Skip to content

memory: Fix Critical and High issues reported by Sashiko

Lee Jones linux-arm-kernel linux-tegra lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8memory: atmel-ebi: Use non-devm allocations for of_update_property()drivers/memory/atmel-ebi.c+29 -110 replies
2/8memory: tegra210-emc: Stop timers on suspend and prevent training re-armdrivers/memory/tegra/tegra210-emc-core.c drivers/memory/tegra/tegra210-emc.h+31 -80 replies
3/8memory: stm32_omm: Depopulate child devices before disabling clocksdrivers/memory/stm32_omm.c+4 -12 replies
4/8memory: stm32_omm: Fix double FIELD_PREP() and clamp for REQ2ACKdrivers/memory/stm32_omm.c+2 -41 reply
5/8memory: stm32_omm: Avoid division by zero in req2ack calculationdrivers/memory/stm32_omm.c+6 -31 reply
6/8memory: stm32_omm: Shift and mask AMCR value in stm32_omm_set_amcr()drivers/memory/stm32_omm.c+10 -31 reply
7/8memory: emif: Avoid __fls(0) and underflow in of_get_ddr_info()drivers/memory/emif.c+3 -20 replies
8/8memory: emif: Clear invalid custom_configs in get_device_details()drivers/memory/emif.c+1 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchPatrice Chotard
1/8
2/8
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] memory: Fix Critical and High issues reported by Sashiko

These issues were reported by Sashiko.

This series addresses all open Critical and High severity reports in the memory controller subsystem, rebased onto mem-ctrl/for-next. It fixes a devm lifetime use-after-free in of_update_property(), timer teardown and re-arm races during suspend/resume, child depopulation ordering, REQ2ACK bitfield and divide-by-zero bugs, AMCR bitfield shifting/masking, __fls(0) undefined behaviour, and stale invalid custom_configs pointers.

Cc Alexandre Belloni <[email protected]>
Cc Alexandre Torgue <[email protected]>
Cc Aneesh V <[email protected]>
Cc Benoit Cousson <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Christophe Kerello <[email protected]>
Cc Claudiu Beznea <[email protected]>
Cc Grant Likely <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jean-Jacques Hiblot <[email protected]>
Cc Jonathan Hunter <[email protected]>
Cc Joseph Lo <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Nicolas Ferre <[email protected]>
Cc Patrice Chotard <[email protected]>
Cc Santosh Shilimkar <[email protected]>
Cc Thierry Reding <[email protected]>

Lee Jones (8):
memory: atmel-ebi: Use non-devm allocations for of_update_property()
memory: tegra210-emc: Stop timers on suspend and prevent training
re-arm
memory: stm32_omm: Depopulate child devices before disabling clocks
memory: stm32_omm: Fix double FIELD_PREP() and clamp for REQ2ACK
memory: stm32_omm: Avoid division by zero in req2ack calculation
memory: stm32_omm: Shift and mask AMCR value in stm32_omm_set_amcr()
memory: emif: Avoid __fls(0) and underflow in of_get_ddr_info()
memory: emif: Clear invalid custom_configs in get_device_details()

 drivers/memory/atmel-ebi.c               | 40 +++++++++++++++++-------
 drivers/memory/emif.c                    |  6 ++--
 drivers/memory/stm32_omm.c               | 29 +++++++++++------
 drivers/memory/tegra/tegra210-emc-core.c | 37 +++++++++++++++++-----
 drivers/memory/tegra/tegra210-emc.h      |  2 ++
 5 files changed, 84 insertions(+), 30 deletions(-)
Signature · 1 line
2.56.1.911.g883d8bcb20-goog