public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: Gerd Hoffmann <kraxel@redhat.com>, Stefan Berger <stefanb@linux.ibm.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"marcandre.lureau@redhat.com" <marcandre.lureau@redhat.com>,
	"Wang, Jian J" <jian.j.wang@intel.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>
Subject: Re: [edk2-devel] [PATCH v2 3/4] OvmfPkg: Enable physical presence interface for TPM 1.2
Date: Mon, 8 Nov 2021 12:13:11 +0000	[thread overview]
Message-ID: <PH0PR11MB48853E8183F418CDD98EB6528C919@PH0PR11MB4885.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20211108115754.tm5cfewgrzyvptet@sirius.home.kraxel.org>

The PPFlag variable MUST to be locked to prevent malicious modification.
Otherwise, anyone can change the PP configuration without confirmation from end user.

Thank you
Yao Jiewen


> -----Original Message-----
> From: Gerd Hoffmann <kraxel@redhat.com>
> Sent: Monday, November 8, 2021 7:58 PM
> To: Stefan Berger <stefanb@linux.ibm.com>
> Cc: devel@edk2.groups.io; marcandre.lureau@redhat.com; Yao, Jiewen
> <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; Ard Biesheuvel
> <ardb+tianocore@kernel.org>; Justen, Jordan L <jordan.l.justen@intel.com>
> Subject: Re: [edk2-devel] [PATCH v2 3/4] OvmfPkg: Enable physical presence
> interface for TPM 1.2
> 
> On Sat, Nov 06, 2021 at 09:19:33PM -0400, Stefan Berger wrote:
> >
> > On 11/5/21 08:17, Gerd Hoffmann wrote:
> > > On Tue, Nov 02, 2021 at 11:49:09AM -0400, Stefan Berger wrote:
> > > > Enable the physical presence interface for TPM 1.2. It is required for the
> > > > TPM 1.2 menu to work.
> > > >
> > > > The changes to DxeTcgPhysicalPresenceLib.c are due to the device we are
> using
> > > > in QEMU for presenting the supported PPI commands and results to the OS
> via
> > > > ACPI as well as to store the PPI opcode to execute.
> > > Fails to build for microvm.
> > >
> > > > +
> TcgPhysicalPresenceLib|OvmfPkg/Library/TcgPhysicalPresenceLibNull/DxeTcgPh
> ysicalPresenceLib.inf
> > > I guess this line is needed just next to Tcg2PhysicalPresenceLibNull
> > > line?
> > > (same problem on OvmfXen.dsc)
> >
> > Fixed in v3 for microvm and Xen and Bhyve also.
> >
> > You happen to know about the variable lock issue? Why does the variable need
> > to be locked?
> 
> No clue, sorry.  That's a topic I have to learn about myself.  Noticed
> the variable locking deprecation warning in the ovmf boot log too, but
> havn't found the time yet to look into that.
> 
> take care,
>   Gerd


  reply	other threads:[~2021-11-08 12:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 15:49 [PATCH v2 0/4] Add support for TPM 1.2 Physical Presence Interface and Menu Stefan Berger
2021-11-02 15:49 ` [PATCH v2 1/4] SecurityPkg: Store physical presence code by submitting to PreOS func Stefan Berger
2021-11-02 15:49 ` [PATCH v2 2/4] OvmfPkg: Copy TPM 1.2 DxeTcgPhysicalPresenceLib.c from SecuityPkg Stefan Berger
2021-11-02 15:49 ` [PATCH v2 3/4] OvmfPkg: Enable physical presence interface for TPM 1.2 Stefan Berger
2021-11-05 12:17   ` Gerd Hoffmann
2021-11-07  1:19     ` [edk2-devel] " Stefan Berger
2021-11-08 11:57       ` Gerd Hoffmann
2021-11-08 12:13         ` Yao, Jiewen [this message]
2021-11-08 14:43           ` Stefan Berger
     [not found]           ` <16B59953A0045591.32008@groups.io>
2021-11-08 20:53             ` Stefan Berger
2021-11-02 15:49 ` [PATCH v2 4/4] OvmfPkg: add TPM 1.2 config menu Stefan Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH0PR11MB48853E8183F418CDD98EB6528C919@PH0PR11MB4885.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox