Re: verify_pefile_signature() and a message field of MZ header in pe.h

2017-05-30 Thread David Howells
AKASHI Takahiro wrote: > Struct mz_hdr in include/linux/pe.h contains a message[] field. > Should it be part of this structure? You'd probably be better off asking Peter Jones - he wrote the original code that I copied into the kernel. David

Re: verify_pefile_signature() and a message field of MZ header in pe.h

2017-05-30 Thread Ard Biesheuvel
On 30 May 2017 at 07:10, AKASHI Takahiro wrote: > Hi David, > > Struct mz_hdr in include/linux/pe.h contains a message[] field. > Should it be part of this structure? > (I googled "MZ format," but didn't find out the exact definition.) > MZ format does not exist. It is the magic number of the DOS

verify_pefile_signature() and a message field of MZ header in pe.h

2017-05-30 Thread AKASHI Takahiro
Hi David, Struct mz_hdr in include/linux/pe.h contains a message[] field. Should it be part of this structure? (I googled "MZ format," but didn't find out the exact definition.) I'm now working on kexec_file_load support on arm64. As arm64's Image binary can be seen as in PE format, verify_pefile