Linux Remote Processor Subsystem development
 help / color / mirror / Atom feed
* rproc_elf_load_segments: rproc_elf_load_segments elf loading problem
@ 2018-08-20  5:40 Denis Ryndine
  2018-08-22 20:50 ` Suman Anna
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Ryndine @ 2018-08-20  5:40 UTC (permalink / raw)
  To: linux-remoteproc

Hello,

The following may look like an error, could someone review.

In rproc_elf_load_segments:

/* grab the kernel address for this device address */
ptr = rproc_da_to_va(rproc, da, memsz);

The last parameter should be filesz. Otherwise this call may fail, as
the case when da is an address within a segment / memory.
(E.g.  placing a RO data after the code within text segment /memory ).

Regards

Denis Ryndine

---
dry@embedded-synergy.co.za | www.embedded-synergy.co.za

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

end of thread, other threads:[~2018-09-06  6:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20  5:40 rproc_elf_load_segments: rproc_elf_load_segments elf loading problem Denis Ryndine
2018-08-22 20:50 ` Suman Anna
2018-08-23  1:28   ` Denis Ryndine
2018-08-23 14:12     ` Felix Siegel
2018-08-23 23:52       ` Denis Ryndine
2018-08-30 12:45       ` Stefan Agner
2018-08-31  1:21         ` Denis Ryndine
2018-09-05 23:57         ` Denis Ryndine
2018-09-06  0:58           ` Stefan Agner
2018-09-06  1:23             ` Denis Ryndine
2018-09-06  1:43               ` Stefan Agner
2018-09-06  2:04                 ` Denis Ryndine

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