mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Add automotive SMEM hardening for Qualcomm platforms
@ 2026-08-20 11:34 Albert Esteve
  2026-08-20 11:34 ` [PATCH 1/2] soc: qcom: smem: add boundary checks for partitions Albert Esteve
  2026-08-20 11:34 ` [PATCH 2/2] soc: qcom: smem: ignore multi remote host partitions Albert Esteve
  0 siblings, 2 replies; 5+ messages in thread
From: Albert Esteve @ 2026-08-20 11:34 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel, Albert Esteve, Sudeepgoud Patil,
	Sarannya S, Pranav Mahesh Phansalkar, Tony Truong

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@redhat.com>
---
Sudeepgoud Patil (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: c21bb4193868a8de71fc4693fa741e195fdf5d86
change-id: 20260819-port-smem-7518c77c9415

Best regards,
-- 
Albert Esteve <aesteve@redhat.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-01  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20 11:34 [PATCH 0/2] Add automotive SMEM hardening for Qualcomm platforms Albert Esteve
2026-08-20 11:34 ` [PATCH 1/2] soc: qcom: smem: add boundary checks for partitions Albert Esteve
2026-08-31 22:54   ` Bjorn Andersson
2026-09-01  7:04     ` Albert Esteve
2026-08-20 11:34 ` [PATCH 2/2] soc: qcom: smem: ignore multi remote host partitions Albert Esteve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®