[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2
From: |
Gary Lin |
Subject: |
Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2 |
Date: |
Wed, 21 Feb 2024 16:10:14 +0800 |
On Thu, Feb 08, 2024 at 08:58:43PM +0100, Daniel Kiper wrote:
> Hey,
>
> Adding Patrick...
>
> On Mon, Feb 05, 2024 at 03:39:33PM +0800, Gary Lin wrote:
> > GIT repo for v9: https://github.com/lcp/grub2/tree/tpm2-unlock-v9
> >
> > This patch series is based on "Automatic TPM Disk Unlock"(*1) posted by
> > Hernan Gatta to introduce the key protector framework and TPM2 stack
> > to GRUB2, and this could be a useful feature for the systems to
> > implement full disk encryption.
>
> Sadly this patch set have many issues...
>
> The git complains in the following way...
>
> Applying: asn1_test: test module for libtasn1
> .git/rebase-apply/patch:1374: new blank line at EOF.
> warning: 1 line adds whitespace errors.
Will be fixed in v10.
> Applying: libtasn1: Add the documentation
> .git/rebase-apply/patch:90: trailing whitespace.
> .git/rebase-apply/patch:92: trailing whitespace.
> .git/rebase-apply/patch:99: trailing whitespace.
> .git/rebase-apply/patch:102: trailing whitespace.
> .git/rebase-apply/patch:108: trailing whitespace.
> warning: squelched 80 whitespace errors
> warning: 85 lines add whitespace errors.
>
Those whitespaces naturally exist in the two 'patch' files added in this
commit, so it's hard to avoid the warning.
> The developers manual does not build due to following errors...
>
> grub-dev.texi:616: misplaced {
> grub-dev.texi:616: misplaced }
> grub-dev.texi:617: misplaced {
> grub-dev.texi:617: misplaced }
> grub-dev.texi:580: warning: node `libtasn1' is next for `minilzo' in
> sectioning but not in menu
> grub-dev.texi:599: warning: unreferenced node `libtasn1'
> grub-dev.texi:599: warning: node `minilzo' is prev for `libtasn1' in
> sectioning but not in menu
> grub-dev.texi:599: warning: node `Updating External Code' is up for
> `libtasn1' in sectioning but not in menu
> grub-dev.texi:499: node `Updating External Code' lacks menu item for
> `libtasn1' despite being its Up target
>
Will be fixed in v10.
> And I have attached the Coverity report. All issues reported there have
> to be fixed. If you cannot fix an issue you have to explain why you
> cannot do that and what is potential impact on the code stability,
> security, etc.
>
I'm working on that and will fix them in v10.
> Please do not forget to check code which you add adhere to GRUB coding
> style [1]. Good example is in grub-core/kern/efi/sb.c too. Of course
> this requirement does not apply to the libs which you import.
>
> Additionally, please CC patrick.colp@oracle.com next time. He is
> interested in this patch set development.
>
Added Patrick to my patch sending script.
Thanks,
Gary Lin
> Daniel
>
> [1]
> https://www.gnu.org/software/grub/manual/grub-dev/grub-dev.html#Coding-style
- [PATCH v9 14/22] tpm2: Add more marshal/unmarshal functions, (continued)
- [PATCH v9 14/22] tpm2: Add more marshal/unmarshal functions, Gary Lin, 2024/02/05
- [PATCH v9 15/22] tpm2: Implement more TPM2 commands, Gary Lin, 2024/02/05
- [PATCH v9 16/22] tpm2: Support authorized policy, Gary Lin, 2024/02/05
- [PATCH v9 17/22] tpm2: Implement NV index, Gary Lin, 2024/02/05
- [PATCH v9 18/22] cryptodisk: Fallback to passphrase, Gary Lin, 2024/02/05
- [PATCH v9 19/22] cryptodisk: wipe out the cached keys from protectors, Gary Lin, 2024/02/05
- [PATCH v9 21/22] tpm2: Enable tpm2 module for grub-emu, Gary Lin, 2024/02/05
- [PATCH v9 20/22] diskfilter: look up cryptodisk devices first, Gary Lin, 2024/02/05
- [PATCH v9 22/22] tests: Add tpm2_test, Gary Lin, 2024/02/05
- Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2, Daniel Kiper, 2024/02/08
- Re: [PATCH v9 00/22] Automatic Disk Unlock with TPM2,
Gary Lin <=