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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E866BC6FA86 for ; Mon, 12 Sep 2022 13:01:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbiILNBT (ORCPT ); Mon, 12 Sep 2022 09:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiILNBO (ORCPT ); Mon, 12 Sep 2022 09:01:14 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B6820F57; Mon, 12 Sep 2022 06:01:13 -0700 (PDT) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28CBtgMg030115; Mon, 12 Sep 2022 13:00:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=qMiB5o6S9kg5JxvAdo4/TOmyv7/p5G29pPyRmWvJdzg=; b=nH2qaTd8wIeOU8VULuowa+Njcnv9TwH4RxFZ0mo+AqAiYx4kf7aIDj5mylYien9v+1VA agE/Y4Pg1x/Ax1aVsKz9aJ7w8Qgx0Wrjp2/cyHrxvYfZoELobEGhahSKwtG1RIuTCNpp rQOKfBk27Rr4PBIMuH+gBMwLNCKxaPrBQ0rm6UvSHWKnnSrf+bdTIGIRXP5fBDV/GvaF aBDfshOlj9OO4dNOpLpGMwkBBgYfDK+gqM4N4hV+DvVPovJcrHv69QIwBd8pg3v4z7pS JDBOm6H+VDuD2LYpNfzEpF2Frp4iCZfcGLQiGvunHXCjcbzUvyPKrkRHX93xHPGCmfpS 7Q== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jj0kvht1p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Sep 2022 13:00:51 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28CCodle014458; Mon, 12 Sep 2022 13:00:48 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma02dal.us.ibm.com with ESMTP id 3jgj79gchy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Sep 2022 13:00:48 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28CD0lXT62587292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Sep 2022 13:00:47 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96EB1AC05E; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C50EAC059; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Message-ID: Date: Mon, 12 Sep 2022 09:00:47 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v8 0/4] tpm: Preserve TPM measurement log across kexec (ppc64) Content-Language: en-US To: Rob Herring Cc: nayna@linux.ibm.com, nasastry@in.ibm.com, mpe@ellerman.id.au, "kexec@lists.infradead.org" , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , linux-integrity References: <20220901214610.768645-1-stefanb@linux.ibm.com> From: Stefan Berger In-Reply-To: <20220901214610.768645-1-stefanb@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: G-yXCW8Yz-bo8gyXPoEYlv6_u612-ggY X-Proofpoint-ORIG-GUID: G-yXCW8Yz-bo8gyXPoEYlv6_u612-ggY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-12_08,2022-09-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=915 mlxscore=0 phishscore=0 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209120041 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, can you take this series in your tree? Regards, Stefan On 9/1/22 17:46, Stefan Berger wrote: > The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and > vTPM 2.0 measurement logs across a kexec on PowerVM and PowerKVM. This > series fixes this for the kexec_file_load() syscall using the flattened > device tree (fdt) to carry the TPM measurement log's buffer across kexec. > > Stefan > > v8: > - Added Jarkko's, Coiby's, and Rob's tags > - Rebase on v6.0-rc3 that absorbed 2 already upstreamed patches > > v7: > - Added Nageswara's Tested-by tags > - Added back original comment to inline function and removed Jarkko's R-b tag > > v6: > - Add __init to get_kexec_buffer as suggested by Jonathan > - Fixed issue detected by kernel test robot > > v5: > - Rebased on 1 more patch that would otherwise create merge conflicts > > v4: > - Rebased on 2 patches that would otherwise create merge conflicts; > posting these patches in this series with several tags removed so > krobot can test the series already > - Changes to individual patches documented in patch descripitons > > v3: > - Moved TPM Open Firmware related function to drivers/char/tpm/eventlog/tpm_of.c > > v2: > - rearranged patches > - fixed compilation issues for x86 > > Palmer Dabbelt (1): > drivers: of: kexec ima: Support 32-bit platforms > > Stefan Berger (3): > tpm: of: Make of-tree specific function commonly available > of: kexec: Refactor IMA buffer related functions to make them reusable > tpm/kexec: Duplicate TPM measurement log in of-tree for kexec > > drivers/char/tpm/eventlog/of.c | 31 +-- > drivers/of/kexec.c | 336 ++++++++++++++++++++++++++++----- > include/linux/kexec.h | 6 + > include/linux/of.h | 9 +- > include/linux/tpm.h | 36 ++++ > kernel/kexec_file.c | 6 + > 6 files changed, 346 insertions(+), 78 deletions(-) > > > base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5 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 6706DC6FA8A for ; Mon, 12 Sep 2022 13:01:22 +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:In-Reply-To:From:References:Cc:To:Subject: MIME-Version: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=aoeBJ9Ir25X1hcKOlQ1stzx4YPnLL3AfJr8dQHJgTtU=; b=rFCTyBIOkUQrfn h/Mk+8J4H/TOzr33nhfC5yjjv/go9nHl+IOMmjZlUHF+5OAIfAHbGOiAYVDASouPFKd+0VPLVCvIB V4qf1Yvjf9UWKyyTCHzUlv6tC1+E0rykIO/aUz5KNwpFoAo47u/OwoyFrIiYE+iNye0ziekCn/pjV tsSYGlb8v0Gy98AEfymsLdvUKwrqbWWun+ZQ1bkx7RjYpVe3nTIbq6dCw+p/QN/isgMzGFT5ItCMY suPwLKUVkD9KR7tXmgg5gUgZF8UZxvbxpok/NvVYDi1aftOaa7T4Ung4uSc0MP2KStJ5nvLN1Lg2Z LRmxS59Qau1V0WIMoWrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXj3r-009zpy-9U; Mon, 12 Sep 2022 13:01:15 +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 1oXj3n-009zly-Fg for kexec@lists.infradead.org; Mon, 12 Sep 2022 13:01:13 +0000 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28CBtgMg030115; Mon, 12 Sep 2022 13:00:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=qMiB5o6S9kg5JxvAdo4/TOmyv7/p5G29pPyRmWvJdzg=; b=nH2qaTd8wIeOU8VULuowa+Njcnv9TwH4RxFZ0mo+AqAiYx4kf7aIDj5mylYien9v+1VA agE/Y4Pg1x/Ax1aVsKz9aJ7w8Qgx0Wrjp2/cyHrxvYfZoELobEGhahSKwtG1RIuTCNpp rQOKfBk27Rr4PBIMuH+gBMwLNCKxaPrBQ0rm6UvSHWKnnSrf+bdTIGIRXP5fBDV/GvaF aBDfshOlj9OO4dNOpLpGMwkBBgYfDK+gqM4N4hV+DvVPovJcrHv69QIwBd8pg3v4z7pS JDBOm6H+VDuD2LYpNfzEpF2Frp4iCZfcGLQiGvunHXCjcbzUvyPKrkRHX93xHPGCmfpS 7Q== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jj0kvht1p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Sep 2022 13:00:51 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28CCodle014458; Mon, 12 Sep 2022 13:00:48 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma02dal.us.ibm.com with ESMTP id 3jgj79gchy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Sep 2022 13:00:48 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28CD0lXT62587292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Sep 2022 13:00:47 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96EB1AC05E; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C50EAC059; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 12 Sep 2022 13:00:47 +0000 (GMT) Message-ID: Date: Mon, 12 Sep 2022 09:00:47 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v8 0/4] tpm: Preserve TPM measurement log across kexec (ppc64) Content-Language: en-US To: Rob Herring Cc: nayna@linux.ibm.com, nasastry@in.ibm.com, mpe@ellerman.id.au, "kexec@lists.infradead.org" , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , linux-integrity References: <20220901214610.768645-1-stefanb@linux.ibm.com> From: Stefan Berger In-Reply-To: <20220901214610.768645-1-stefanb@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: G-yXCW8Yz-bo8gyXPoEYlv6_u612-ggY X-Proofpoint-ORIG-GUID: G-yXCW8Yz-bo8gyXPoEYlv6_u612-ggY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-12_08,2022-09-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=915 mlxscore=0 phishscore=0 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209120041 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220912_060112_025863_233579D9 X-CRM114-Status: GOOD ( 23.69 ) 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 Hi Rob, can you take this series in your tree? Regards, Stefan On 9/1/22 17:46, Stefan Berger wrote: > The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and > vTPM 2.0 measurement logs across a kexec on PowerVM and PowerKVM. This > series fixes this for the kexec_file_load() syscall using the flattened > device tree (fdt) to carry the TPM measurement log's buffer across kexec. > > Stefan > > v8: > - Added Jarkko's, Coiby's, and Rob's tags > - Rebase on v6.0-rc3 that absorbed 2 already upstreamed patches > > v7: > - Added Nageswara's Tested-by tags > - Added back original comment to inline function and removed Jarkko's R-b tag > > v6: > - Add __init to get_kexec_buffer as suggested by Jonathan > - Fixed issue detected by kernel test robot > > v5: > - Rebased on 1 more patch that would otherwise create merge conflicts > > v4: > - Rebased on 2 patches that would otherwise create merge conflicts; > posting these patches in this series with several tags removed so > krobot can test the series already > - Changes to individual patches documented in patch descripitons > > v3: > - Moved TPM Open Firmware related function to drivers/char/tpm/eventlog/tpm_of.c > > v2: > - rearranged patches > - fixed compilation issues for x86 > > Palmer Dabbelt (1): > drivers: of: kexec ima: Support 32-bit platforms > > Stefan Berger (3): > tpm: of: Make of-tree specific function commonly available > of: kexec: Refactor IMA buffer related functions to make them reusable > tpm/kexec: Duplicate TPM measurement log in of-tree for kexec > > drivers/char/tpm/eventlog/of.c | 31 +-- > drivers/of/kexec.c | 336 ++++++++++++++++++++++++++++----- > include/linux/kexec.h | 6 + > include/linux/of.h | 9 +- > include/linux/tpm.h | 36 ++++ > kernel/kexec_file.c | 6 + > 6 files changed, 346 insertions(+), 78 deletions(-) > > > base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec