From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: Re: [PATCH v3 1/7] x86, kaslr: Use init_size instead of run_size Date: Mon, 9 Mar 2015 13:06:00 -0700 Message-ID: References: <1425766041-6551-1-git-send-email-yinghai@kernel.org> <1425766041-6551-2-git-send-email-yinghai@kernel.org> <20150309124935.GA12732@pd.tnic> <20150309200035.GK12732@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20150309200035.GK12732-fF5Pk5pvG8Y@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Borislav Petkov Cc: Matt Fleming , "H. Peter Anvin" , Ingo Molnar , Kees Cook , Baoquan He , Thomas Gleixner , Jiri Kosina , Linux Kernel Mailing List , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Josh Triplett , Andrew Morton , Ard Biesheuvel , Junjie Mao List-Id: linux-efi@vger.kernel.org On Mon, Mar 9, 2015 at 1:00 PM, Borislav Petkov 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"