Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964971AbcK3NEj (ORCPT ); Wed, 30 Nov 2016 08:04:39 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53986 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964933AbcK3NEN (ORCPT ); Wed, 30 Nov 2016 08:04:13 -0500 Subject: Re: [PATCH v11 0/8] powerpc: Implement kexec_file_load() From: Mimi Zohar To: Michael Ellerman Cc: Andrew Morton , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, dyoung@redhat.com, stewart@linux.vnet.ibm.com, bauerman@linux.vnet.ibm.com Date: Wed, 30 Nov 2016 08:03:46 -0500 In-Reply-To: <87inr5po0n.fsf@concordia.ellerman.id.au> References: <1480423554-6411-1-git-send-email-mpe@ellerman.id.au> <20161129134518.7ddc9b733b65b5eed94acd3e@linux-foundation.org> <87inr5po0n.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16113013-0016-0000-0000-000003950AF6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16113013-0017-0000-0000-000027C356B1 Message-Id: <1480511026.18110.102.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-30_06:,, 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-1609300000 definitions=main-1611300218 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2676 Lines: 61 On Wed, 2016-11-30 at 15:52 +1100, Michael Ellerman wrote: > Andrew Morton writes: > > > On Tue, 29 Nov 2016 23:45:46 +1100 Michael Ellerman wrote: > > > >> This is v11 of the kexec_file_load() for powerpc series. > >> > >> I've stripped this down to the minimum we need, so we can get this in for 4.10. > >> Any additions can come later incrementally. > > > > This made a bit of a mess of Mimi's series "ima: carry the > > measurement list across kexec v10". > > Urk, sorry about that. I didn't realise there was a big dependency > between them, but I guess I should have tried to do the rebase. > > > powerpc-ima-get-the-kexec-buffer-passed-by-the-previous-kernel.patch > > ima-on-soft-reboot-restore-the-measurement-list.patch > > ima-permit-duplicate-measurement-list-entries.patch > > ima-maintain-memory-size-needed-for-serializing-the-measurement-list.patch > > powerpc-ima-send-the-kexec-buffer-to-the-next-kernel.patch > > ima-on-soft-reboot-save-the-measurement-list.patch > > ima-store-the-builtin-custom-template-definitions-in-a-list.patch > > ima-support-restoring-multiple-template-formats.patch > > ima-define-a-canonical-binary_runtime_measurements-list-format.patch > > ima-platform-independent-hash-value.patch > > > > I made the syntactic fixes but I won't be testing it. Dmitry Kasatkin's acked-by needs to be included for the IMA patches. > Thanks. > > TBH I don't know how to test the IMA part, I'm relying on Thiago and > Mimi to do that. It should be straight forward. Enable CONFIG_IMA_KEXEC to carry the measurements from one kernel to the next. Use a kexec_file_load version of kexec to boot the next kernel. On the boot command line add "ima_tcb" or "ima_policy=ima_tcb". If the measurements were carried across kexec, the IMA measurement list /ima/ascii_runtime_measurements should contain an initial "boot_aggregate", as the first record, and a "boot_aggregate", as a delimiter, for each subsequent kexec. > >> If no one objects I'll merge this via the powerpc tree. The three kexec patches > >> have been acked by Dave Young (since forever), and have been in linux-next (via > >> akpm's tree) also for a long time. > > > > OK, I'll wait for these to appear in -next and I will await advice on > > Thanks. I'll let them stew for a few more hours and then put them in my > next for tomorrows linux-next. Thaigo tested the patches yesterday. Everything seemed fine. After cherry picking the kexec_file_load() patches and rebasing the restore_kexec patches on top of it in my tree, there were some problems. Perhaps there is some dependencies that I'm missing. Mimi