Re: [PATCH 00/17] KEYS: PKCS#7 and PE file signature checking for kexec
From: Vivek Goyal
Date: Wed Jul 09 2014 - 12:22:42 EST
On Wed, Jul 09, 2014 at 06:03:49PM +0200, Borislav Petkov wrote:
> Hi David,
> On Wed, Jul 09, 2014 at 04:15:25PM +0100, David Howells wrote:
> > David Howells (16):
> > X.509: Add bits needed for PKCS#7
> > X.509: Export certificate parse and free functions
> > PKCS#7: Implement a parser [RFC 2315]
> > PKCS#7: Digest the data in a signed-data message
> > PKCS#7: Find the right key in the PKCS#7 key list and verify the signature
> > PKCS#7: Verify internal certificate chain
> > PKCS#7: Find intersection between PKCS#7 message and known, trusted keys
> > PKCS#7: Provide a key type for testing PKCS#7
> > KEYS: X.509: Fix a spelling mistake
> > Provide PE binary definitions
> > pefile: Parse a PE binary to find a key and a signature contained therein
> > pefile: Strip the wrapper off of the cert data block
> > pefile: Parse the presumed PKCS#7 content of the certificate blob
> > pefile: Parse the "Microsoft individual code signing" data blob
> > pefile: Digest the PE binary and compare to the PKCS#7 data
> > pefile: Validate PKCS#7 trust chain
> > Vivek Goyal (1):
> > pefile: Handle pesign using the wrong OID
> let me see if I get this straight:
> this current submission is supposed to replace
> and Vivek's one:
> (which added those parsers to arch/x86/kernel/ - not a good place anyway.)
> The kexec bits with the sig verif will come ontop, it seems. What's the
> story guys?
[CC akpm and hpa]
Yes, this posting will replace above two postings as you said. David
howells anyway did all the original work. So he has refreshed all the
paches, fixed things, put them in right order and reposted.
These are the core patches required to make signature verification work
in bzImage. We just need one more kexec patch on top which can call into
pefile logic to verify signature of file.
And that patch is sitting right now here.
I am planning to post this single patch for review with explicit mention
to david howells's posting.
So now we have 3 pieces.
- Kexec new system call patches in -mm tree.
- PKCS7 and PEFILE signature verification patches as posted in this
- Final kexec patch which makes use of PEFILE function to do singature
verification. I will post that patch soon.
I am hoping that last patch can go through david howells tree as it is
dependent on PKCS7 and PEFILE changes.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/