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 E32F5C433FE for ; Fri, 11 Nov 2022 02:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbiKKC0a (ORCPT ); Thu, 10 Nov 2022 21:26:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231343AbiKKC03 (ORCPT ); Thu, 10 Nov 2022 21:26:29 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E77623A3 for ; Thu, 10 Nov 2022 18:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668133532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WaG6D9NPul5lwMcNCuIe3sGhugQZUKvnrKFJmGoro3c=; b=PWTZZynKGvfUR+JqAZVPOYCA2ZWbXYR3k49Prqqfk4ZoNFNUmD+lz54BXhMMCezCS6Cb69 pBcffh+pcDKt1wpNpRgvUns8fT7jSGgCdRZDHhfJNBa34AhNJEAvmPp6ytexH0GSEsgVxa qeTLvdloFXhwus9Nks8QNylQy/L0bGk= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-440-cWLaq9kzN8-IMj7nl41DEQ-1; Thu, 10 Nov 2022 21:25:30 -0500 X-MC-Unique: cWLaq9kzN8-IMj7nl41DEQ-1 Received: by mail-pg1-f199.google.com with SMTP id r126-20020a632b84000000b004393806c06eso1912760pgr.4 for ; Thu, 10 Nov 2022 18:25:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WaG6D9NPul5lwMcNCuIe3sGhugQZUKvnrKFJmGoro3c=; b=jaD+wQDZyt5TEhRr4wIVC+grT19LSCZLSg5LWTVbgK10ybGqZPTtAudrBYZ5VgVqG5 RU7Gb96Ig7dMWe6OIMoMJyMyTFPoPfnP9FdHXJTycGex8hIhj9ZP9Be6waMoyfqtQv++ 9XuuoEwP9v0kjbIX662qcqQ0MlYDwqfOwYAXZVHKr8EdWLz+ai9j8BiojkLmMCsz4A9z kLc5wyExbpZU0TKGieIdiNaRKg9gzWx8vkb+G1mtG9rsFUKiC1AVC1nPt+WnVn3XyjL0 q8HhxuKKKg6BxJ/wiUumsx8EGL1PzsadZkpQKCKfJpSXMOQeTDXh3Hk984KfArQ1tZf1 fK/Q== X-Gm-Message-State: ANoB5pkBJe7AustFEsZ1cqmwVapi1cmlILU0uMXQdwWhUN11jFEtxAKw Dq2Of0KIbHahnQ5tDfCqxT1evpTtF6lKYwsRXN1bg8pvkwn23FgRAhlrfIePcnl83x/b1Zbw3mi or2Qye+062YcXB2xvMNLx4Q== X-Received: by 2002:a17:902:f811:b0:187:19c4:373a with SMTP id ix17-20020a170902f81100b0018719c4373amr321317plb.163.1668133529853; Thu, 10 Nov 2022 18:25:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JE5CicYQ2l/VDcgKu1A3Opx/g/1lm/7vpkfRaW5I/+bVsxwi+MrsKOPNQCArSCBYFvx9qNQ== X-Received: by 2002:a17:902:f811:b0:187:19c4:373a with SMTP id ix17-20020a170902f81100b0018719c4373amr321304plb.163.1668133529575; Thu, 10 Nov 2022 18:25:29 -0800 (PST) Received: from localhost ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id w8-20020a1709026f0800b0018544ad1e8esm358845plk.238.2022.11.10.18.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 18:25:28 -0800 (PST) Date: Fri, 11 Nov 2022 10:21:43 +0800 From: Coiby Xu To: Michael Ellerman Cc: Stefan Berger , 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, Baoquan He Subject: Re: [PATCH v8 0/4] tpm: Preserve TPM measurement log across kexec (ppc64) Message-ID: <20221111022143.xvpi3pfwwrw4qda2@Rk> References: <20220901214610.768645-1-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220901214610.768645-1-stefanb@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Michael, Could the PowerPC tree take this patch set which resolves a PowerVM/KVM-specific issue? On Thu, Sep 01, 2022 at 05:46:06PM -0400, 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 >-- >2.35.1 > -- Best regards, Coiby