mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] firmware: qcom: scm: fix SMC calls on ARM32
@ 2024-09-11  9:07 Bartosz Golaszewski
  2024-09-11  9:07 ` [PATCH v2 1/2] firmware: qcom: scm: fix a NULL-pointer dereference Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2024-09-11  9:07 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Andrew Halaney, Elliot Berman,
	Dmitry Baryshkov, Rudraksha Gupta,
	Linux regression tracking (Thorsten Leemhuis)
  Cc: linux-arm-msm, linux-kernel, Bartosz Golaszewski

The new TZ Mem allocator assumes the SCM driver is always probed which
apparently isn't the case on older platforms. Add a proper workaround.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Changes in v2:
- use likely() for the more likely branch in smc_args_free()
- Link to v1: https://lore.kernel.org/r/20240909-tzmem-null-ptr-v1-0-96526c421bac@linaro.org

---
Bartosz Golaszewski (2):
      firmware: qcom: scm: fix a NULL-pointer dereference
      firmware: qcom: scm: fall back to kcalloc() for no SCM device bound

 drivers/firmware/qcom/qcom_scm-smc.c | 28 ++++++++++++++++++++++++----
 drivers/firmware/qcom/qcom_scm.c     |  2 +-
 2 files changed, 25 insertions(+), 5 deletions(-)
---
base-commit: 6708132e80a2ced620bde9b9c36e426183544a23
change-id: 20240909-tzmem-null-ptr-2a9ddd9889aa

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


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

end of thread, other threads:[~2024-09-25  9:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-11  9:07 [PATCH v2 0/2] firmware: qcom: scm: fix SMC calls on ARM32 Bartosz Golaszewski
2024-09-11  9:07 ` [PATCH v2 1/2] firmware: qcom: scm: fix a NULL-pointer dereference Bartosz Golaszewski
2024-09-11 10:49   ` Dmitry Baryshkov
2024-09-16 16:30   ` Stephan Gerhold
2024-09-11  9:07 ` [PATCH v2 2/2] firmware: qcom: scm: fall back to kcalloc() for no SCM device bound Bartosz Golaszewski
2024-09-16 16:44   ` Stephan Gerhold
2024-09-17  6:28     ` Rudraksha Gupta
2024-09-17 10:17     ` Bartosz Golaszewski
2024-09-18  8:18       ` Stephan Gerhold
2024-09-25  9:35 ` [PATCH v2 0/2] firmware: qcom: scm: fix SMC calls on ARM32 Linux regression tracking (Thorsten Leemhuis)
2024-09-25  9:45   ` Bartosz Golaszewski

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®