mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] firmware: stratix10-svc: fix kaddr dangling pointers and populate kaddr1
@ 2026-05-26  7:35 Adrian Ng Ho Yin
  2026-05-26  7:35 ` [PATCH 1/2] firmware: stratix10-svc: fix dangling kaddr pointers in callback data Adrian Ng Ho Yin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Adrian Ng Ho Yin @ 2026-05-26  7:35 UTC (permalink / raw)
  To: Dinh Nguyen, linux-kernel; +Cc: Adrian Ng Ho Yin

kaddr1/2/3 in the stratix10 service layer are set to addresses of local
arm_smccc_res fields that go out of scope when the setting function returns,
leaving dangling pointers in the callback data.

Patch 1 fixes this by adding a1/a2/a3 scratch fields to struct
stratix10_svc_cb_data, which lives for the SVC thread lifetime, and
pointing kaddrN to those fields instead of the stack.

Patch 2 uses the same mechanism to populate the previously unset kaddr1 in
svc_thread_cmd_config_status(), exposing firmware status details to callers.

Adrian Ng Ho Yin (2):
  firmware: stratix10-svc: fix dangling kaddr pointers in callback data
  firmware: stratix10-svc: populate kaddr1 from config status response

 drivers/firmware/stratix10-svc.c              | 45 ++++++++++++-------
 .../firmware/intel/stratix10-svc-client.h     | 17 +++++++
 2 files changed, 47 insertions(+), 15 deletions(-)

-- 
2.49.GIT


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-26  7:35 [PATCH 0/2] firmware: stratix10-svc: fix kaddr dangling pointers and populate kaddr1 Adrian Ng Ho Yin
2026-05-26  7:35 ` [PATCH 1/2] firmware: stratix10-svc: fix dangling kaddr pointers in callback data Adrian Ng Ho Yin
2026-05-26  7:35 ` [PATCH 2/2] firmware: stratix10-svc: populate kaddr1 from config status response Adrian Ng Ho Yin
2026-09-02 16:31 ` [PATCH 0/2] firmware: stratix10-svc: fix kaddr dangling pointers and populate kaddr1 Dinh Nguyen
2026-09-09 17:09   ` NG, ADRIAN HO YIN

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®