From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKo70-0008Q1-VE for kexec@lists.infradead.org; Fri, 22 Aug 2014 12:38:35 +0000 Date: Fri, 22 Aug 2014 08:38:12 -0400 From: Vivek Goyal Subject: Re: kexec fails to boot kernels where CONFIG_RANDOMIZE_BASE=y is set Message-ID: <20140822123811.GD5954@redhat.com> References: <53F11882.3060803@whissi.de> <20140818145718.GD4745@redhat.com> <20140819090724.GB21724@dhcp-17-37.nay.redhat.com> <20140820143315.GC16303@redhat.com> <20140821181000.GB21891@redhat.com> <20140822031941.GB2651@dhcp-17-37.nay.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140822031941.GB2651@dhcp-17-37.nay.redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: WANG Chao Cc: "Thomas D." , Kexec Mailing List , Kees Cook On Fri, Aug 22, 2014 at 11:19:41AM +0800, WANG Chao wrote: > On 08/21/14 at 02:10pm, Vivek Goyal wrote: > > > > If kernel is being moved physically, then we potentially have the issue of > > it stomping other things. So how do we make sure that it does not overwrite > > initramfs, or previous kernel's page tables or something else? > > In case you don't read that part, memory of initrd, cmdline and others > won't be overwritten. > > This work is done in x86/boot/compressed/aslr.c::mem_avoid_init(). Ok, got it. so cmdline and initrd info is present in bootparams and kernel can use that to avoid stomping those. But that still does not protect ELF header segment (prepared in case of kdump) and page tables setup by previous kernel. So may be this failure happens because new kernel stomps over page tables of old kernel. But if that theory is right, then we should be able to kexec using 32bit entry point of bzImage. Thomas, have you had any success with that? Thanks Vivek _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec