From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762727AbcIOBvs (ORCPT ); Wed, 14 Sep 2016 21:51:48 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41285 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754281AbcIOBvq (ORCPT ); Wed, 14 Sep 2016 21:51:46 -0400 X-IBM-Helo: d24dlp02.br.ibm.com X-IBM-MailFrom: bauerman@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org From: Thiago Jung Bauermann To: Stephen Rothwell 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. Date: Wed, 14 Sep 2016 22:51:36 -0300 User-Agent: KMail/4.14.3 (Linux/3.13.0-95-generic; KDE/4.14.13; x86_64; ; ) In-Reply-To: <20160915114308.19195f71@canb.auug.org.au> References: <1473900890-1476-1-git-send-email-bauerman@linux.vnet.ibm.com> <1473900890-1476-2-git-send-email-bauerman@linux.vnet.ibm.com> <20160915114308.19195f71@canb.auug.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16091501-0032-0000-0000-00000286E615 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16091501-0033-0000-0000-00000EE06F19 Message-Id: <4542776.bqQjVnlNjh@hactar> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-15_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609020000 definitions=main-1609150023 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Stephen, Am Donnerstag, 15 September 2016, 11:43:08 schrieb Stephen Rothwell: > 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. Thanks for your quick response! I'll make that change tomorrow and send an updated version of just this patch. -- []'s Thiago Jung Bauermann IBM Linux Technology Center