From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bX6wn-00040U-ED for kexec@lists.infradead.org; Tue, 09 Aug 2016 13:19:58 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u79DDrmP087259 for ; Tue, 9 Aug 2016 09:19:36 -0400 Received: from e24smtp04.br.ibm.com (e24smtp04.br.ibm.com [32.104.18.25]) by mx0a-001b2d01.pphosted.com with ESMTP id 24nce9fthm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 09 Aug 2016 09:19:36 -0400 Received: from localhost by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 9 Aug 2016 10:19:33 -0300 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by d24dlp01.br.ibm.com (Postfix) with ESMTP id 6A325352005F for ; Tue, 9 Aug 2016 09:19:11 -0400 (EDT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay01.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u79DJVGx4292666 for ; Tue, 9 Aug 2016 10:19:31 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u79DJVAO002632 for ; Tue, 9 Aug 2016 10:19:31 -0300 From: Thiago Jung Bauermann Subject: Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Date: Tue, 09 Aug 2016 10:19:28 -0300 In-Reply-To: <1470747673.2881.118.camel@linux.vnet.ibm.com> References: <1470313475-20090-1-git-send-email-zohar@linux.vnet.ibm.com> <87wpjqtdg8.fsf@concordia.ellerman.id.au> <1470747673.2881.118.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Message-Id: <3544655.o5QPxko4Ba@hactar> 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: Mimi Zohar Cc: Michael Ellerman , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linuxppc-dev@lists.ozlabs.org Am Dienstag, 09 August 2016, 09:01:13 schrieb Mimi Zohar: > On Tue, 2016-08-09 at 20:59 +1000, Michael Ellerman wrote: > > Mimi Zohar writes: > > > diff --git a/security/integrity/ima/ima.h > > > b/security/integrity/ima/ima.h > > > index b5728da..84e8d36 100644 > > > --- a/security/integrity/ima/ima.h > > > +++ b/security/integrity/ima/ima.h > > > @@ -102,6 +102,13 @@ struct ima_queue_entry { > > > > > > }; > > > extern struct list_head ima_measurements; /* list of all measurements > > > */ > > > > > > +/* Some details preceding the binary serialized measurement list */ > > > +struct ima_kexec_hdr { > > > + unsigned short version; > > > + unsigned long buffer_size; > > > + unsigned long count; > > > +} __packed; > > > + > > > > Am I understanding it correctly that this structure is passed between > > kernels? > Yes, the header prefixes the measurement list, which is being passed on > the same computer to the next kernel. Could the architecture (eg. > LE/BE) change between soft re-boots? Yes. I am able to boot a BE kernel from an LE kernel with my patches. Whether we want to support that or not is another question... -- []'s Thiago Jung Bauermann IBM Linux Technology Center _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3s7vyM6hZ3zDqSr for ; Tue, 9 Aug 2016 23:19:39 +1000 (AEST) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u79DHk1S051739 for ; Tue, 9 Aug 2016 09:19:37 -0400 Received: from e24smtp03.br.ibm.com (e24smtp03.br.ibm.com [32.104.18.24]) by mx0a-001b2d01.pphosted.com with ESMTP id 24nb6ystj8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 09 Aug 2016 09:19:37 -0400 Received: from localhost by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 9 Aug 2016 10:19:34 -0300 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 064AB1DC0070 for ; Tue, 9 Aug 2016 09:19:23 -0400 (EDT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay01.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u79DJVFH4145298 for ; Tue, 9 Aug 2016 10:19:31 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u79DJVAQ002632 for ; Tue, 9 Aug 2016 10:19:31 -0300 From: Thiago Jung Bauermann To: Mimi Zohar Cc: Michael Ellerman , linux-security-module@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, Dave Young Subject: Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Date: Tue, 09 Aug 2016 10:19:28 -0300 In-Reply-To: <1470747673.2881.118.camel@linux.vnet.ibm.com> References: <1470313475-20090-1-git-send-email-zohar@linux.vnet.ibm.com> <87wpjqtdg8.fsf@concordia.ellerman.id.au> <1470747673.2881.118.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <3544655.o5QPxko4Ba@hactar> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Am Dienstag, 09 August 2016, 09:01:13 schrieb Mimi Zohar: > On Tue, 2016-08-09 at 20:59 +1000, Michael Ellerman wrote: > > Mimi Zohar writes: > > > diff --git a/security/integrity/ima/ima.h > > > b/security/integrity/ima/ima.h > > > index b5728da..84e8d36 100644 > > > --- a/security/integrity/ima/ima.h > > > +++ b/security/integrity/ima/ima.h > > > @@ -102,6 +102,13 @@ struct ima_queue_entry { > > > > > > }; > > > extern struct list_head ima_measurements; /* list of all measurements > > > */ > > > > > > +/* Some details preceding the binary serialized measurement list */ > > > +struct ima_kexec_hdr { > > > + unsigned short version; > > > + unsigned long buffer_size; > > > + unsigned long count; > > > +} __packed; > > > + > > > > Am I understanding it correctly that this structure is passed between > > kernels? > Yes, the header prefixes the measurement list, which is being passed on > the same computer to the next kernel. Could the architecture (eg. > LE/BE) change between soft re-boots? Yes. I am able to boot a BE kernel from an LE kernel with my patches. Whether we want to support that or not is another question... -- []'s Thiago Jung Bauermann IBM Linux Technology Center