Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1458745
| From | David Laight <David.Laight@ACULAB.COM> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 1/7] ima: on soft reboot, restore the measurement list |
| Date | 2016-08-09 15:40 +0200 |
| Message-ID | <s4fqa-8bw-11@gated-at.bofh.it> (permalink) |
| References | <s2qpH-MZ-5@gated-at.bofh.it> <s4d4Z-6KH-15@gated-at.bofh.it> <s4eX7-7Yv-3@gated-at.bofh.it> <s4f6O-84h-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Thiago Jung Bauermann
> Sent: 09 August 2016 14:19
...
> > > > +/* Some details preceding the binary serialized measurement list */
> > > > +struct ima_kexec_hdr {
> > > > + unsigned short version;
> > > > + unsigned long buffer_size;
> > > > + unsigned long count;
> > > > +} __packed;
> > > > +
> > >
> > > Am I understanding it correctly that this structure is passed between
> > > kernels?
> > Yes, the header prefixes the measurement list, which is being passed on
> > the same computer to the next kernel. Could the architecture (eg.
> > LE/BE) change between soft re-boots?
>
> Yes. I am able to boot a BE kernel from an LE kernel with my patches.
64bit kernel to/from 32bit one? (if that makes sense on the hardware).
> Whether we want to support that or not is another question...
In which case shouldn't they be annotated with the endianness??
Also why '__packed' - guarantees sub-optimal code generation.
Much better to include explicit padding to align everything.
David
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-04 15:50 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Petko Manolov <petkan@mip-labs.com> - 2016-08-05 11:30 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-05 15:40 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Petko Manolov <petkan@mip-labs.com> - 2016-08-05 18:00 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Michael Ellerman <mpe@ellerman.id.au> - 2016-08-09 13:10 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-09 15:10 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> - 2016-08-09 15:20 +0200
RE: [PATCH 1/7] ima: on soft reboot, restore the measurement list David Laight <David.Laight@ACULAB.COM> - 2016-08-09 15:40 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-09 16:10 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-09 16:00 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-09 16:10 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Samuel Mendoza-Jonas <sam@mendozajonas.com> - 2016-08-10 01:30 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Michael Ellerman <mpe@ellerman.id.au> - 2016-08-10 05:50 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Michael Ellerman <mpe@ellerman.id.au> - 2016-08-10 20:10 +0200
Re: [Linux-ima-devel] [PATCH 1/7] ima: on soft reboot, restore the measurement list Petko Manolov <petkan@mip-labs.com> - 2016-08-10 20:30 +0200
Re: [Linux-ima-devel] [PATCH 1/7] ima: on soft reboot, restore the measurement list Petko Manolov <petkan@mip-labs.com> - 2016-08-10 22:20 +0200
RE: [Linux-ima-devel] [PATCH 1/7] ima: on soft reboot, restore the measurement list David Laight <David.Laight@ACULAB.COM> - 2016-08-10 23:20 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-08-10 20:50 +0200
Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> - 2016-08-10 20:10 +0200
csiph-web