Re: [PATCH 13/14] arm64: kexec_file: add Image format support

2017-08-24 Thread AKASHI Takahiro
On Thu, Aug 24, 2017 at 06:23:37PM +0100, Mark Rutland wrote: > On Thu, Aug 24, 2017 at 05:18:10PM +0900, AKASHI Takahiro wrote: > > The "Image" binary will be loaded at the offset of TEXT_OFFSET from > > the start of system memory. TEXT_OFFSET is basically determined from > > the header of the ima

Re: [PATCH 13/14] arm64: kexec_file: add Image format support

2017-08-24 Thread Mark Rutland
On Thu, Aug 24, 2017 at 05:18:10PM +0900, AKASHI Takahiro wrote: > The "Image" binary will be loaded at the offset of TEXT_OFFSET from > the start of system memory. TEXT_OFFSET is basically determined from > the header of the image. What's the policy for the binary types kexec_file_load() will loa

[PATCH 13/14] arm64: kexec_file: add Image format support

2017-08-24 Thread AKASHI Takahiro
The "Image" binary will be loaded at the offset of TEXT_OFFSET from the start of system memory. TEXT_OFFSET is basically determined from the header of the image. Regarding kernel verification, it will be done through verify_pefile_signature() as arm64's "Image" binary can be seen as in PE format.