Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbaFZU6N (ORCPT ); Thu, 26 Jun 2014 16:58:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60757 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbaFZU6N (ORCPT ); Thu, 26 Jun 2014 16:58:13 -0400 Date: Thu, 26 Jun 2014 13:58:11 -0700 From: Andrew Morton To: Vivek Goyal Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, hpa@zytor.com, mjg59@srcf.ucam.org, greg@kroah.com, bp@alien8.de, dyoung@redhat.com, chaowang@redhat.com, bhe@redhat.com Subject: Re: [PATCH 00/15][V4] kexec: A new system call to allow in kernel loading Message-Id: <20140626135811.37c10ff327bea8a9d2e3894e@linux-foundation.org> In-Reply-To: <1403814824-7587-1-git-send-email-vgoyal@redhat.com> References: <1403814824-7587-1-git-send-email-vgoyal@redhat.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Jun 2014 16:33:29 -0400 Vivek Goyal wrote: > This patch series does not do kernel signature verification yet. I plan > to post another patch series for that. Now distributions are already signing > PE/COFF bzImage with PKCS7 signature I plan to parse and verify those > signatures. > > Primary goal of this patchset is to prepare groundwork so that kernel > image can be signed and signatures be verified during kexec load. This > should help with two things. > > - It should allow kexec/kdump on secureboot enabled machines. > > - In general it can help even without secureboot. By being able to verify > kernel image signature in kexec, it should help with avoiding module > signing restrictions. Matthew Garret showed how to boot into a custom > kernel, modify first kernel's memory and then jump back to old kernel and > bypass any policy one wants to. > > I hope these patches can be queued up for 3.17. Even without signature > verification support, they provide new syscall functionality. But I > wil leave it to maintainers to decide if they want signature verification > support also be ready to merge before they merge this patchset. Well, this is an absolute ton of new code, much of it pretty complex. And I believe the entire point of this work is to enable image signature checking, but that hasn't been implemented yet? In which case I'm thinking it would be unwise to merge these parts into mainline - if signature checking doesn't work or fails review or if you get hit by a bus then we'd be left with a large lump of rather useless code? In which case I'm inclined to put this series into -next and keep it there pending completion of the signature checking part. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/