Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1024385ybt; Fri, 19 Jun 2020 22:01:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytdvjD0Ms+HVqG1ZVGVg8p++qK5OZ3hqBqhBrqGb9OiHyzCfBBapZmpU42yqzBUoot84jW X-Received: by 2002:aa7:ce93:: with SMTP id y19mr6427450edv.50.1592629261743; Fri, 19 Jun 2020 22:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629261; cv=none; d=google.com; s=arc-20160816; b=witOfp7521CXwCeVnXzN3Wwd2NMhRyJ8VZfd6P+maWdDGHhxHLMGE5UnIe2CnCK+E2 HP89wtH0yX2ACfYWFaONMY6Go5MUohcUPzUtCfuuV0PPf+B3yDGtGmTUdB5dzfDTjDHn IbPMC5P0DPHo7KDCTMyc4GemoIqeZnJ6W5bMPa1YeICoDhbafYLE5eOSbNqDt+1Apq/J Fiv0We8ZAUBene8/Q5MHAAXVjjZemfCEG9Y3QdQx3e2eXusQthQ+DFAI8ra4ehzYWPfE 4Ji1Dyrpm6EU4EoJPnIOH/yjPMyXqJIGRPJdMoclFracFFKyx4INLL8pFYyh1ae31x/A ridQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=hcURxxbXrlGn32rIctaXMDLzM6QwKQNMgvdC3CtFhXE=; b=pCopP05Pvq+WAj8Z2XQLpMrHu6ieKvwf2EQroizf2DcxqO608I1baCXPQ5YxfRMGXB 5Lh0r1vIxzo/lSii+iuHCdcaMpQweHItLR6yAT/9LEzU+WLIbvvCII8DstBfXWPfdGyt WxcK3iT8GHRc70GSB/5UhCLPjpA1b9mJ4wiAvSCkTmIYaWQ77fqAQwuG+llvEMyJ+NNz 5gpRayCWrZ1FEssGj96UvH4hz8KW+ptU2vU2OFo5hRY+ih+ZKxUJRcqN/e6m/dVX4LMa BNfTkRm3gIVNmlF06B4iDDzAN5R9OAa6qkxNW0ktLpu9aFWppmAvGeDiyQ++l0xAse1T jygg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 89si5697434edo.459.2020.06.19.22.00.39; Fri, 19 Jun 2020 22:01:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730988AbgFTAm4 (ORCPT + 99 others); Fri, 19 Jun 2020 20:42:56 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34846 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgFTAmz (ORCPT ); Fri, 19 Jun 2020 20:42:55 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05K0WSwk183261; Fri, 19 Jun 2020 20:42:09 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31s0pbagqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jun 2020 20:42:09 -0400 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05K0WcPq186459; Fri, 19 Jun 2020 20:42:08 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 31s0pbagqa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jun 2020 20:42:08 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05K0VFD0005552; Sat, 20 Jun 2020 00:42:07 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma03dal.us.ibm.com with ESMTP id 31q6c6faep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 20 Jun 2020 00:42:07 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05K0g61K49938852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Jun 2020 00:42:06 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A88E7112062; Sat, 20 Jun 2020 00:42:06 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3890A112061; Sat, 20 Jun 2020 00:41:54 +0000 (GMT) Received: from morokweng.localdomain (unknown [9.163.93.234]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS; Sat, 20 Jun 2020 00:41:53 +0000 (GMT) References: <20200618071045.471131-1-prsriva@linux.microsoft.com> <20200618071045.471131-3-prsriva@linux.microsoft.com> User-agent: mu4e 1.2.0; emacs 26.3 From: Thiago Jung Bauermann To: Prakhar Srivastava Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, robh+dt@kernel.org, frowand.list@gmail.com, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, pasha.tatashin@soleen.com, allison@lohutok.net, kstewart@linuxfoundation.org, takahiro.akashi@linaro.org, tglx@linutronix.de, vincenzo.frascino@arm.com, mark.rutland@arm.com, masahiroy@kernel.org, james.morse@arm.com, bhsharma@redhat.com, mbrugger@suse.com, hsinyi@chromium.org, tao.li@vivo.com, christophe.leroy@c-s.fr, gregkh@linuxfoundation.org, nramas@linux.microsoft.com, tusharsu@linux.microsoft.com, balajib@linux.microsoft.com Subject: Re: [V2 PATCH 2/3] dt-bindings: chosen: Document ima-kexec-buffer In-reply-to: <20200618071045.471131-3-prsriva@linux.microsoft.com> Date: Fri, 19 Jun 2020 21:41:49 -0300 Message-ID: <87mu4yr2k2.fsf@morokweng.localdomain> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-19_22:2020-06-19,2020-06-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 cotscore=-2147483648 lowpriorityscore=0 clxscore=1015 spamscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006200000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Prakhar Srivastava writes: > Integrity measurement architecture(IMA) validates if files > have been accidentally or maliciously altered, both remotely and > locally, appraise a file's measurement against a "good" value stored > as an extended attribute, and enforce local file integrity. > > IMA also measures singatures of kernel and initrd during kexec along with > the command line used for kexec. > These measurements are critical to verify the seccurity posture of the OS. > > Resering memory and adding the memory information to a device tree node > acts as the mechanism to carry over IMA measurement logs. > > Update devicetree documentation to reflect the addition of new property > under the chosen node. Thank you for writing this documentation patch. It's something I should have done when I added the powerpc IMA kexec support. You addressed Rob Herring's comments regarding the commit message, but not the ones regarding the patch contents. When posting a new version of the patches, make sure to address all comments made so far. Addressing a comment doesn't necessarily mean implementing the requested change. If you don't then you should at least explain why you chose a different path. I mention it because this has occurred before with this patch series, and it's hard to make forward progress if review comments get ignored. > --- > Documentation/devicetree/bindings/chosen.txt | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt > index 45e79172a646..a15f70c007ef 100644 > --- a/Documentation/devicetree/bindings/chosen.txt > +++ b/Documentation/devicetree/bindings/chosen.txt > @@ -135,3 +135,20 @@ e.g. > linux,initrd-end = <0x82800000>; > }; > }; > + > +linux,ima-kexec-buffer > +---------------------- > + > +This property(currently used by powerpc, arm64) holds the memory range, space before the parenthesis. > +the address and the size, of the IMA measurement logs that are being carried Maybe it's because English isn't my first language, but IMHO it's clearer if "the address and the size" is between parentheses rather than commas. > +over to the kexec session. I don't think there's a "kexec session", but I'm not sure what a good term would be. "linux,booted-from-kexec" uses "new kernel" so perhaps that's a good option to use instead of "kexec session". > + > +/ { > + chosen { > + linux,ima-kexec-buffer = <0x9 0x82000000 0x0 0x00008000>; > + }; > +}; > + > +This porperty does not represent real hardware, but the memory allocated for > +carrying the IMA measurement logs. The address and the suze are expressed in > +#address-cells and #size-cells, respectively of the root node. -- Thiago Jung Bauermann IBM Linux Technology Center