From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0A77C00140 for ; Fri, 12 Aug 2022 17:14:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:From:References:Cc:To: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FDkcIQOyUFo9KQeJBzoZS8fYdxRY72jryurhrZVHfrM=; b=Zf3k8K6k+5J4Rrx6MFT038+UDc YmbzfYtsnZL/a/AwgSeBJAJYMtWyVrMuL6ZpODBivzzG7uD5bmfA7NeMfZS9O5uQlgHJAw5rers14 wMazhFZ8XDsFQRgIVNLxO0ck+Rj3FgrP2a6ZICqoa6GNk9sqaz3d5IkHX5StqXw54Acf5Lz6DHfZj pGRGjoedzqmGuffMAEQ6RR1f9GoXlCD5graMbBvnxNnCd2djyMwgUeAf0WgtPBvX1l9/NJ9uZBKk0 RNRu5+jQilmuqPoYRWRbEDY1UOpEeXhKVNpounifkKOvFLO50yi9PmVKoRZ2qcDkKkebFDKnLFEZE OniBUUFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMYFD-00BM6b-CZ; Fri, 12 Aug 2022 17:14:47 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMYFB-00BM5k-69 for kexec@lists.infradead.org; Fri, 12 Aug 2022 17:14:46 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27CHBmTa017251; Fri, 12 Aug 2022 17:14:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=UAruYGVa4NvslEz2npXzYbxALbCA++AXRFo8FeFH4Hw=; b=EK9ni+ZTueZABWJ1xRiAqrDAeeXOa3xWddmkJN90KglKsrIwzzkUMPvuK//Mbm1a3gnB qZLfFnGdGFotcpK7Stw/qdb+KKQYTBw2/LvNmcX9FcDqGdwroRj4wrwwFx4vysovRXKk ASg+j7RRiz3zCew9W9FeGR2fTJsomE9ftCpNO0DdOeMX+iZOAGXz+n0YgXTYX+XJ/nqM Iq3hOK5AfucScfDrjgwgVKL4maXw5UeQs47OWb5RKQjMqlx8uKPiNvVU1EJcwfpCDd+0 PlNxJ0iWgGb05h8sf530KTvOvMDv0GcK4nKmvgqIF4IMusxW2RNOKGIyJflIEhPnG/Ve Ng== Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3hwu220232-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Aug 2022 17:14:40 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27CH6qfE011956; Fri, 12 Aug 2022 17:14:39 GMT Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by ppma05wdc.us.ibm.com with ESMTP id 3hvcmrnx5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Aug 2022 17:14:39 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27CHEcoe60424560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Aug 2022 17:14:38 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C33752805C; Fri, 12 Aug 2022 17:14:38 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9EF9B28058; Fri, 12 Aug 2022 17:14:38 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 12 Aug 2022 17:14:38 +0000 (GMT) Message-ID: <935988a4-c245-7cb1-4e14-bc99d39220a1@linux.ibm.com> Date: Fri, 12 Aug 2022 13:14:38 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v7 3/6] x86/kexec: Carry forward IMA measurement log on kexec Content-Language: en-US To: Borislav Petkov Cc: kexec@lists.infradead.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, nayna@linux.ibm.com, nasastry@in.ibm.com, mpe@ellerman.id.au, Jonathan McDowell , Mimi Zohar References: <20220812164305.2056641-1-stefanb@linux.ibm.com> <20220812164305.2056641-4-stefanb@linux.ibm.com> From: Stefan Berger In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: TlIACgSDS3X7lmgztrMtjqsgpTFaGqT0 X-Proofpoint-GUID: TlIACgSDS3X7lmgztrMtjqsgpTFaGqT0 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-12_10,2022-08-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 priorityscore=1501 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208120045 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220812_101445_259407_1167D0B8 X-CRM114-Status: GOOD ( 23.72 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org On 8/12/22 13:10, Borislav Petkov wrote: > On Fri, Aug 12, 2022 at 12:43:02PM -0400, Stefan Berger wrote: >> From: Jonathan McDowell >> >> On kexec file load, the Integrity Measurement Architecture (IMA) >> subsystem may verify the IMA signature of the kernel and initramfs, and >> measure it. The command line parameters passed to the kernel in the >> kexec call may also be measured by IMA. >> >> A remote attestation service can verify a TPM quote based on the TPM >> event log, the IMA measurement list and the TPM PCR data. This can >> be achieved only if the IMA measurement log is carried over from the >> current kernel to the next kernel across the kexec call. >> >> PowerPC and ARM64 both achieve this using device tree with a >> "linux,ima-kexec-buffer" node. x86 platforms generally don't make use of >> device tree, so use the setup_data mechanism to pass the IMA buffer to >> the new kernel. >> >> Signed-off-by: Jonathan McDowell >> Signed-off-by: Borislav Petkov >> Reviewed-by: Mimi Zohar # IMA function definitions >> Link: https://lore.kernel.org/r/YmKyvlF3my1yWTvK@noodles-fedora-PC23Y6EG > > Is there any particular reason to keep sending a patch which is already > upstream? > Yes, so this series can be tested by krobot. I only based this series on 5.19 so far, so if it's upstreamed since then it will go missing next time when I base it on 5.20-rc1 or so. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec