From: Albert Esteve <aesteve@redhat.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
Albert Esteve <aesteve@redhat.com>,
Sarannya S <quic_sarannya@oss.qualcomm.com>,
Pranav Mahesh Phansalkar <quic_pphansal@oss.qualcomm.com>,
Sudeepgoud Patil <quic_sudeepgo@oss.qualcomm.com>,
Tony Truong <quic_truong@oss.qualcomm.com>
Subject: [PATCH v2 0/2] Add automotive SMEM hardening for Qualcomm platforms
Date: Fri, 04 Sep 2026 17:18:46 +0200 [thread overview]
Message-ID: <20260904-port-smem-v2-0-bb497dd3c48b@redhat.com> (raw)
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>
---
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@redhat.com
---
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@redhat.com>
next reply other threads:[~2026-09-04 15:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 15:18 Albert Esteve [this message]
2026-09-04 15:18 ` [PATCH v2 1/2] soc: qcom: smem: add boundary checks for partitions Albert Esteve
2026-09-23 13:58 ` Konrad Dybcio
2026-09-23 14:49 ` Albert Esteve
2026-09-04 15:18 ` [PATCH v2 2/2] soc: qcom: smem: ignore multi remote host partitions Albert Esteve
2026-09-23 13:38 ` Konrad Dybcio
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=20260904-port-smem-v2-0-bb497dd3c48b@redhat.com \
--to=aesteve@redhat.com \
--cc=andersson@kernel.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_pphansal@oss.qualcomm.com \
--cc=quic_sarannya@oss.qualcomm.com \
--cc=quic_sudeepgo@oss.qualcomm.com \
--cc=quic_truong@oss.qualcomm.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
all inboxes | Powered by JetHome®