Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp544680iob; Wed, 18 May 2022 07:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOAaDYFW2IuB3lizpP+6WRiwXMy2X/WJQvIyZzie/qc+0tPmJbdujGv2ECGq5NffacUtaO X-Received: by 2002:a17:903:2042:b0:161:53e9:c7b7 with SMTP id q2-20020a170903204200b0016153e9c7b7mr62491pla.122.1652885084206; Wed, 18 May 2022 07:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652885084; cv=none; d=google.com; s=arc-20160816; b=z1WqFLYkPW//cK8RFZBjqYbY7ZFXPBNB0NsOrygGB7HTs2y/FIBYjZypUDAkTdsQob F8TPJvAzFsLazl7SlaAlZyiOwiJGG6/mnXDsKO+T9Aa1JrLNgyvkCDxMDt1axfExqTJE qpgIXRqsW4CSTqxB9o7UCB0xGb5yt0xAUOBRi+cDNV8xJ6x9jWYUXWty6Bj4OYWYjCt2 MMUy0dSzFGX1j8LuxcaMizjiVyAtTkrBkUqoeDwJNtDOt7/O0IeE4YPd8ebejlYo6Ha3 U3c6jyN55B8nQnhZlczX6+WX6zyqFYrSCBrd5PLnFaUKNkzLiejQvIjSjYPWqjpfyTS3 OCFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=s2X7aKS1B3qNFqFNHXfey4nXV8WvfRyNdSmSs1pSdhA=; b=DsPG8Iu1Shdr4nhq+1t3IH7Qhn549PMZSnvMo7U28v41bg2sfDOtsGVzx4rq1u1AKU sGSxRoEg+yHKTRjA3TfrqFcvjatyr9glVDPqproyl1hzhQh3ztcO6aG3dFfxl4iNhEga xCYW1MtB3uVZEiE9KWZlP5zz6GAHrswNY5WbRAY1WgSttM2gYLeKxjooLvQApF/wuF10 IRNubDe+t4ENBeLoOMLOf60ogdM3AeIZCcG8fL6b8RF4+yIRI0VCt7Nsz1zeG4J40Td2 ZDWyRo+DcvIclGffyZj1hg1lORmbbeXAtfXkKteiZzXS+kiP3xehRvt9/jfDDz1bYI32 Vmqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=F7f1kErI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c2-20020a170903234200b0015e850db0ebsi3408722plh.494.2022.05.18.07.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=F7f1kErI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74F2F1D5019; Wed, 18 May 2022 07:44:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238811AbiEROoR (ORCPT + 99 others); Wed, 18 May 2022 10:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238795AbiEROoQ (ORCPT ); Wed, 18 May 2022 10:44:16 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24E771BB13E; Wed, 18 May 2022 07:44:13 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24IETksQ027084; Wed, 18 May 2022 14:43:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=s2X7aKS1B3qNFqFNHXfey4nXV8WvfRyNdSmSs1pSdhA=; b=F7f1kErIqMMm6Oy/QYJJCeifq7HzAAzezJWo6o6hECUEU2dM9/CWKNzbBXA6cwBnrPu8 3E87/9okzG/cAudc7NFDcN70DNyfRwtrcUehaMyv/pU8WHTM2Y8ZjD6W+fbPIuH/W8No alH2jnThs1KQspeHFbqpEamZ8iPuJmEsAcXhvk/cEYPkxGf3OyMRXrraaQdIrq70C3QF 8+esJeSBEr5/pwbJwcNJLRwzaJgvB8y6CZj6NN7IV1PF6oZKDcthx8lTGXELd8lv8op9 QoRXiVRMqMxvU4FPED0hcQcFIuE0I7s/VIXkL1vfL490lIVfg8Goj2341V84x9w06hNU FQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g52m60cy6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 14:43:39 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24IEUe8f030487; Wed, 18 May 2022 14:43:38 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g52m60cww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 14:43:38 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24IEcDZT002835; Wed, 18 May 2022 14:43:36 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma06ams.nl.ibm.com with ESMTP id 3g23pjdvej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 14:43:36 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24IEgxPJ32702858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 May 2022 14:42:59 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 499E2A405C; Wed, 18 May 2022 14:43:34 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B627DA4054; Wed, 18 May 2022 14:43:32 +0000 (GMT) Received: from sig-9-65-85-166.ibm.com (unknown [9.65.85.166]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 May 2022 14:43:32 +0000 (GMT) Message-ID: <8634d4dd0813b9522f039ed211023c2c65c6f888.camel@linux.ibm.com> Subject: Re: [PATCH v4] x86/kexec: Carry forward IMA measurement log on kexec From: Mimi Zohar To: Jonathan McDowell , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" Cc: "linux-kernel@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" Date: Wed, 18 May 2022 10:43:32 -0400 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 3j1qAuAknE9Q2XYy-99AwogH-4lbo8ak X-Proofpoint-ORIG-GUID: BzPswUanOJTZocBwpcSZoufSs1cruqHx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-18_05,2022-05-17_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1011 spamscore=0 impostorscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205180087 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 2022-05-12 at 16:25 +0000, Jonathan McDowell wrote: > On kexec file load 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 Not from using "setup_data" perspective, Reviewed-by: Mimi Zohar # IMA function definitions thanks, Mimi