From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935133AbcI2WQt (ORCPT ); Thu, 29 Sep 2016 18:16:49 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60852 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934975AbcI2WQL (ORCPT ); Thu, 29 Sep 2016 18:16:11 -0400 From: Thiago Jung Bauermann To: "Eric W. Biederman" Cc: Andrew Morton , Stephen Rothwell , Mimi Zohar , LKML , Michael Ellerman Subject: Re: ima measurement carrying on -mm Date: Thu, 29 Sep 2016 19:16:02 -0300 User-Agent: KMail/4.14.3 (Linux/4.4.0-38-generic; KDE/4.14.13; x86_64; ; ) In-Reply-To: <87a8eqwexd.fsf@x220.int.ebiederm.org> References: <1687520.U903BamSQx@hactar> <10788418.Ym8VJ8yVbp@hactar> <87a8eqwexd.fsf@x220.int.ebiederm.org> 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: 16092922-0028-0000-0000-0000015101C1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16092922-0029-0000-0000-0000143C91F4 Message-Id: <59028142.xoPWTALrrA@hactar> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-29_14:,, 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-1609280000 definitions=main-1609290383 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, 29 September 2016, 16:53:50 schrieb Eric W. Biederman: > Thiago Jung Bauermann writes: > > Am Donnerstag, 29 September 2016, 14:02:06 schrieb Andrew Morton: > >> On Thu, 29 Sep 2016 17:44:10 -0300 Thiago Jung Bauermann > > > > wrote: > >> > Hello Andrew, > >> > > >> > You have in the -mm tree a version of the "kexec handover buffer" and > >> > "ima carry measurement list" patches that were NAKed by Eric > >> > Biederman. > >> > I would just like to double-check that there's no risk of that > >> > version > >> > reaching v4.9. > >> > > >> > Mimi posted v5 of a merged patch set that addresses Eric's concern: > >> > > >> > https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-September/149183 > >> > .ht > >> > ml > >> > > >> > There are no separate kexec handover patches anymore. They were > >> > folded > >> > into the series above. The kexec code is simplified now, it doesn't > >> > support updating the buffer and recalculating the hash on reboot, and > >> > is now IMA- specific instead of a generic kexec feature. > >> > >> Yup, thanks. > >> > >> I wasn't thinking any of this material is suitable for 4.9. Seems that > >> a bit more consideration will be needed. Am I wrong about that? > > > > Yes regarding the "ima carry measurement list" patches, but I was hoping > > that at least the kexec_file_load patches would be upstreamed. > > Oh bah. I was confused about that straight forward adding of kexec_file > support to powerpc. I thought that was already in existence. > > In that case let me say I am concerned about modifying the flattened > device tree, especially in the kexec_file. I would think that the > flattened device tree would be something that it would be desirable to > keep intact. > > I know in the x86 boot protocol we have some variables that are purely > passed by the bootloader (like the command line) and some that just > representations of firmware provided information. Does powerpc not have > that separation. > > I would think being able to pass the flattened device tree through > unchanged would be very desirable in the kexec case as it removes the > possibility of error. As far as I know, that is not possible. The device tree always needs to be modified to add or update the properties that indicate where the initrd is loaded and, as you mentioned, the kernel command line. The IMA buffer patches just adds another property. -- []'s Thiago Jung Bauermann IBM Linux Technology Center