From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933401AbcIOBnP (ORCPT ); Wed, 14 Sep 2016 21:43:15 -0400 Received: from ozlabs.org ([103.22.144.67]:41094 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754281AbcIOBnO (ORCPT ); Wed, 14 Sep 2016 21:43:14 -0400 Date: Thu, 15 Sep 2016 11:43:08 +1000 From: Stephen Rothwell To: Thiago Jung Bauermann Cc: kexec@lists.infradead.org, linux-ima-devel@lists.sourceforge.net, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, Eric Biederman , Dave Young , Vivek Goyal , Baoquan He , Michael Ellerman , Stewart Smith , Mimi Zohar , Andrew Morton , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Subject: Re: [PATCH v5 1/5] kexec_file: Include the purgatory segment in the kexec image checksum. Message-ID: <20160915114308.19195f71@canb.auug.org.au> In-Reply-To: <1473900890-1476-2-git-send-email-bauerman@linux.vnet.ibm.com> References: <1473900890-1476-1-git-send-email-bauerman@linux.vnet.ibm.com> <1473900890-1476-2-git-send-email-bauerman@linux.vnet.ibm.com> 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 Hi Thiago, > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 2a1f0ce7c59a..dcd1679f3005 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1792,6 +1792,11 @@ config SECCOMP > > source kernel/Kconfig.hz > > +# x86 needs to relocate the purgatory after the checksum is calculated, > +# therefore the purgatory cannot be part of the kexec image checksum. > +config ARCH_MODIFIES_KEXEC_PURGATORY > + bool > + The above should probably be in arch/Kconfig (with an appropriately changed comment) since it is used in generic code. -- Cheers, Stephen Rothwell