Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473852

Re: [PATHC v2 0/9] ima: carry the measurement list across kexec

From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATHC v2 0/9] ima: carry the measurement list across kexec
Date 2016-08-31 23:00 +0200
Message-ID <sckM2-7eb-25@gated-at.bofh.it> (permalink)
References <sc00V-2wz-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 30 Aug 2016 18:40:02 -0400 Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:

> The TPM PCRs are only reset on a hard reboot.  In order to validate a
> TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list
> of the running kernel must be saved and then restored on the subsequent
> boot, possibly of a different architecture.
> 
> The existing securityfs binary_runtime_measurements file conveniently
> provides a serialized format of the IMA measurement list. This patch
> set serializes the measurement list in this format and restores it.
> 
> Up to now, the binary_runtime_measurements was defined as architecture
> native format.  The assumption being that userspace could and would
> handle any architecture conversions.  With the ability of carrying the
> measurement list across kexec, possibly from one architecture to a
> different one, the per boot architecture information is lost and with it
> the ability of recalculating the template digest hash.  To resolve this
> problem, without breaking the existing ABI, this patch set introduces
> the boot command line option "ima_canonical_fmt", which is arbitrarily
> defined as little endian.
> 
> The need for this boot command line option will be limited to the
> existing version 1 format of the binary_runtime_measurements.
> Subsequent formats will be defined as canonical format (eg. TPM 2.0
> support for larger digests).
> 
> This patch set pre-req's Thiago Bauermann's "kexec_file: Add buffer
> hand-over for the next kernel" patch set. 
> 
> These patches can also be found in the next-kexec-restore branch of:
> git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git

I'll merge these into -mm to get some linux-next exposure.  I don't
know what your upstream merge planes will be?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATHC v2 0/9] ima: carry the measurement list across kexec  Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 6/9] ima: store the builtin/custom template definitions in a list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 1/9] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 8/9] ima: define a canonical binary_runtime_measurements list format Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 3/9] ima: maintain memory size needed for serializing the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 4/9] ima: serialize the binary_runtime_measurements Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  [PATHC v2 5/9] ima: on soft reboot, save the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
    Re: [PATHC v2 5/9] ima: on soft reboot, save the measurement list Dave Young <dyoung@redhat.com> - 2016-09-01 04:00 +0200
      Re: [PATHC v2 5/9] ima: on soft reboot, save the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-09-02 15:30 +0200
  [PATHC v2 2/9] ima: permit duplicate measurement list entries Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-31 00:50 +0200
  Re: [PATHC v2 0/9] ima: carry the measurement list across kexec Andrew Morton <akpm@linux-foundation.org> - 2016-08-31 23:00 +0200
    Re: [PATHC v2 0/9] ima: carry the measurement list across kexec Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-09-01 01:00 +0200

csiph-web