Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2041590rwb; Fri, 12 Aug 2022 10:51:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dvC37NgjM4mmiamJ6p7+m1yHLDKZmV5+G7dpDWHylBsF3YlPmH/6ec7M0tAp0Q9donbgP X-Received: by 2002:a17:90b:4b05:b0:1f5:b540:de3a with SMTP id lx5-20020a17090b4b0500b001f5b540de3amr5341050pjb.43.1660326688944; Fri, 12 Aug 2022 10:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660326688; cv=none; d=google.com; s=arc-20160816; b=V3cbGr9Cu2R8lDon57Jlh3jYPM6sR7+IiJ0f4f7Tr9/Rc6qTihIzyCXceY58YZJBat 5IO6Y2SEHV6lJJkTGSgqsuMEKQDvPHm8GZJ3jGA7u13RNlm4/gfom06YUJ4IkpSzwsNV gorObErIXYTaQFuBcBe/52vIBLYOOeKN/onJntitqWIOIxcExT3B8DDhVF8FbcXSjS8N Fsx/RZNygI10/jQBojUt8aDFvbfL3i9wO/3LlNV3aP0dawOUKsDwVCip0ipiu783+qCP ZSTGRp9jMidbZD5xoyMfNPioeCsNWMcLD8DWuoTDJ+wL4O5/UFIGlEGmtZuyDJlna8dr L/mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=UAruYGVa4NvslEz2npXzYbxALbCA++AXRFo8FeFH4Hw=; b=sCnTqFMxCOfIqurZwspQHSe6M9W9wCY5r82QeHmFk5yjo+2zFbK1O7X3B7+MGNEKUq WIBhPx5B1ow4qaiep1JTBfVxoZIpaucOgcU4V6r6qHeRDpIXnXq7/82pG3hWxxB6Y9Hh HuGIPuE75Ra+Ev2P9B8h9jTP6GMkC0CLPimeyLUI2lphwkHu6bzsoThcGh7NJW2ANhgs BNiG5vKIYl4yImUubcyNYklnxahFem7WjY02ji9vDuFkz9Rs20l5NlbHs1ZRDYDZ9LvX kPcifio07MfDGIN7UiTC6TakGbEN4Vodya5r3glnJvIkOkledP98JTeEM6yUHbNaisE0 sjjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EK9ni+ZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a63514f000000b0041bfb11f138si3222200pgl.442.2022.08.12.10.51.10; Fri, 12 Aug 2022 10:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EK9ni+ZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239289AbiHLROy (ORCPT + 99 others); Fri, 12 Aug 2022 13:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234019AbiHLROw (ORCPT ); Fri, 12 Aug 2022 13:14:52 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30173A8CC9; Fri, 12 Aug 2022 10:14:52 -0700 (PDT) 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: Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: TlIACgSDS3X7lmgztrMtjqsgpTFaGqT0 X-Proofpoint-GUID: TlIACgSDS3X7lmgztrMtjqsgpTFaGqT0 Content-Transfer-Encoding: 7bit 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-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.