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 7D25AC43334 for ; Tue, 14 Jun 2022 16:13:24 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=99rmW/BZqZJ5MgH/M9rfmN56d8IkRbGbnKuGgC9AFV8=; b=oqBg9zvaWqQ3/r yGnM6gyQ7Fudp3O9b7DZPz2F1AspBlUnW+h2ajn2RzycqYZ60Vf14Z+06uOMJfi9rb++JOazcFWFR vNozz7ewFAVsD0CwWJP0Oq4m6hMNOdBdQHGdaTY/yt94cItKVMGCnFlbXDNXWCkSDBbOcDdBOG0c1 ukV25WcuBUTm6iu1YVW9CZYBG+h21/RJYFTcFJXcEUsBMRAkyju+sY89FmCl7kwmbwJ6XGefeX3NS fPaPGSERxJKuMAKaX3F5q9Q+7hEyCOCI3NdkFdoO1UXxsRfW4q5pKhb4Y8mGgdHSYaT1+2h0Xik/s RivoB3b3RjTZ+YEJaSDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o19AL-00AHYl-Eh; Tue, 14 Jun 2022 16:13:17 +0000 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5] helo=mx0a-001b2d01.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o19AG-00AHXh-6G for kexec@lists.infradead.org; Tue, 14 Jun 2022 16:13:14 +0000 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 25EFxhjL007571; Tue, 14 Jun 2022 16:13:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=E78IG4cRbqLow3MYIxw0pcZ+kMx5wM5SllcPS4iSq24=; b=Ksn/u2uwy/fmZn8VCZR/kz1ygivY8+/fyJM5PMbokDnBmNWyH/kg601xE7UaFvsViJDa D5TJo6iD40I+PSq7n3Q3EqO5tqBwnS599RcBcV/3bIGJ28U2Y0Fpbz5FVpEih8sJp78H yaNkroYQPoKDEiq+ey+8XB/cVyxtkib6TJD9zSvcV7Cd9x5tE7SK7+HLmlkBqlkmc5f/ CnY+eAfOLJaJ4O9XUbtM5hL1MHs0tDWUkPuY9tEhOOA1zh16auQkMkBExQhuS5L7a2XG xcr9DqX5TlsnP/c2rp7Oit5D/eNInFpxVBgURRAvENwIq7q9hpIeTjUy7TkpbTHIi/wC xA== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gpbuqhh9u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jun 2022 16:13:07 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25EG5chv012326; Tue, 14 Jun 2022 16:13:06 GMT Received: from b03cxnp07027.gho.boulder.ibm.com (b03cxnp07027.gho.boulder.ibm.com [9.17.130.14]) by ppma04dal.us.ibm.com with ESMTP id 3gmjpa2qfh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jun 2022 16:13:06 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25EGD4on22610366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jun 2022 16:13:04 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D1726E050; Tue, 14 Jun 2022 16:13:04 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CF69C6E053; Tue, 14 Jun 2022 16:13:03 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 14 Jun 2022 16:13:03 +0000 (GMT) From: Stefan Berger To: kexec@lists.infradead.org, devicetree@vger.kernel.org Cc: nayna@linux.ibm.com, nasastry@in.ibm.com, Stefan Berger Subject: [PATCH 0/3] tpm: Preserve TPM measurement log across kexec Date: Tue, 14 Jun 2022 12:12:55 -0400 Message-Id: <20220614161258.1741427-1-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: DLftwog53KzbJVAKR2rJ06seRAV5hC6b X-Proofpoint-ORIG-GUID: DLftwog53KzbJVAKR2rJ06seRAV5hC6b X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-14_06,2022-06-13_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 mlxlogscore=777 suspectscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206140062 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220614_091312_624518_68431AE1 X-CRM114-Status: GOOD ( 15.67 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org The current of-tree driver does not currently preserve the vTPM 1.2 and vTPM 2.0 measurement log across a kexec. This series fixes this for the kexec_file_load() syscall using the flattened device tree (fdt) to carry the measurement log's buffer across kexec. Stefan Stefan Berger (3): of: kexec: Refactor IMA buffer related functions to make them reusable tpm/kexec: Duplicate TPM measurement log in of-tree for kexec tpm: of: Call of_tpm_get_sml_parameters() to get base and size of log drivers/char/tpm/eventlog/of.c | 31 +--- drivers/of/device.c | 24 +++ drivers/of/kexec.c | 284 +++++++++++++++++++++++++++++---- include/linux/kexec.h | 6 + include/linux/of.h | 5 + include/linux/of_device.h | 3 + kernel/kexec_file.c | 6 + 7 files changed, 298 insertions(+), 61 deletions(-) -- 2.35.1 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec