Re: [PATCH v3 1/7] x86, kaslr: Use init_size instead of run_size

Yinghai Lu
2015-03-09T20:06:00Z

On Mon, Mar 9, 2015 at 1:00 PM, Borislav Petkov <bp-l3A5Bk7waGM@public.gmane.org> wrote:
> On Mon, Mar 09, 2015 at 12:35:25PM -0700, Yinghai Lu wrote:
>> Can you put back:
>> "
>> So need to make sure [z_extra_offset, init_size) will fit ZO, that means
>> init_size need to be adjusted according to ZO size.
>> That make init_size is always >= run_size.
>
> Why?
>
> We don't adjust init_size. We assign INIT_SIZE to it. Or do you want to
> say that we indirectly adjust init_size through INIT_SIZE?

Yes. Just to emphasize that " We need to make sure [z_extra_offset,
init_size) will fit ZO"