From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu9Ev-0002bw-Mg for kexec@lists.infradead.org; Fri, 20 Dec 2013 23:12:18 +0000 From: ebiederm@xmission.com (Eric W. Biederman) References: <20131121190350.GC17070@kroah.com> <20131121190620.GA25951@srcf.ucam.org> <20131121191305.GK16208@redhat.com> <20131121191907.GA26366@srcf.ucam.org> <20131122185706.GK4046@redhat.com> <87vbzju6ql.fsf@xmission.com> <20131125163920.GC23094@redhat.com> <87fvqj2vxz.fsf@xmission.com> <20131126142759.GA5473@redhat.com> <20131219125439.GA6379@lst.de> <20131220141917.GB27063@redhat.com> Date: Fri, 20 Dec 2013 15:11:23 -0800 In-Reply-To: <20131220141917.GB27063@redhat.com> (Vivek Goyal's message of "Fri, 20 Dec 2013 09:19:17 -0500") Message-ID: <87a9fvqfs4.fsf@xmission.com> MIME-Version: 1.0 Subject: Re: [PATCH 4/6] kexec: A new system call, kexec_file_load, for in kernel kexec 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=twosheds.infradead.org@lists.infradead.org To: Vivek Goyal Cc: Matthew Garrett , Kees Cook , Greg KH , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Peter Jones , Torsten Duwe , hpa@zytor.com Vivek Goyal writes: > On Thu, Dec 19, 2013 at 01:54:39PM +0100, Torsten Duwe wrote: >> On Tue, Nov 26, 2013 at 09:27:59AM -0500, Vivek Goyal wrote: >> IMO it's up to user land to search lists of certificates, and present >> only the final chain of trust to the kernel for checking. >> >> ELF is the preferred format for most sane OSes and firmware, and a detached >> signature would probably be simplest to check. If we have the choice, >> without restrictions from braindead boot loaders, ELF should be first. >> And if the pesigning isn't usable and another sig is needed anyway, >> why not apply that to vmlinux(.gz) ? > > I have yet to look deeper into it that if we can sign elf images and > just use elf loader. And can use space extract the elf image out of > a bzImage and pass it to kernel. > > Even if it is doable, one disadvantage seemed to be that extracted > elf images will have to be written to a file so thta it's file descriptor > can be passed to kernel. And that assumed writable root and we chrome > folks seems to have setups where root is not writable. In that case the chrome folks would simply have to use an ELF format kernel and not a bzImage. Eric _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec