Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-07-06 Thread Su, Bao Cheng
On Mon, 2022-06-27 at 16:32 +0200, Heinrich Schuchardt wrote: > On 6/24/22 07:32, Su, Bao Cheng wrote: > > During PE hashing, when holes exists between sections, the extra > > data > > calculated could be a dupulicated region of the last section. > > > > Such PE image with holes existing between s

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-27 Thread Heinrich Schuchardt
On 6/24/22 07:32, Su, Bao Cheng wrote: During PE hashing, when holes exists between sections, the extra data calculated could be a dupulicated region of the last section. Such PE image with holes existing between sections may contain the symbol table for the kernel, for example. The Authenticod

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-27 Thread Su, Bao Cheng
On Fri, 2022-06-24 at 11:44 +0200, Jan Kiszka wrote: > On 24.06.22 10:53, Heinrich Schuchardt wrote: > > On 6/24/22 07:32, Su, Bao Cheng wrote: > > > During PE hashing, when holes exists between sections, the extra > > > data > > > calculated could be a dupulicated region of the last section. > > >

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-27 Thread Su, Bao Cheng
On Mon, 2022-06-27 at 06:55 +0200, Heinrich Schuchardt wrote: > On 6/27/22 05:43, Su, Bao Cheng wrote: > > On Fri, 2022-06-24 at 11:44 +0200, Jan Kiszka wrote: > > > On 24.06.22 10:53, Heinrich Schuchardt wrote: > > > > On 6/24/22 07:32, Su, Bao Cheng wrote: > > > > > During PE hashing, when holes

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-26 Thread Heinrich Schuchardt
On 6/27/22 05:43, Su, Bao Cheng wrote: On Fri, 2022-06-24 at 11:44 +0200, Jan Kiszka wrote: On 24.06.22 10:53, Heinrich Schuchardt wrote: On 6/24/22 07:32, Su, Bao Cheng wrote: During PE hashing, when holes exists between sections, the extra data calculated could be a dupulicated region of the

[PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-24 Thread Su, Bao Cheng
During PE hashing, when holes exists between sections, the extra data calculated could be a dupulicated region of the last section. Such PE image with holes existing between sections may contain the symbol table for the kernel, for example. The Authenticode_PE spec does not rule how to deal with

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-24 Thread Jan Kiszka
On 24.06.22 10:53, Heinrich Schuchardt wrote: > On 6/24/22 07:32, Su, Bao Cheng wrote: >> During PE hashing, when holes exists between sections, the extra data >> calculated could be a dupulicated region of the last section. >> >> Such PE image with holes existing between sections may contain the >

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-24 Thread Heinrich Schuchardt
On 6/24/22 07:32, Su, Bao Cheng wrote: During PE hashing, when holes exists between sections, the extra data calculated could be a dupulicated region of the last section. Such PE image with holes existing between sections may contain the symbol table for the kernel, for example. The Authenticod