[PATCH v2 0/2] Add automotive SMEM hardening for Qualcomm platforms
From: Albert Esteve
Date: Fri Sep 04 2026 - 12:46:13 EST
The Qualcomm SMEM driver manages shared memory partitions used for
inter-processor communication on Qualcomm SoCs, including the
automotive SA8775P platform. Vendor trees carry additional validation
and partition-enumeration logic that is not yet present in master.
Patch 1 adds boundary checks when walking private SMEM partition
entries, ensuring traversal does not read past the end of a partition.
Patch 2 skips multi-remote-host partitions during enumeration. SMEM
now supports partitions involving more than one remote host, but the
driver does not implement that case yet.
Both patches are based on public vendor patches from Qualcomm [1][2].
Adapted for master. In particular:
- Dropped the xarray partition rework, which is already present in
master (79602b750b96c, "soc: qcom: smem: Switch partitions to
xarray")
Built on master (Linux 7.2.0-rc6+), and tested on Qualcomm SA8775P
Ride V3 board. SMEM platform device binds and initializes successfully.
[1] https://git.codelinaro.org/clo/la/kernel/qcom/-/commit/3e521f2641c8f01f00fd74a088206942ce23d6d4
[2] https://git.codelinaro.org/clo/la/kernel/qcom/-/commit/842dd28b0276b3824a607e067b3c20e266bcf230
Signed-off-by: Albert Esteve <aesteve@xxxxxxxxxx>
---
Changes in v2:
- Update patch 1 authorship to Sarannya
- Update all emails from @quicinc.com to @oss.qualcomm.com
- Make smem.c copyright yearless
- Link to v1: https://lore.kernel.org/r/20260820-port-smem-v1-0-d19a45f583bf@xxxxxxxxxx
---
Sarannya S (1):
soc: qcom: smem: add boundary checks for partitions
Tony Truong (1):
soc: qcom: smem: ignore multi remote host partitions
drivers/soc/qcom/smem.c | 111 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 78 insertions(+), 33 deletions(-)
---
base-commit: bc35965f6940a9bf834d54187b6088b8eb09206d
change-id: 20260819-port-smem-7518c77c9415
Best regards,
--
Albert Esteve <aesteve@xxxxxxxxxx>