<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/libstb, branch master</title>
<subtitle>Talos™ II skiboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-skiboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-skiboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/'/>
<updated>2018-03-27T03:51:38+00:00</updated>
<entry>
<title>libstb/create-container: munmap() signature file address</title>
<updated>2018-03-27T03:51:38+00:00</updated>
<author>
<name>Cyril Bur</name>
<email>cyril.bur@au1.ibm.com</email>
</author>
<published>2018-03-19T04:54:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=3c3b809cb8ba8c440353a0f0849f8c37e5f1ca1d'/>
<id>urn:sha1:3c3b809cb8ba8c440353a0f0849f8c37e5f1ca1d</id>
<content type='text'>
I also couldn't ignore that the same function had both a void *infile
and a char *inFile. The inFile variable is clearly a filename, why not
call it that.

Fixes: CID 263054 and 263051
Signed-off-by: Cyril Bur &lt;cyril.bur@au1.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>build: use thin archives rather than incremental linking</title>
<updated>2018-03-01T02:28:39+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2018-02-10T08:42:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f6159cff5d91e5c0810d0c9285a1d2370a38e2b7'/>
<id>urn:sha1:f6159cff5d91e5c0810d0c9285a1d2370a38e2b7</id>
<content type='text'>
This changes to build system to use thin archives rather than
incremental linking for built-in.o, similar to recent change to Linux.
built-in.o is renamed to built-in.a, and is created as a thin archive
with no index, for speed and size. All built-in.a are aggregated into
a skiboot.tmp.a which is a thin archive built with an index, making it
suitable or linking. This is input into the final link.

The advantags of build size and linker code placement flexibility are
not as great with skiboot as a bigger project like Linux, but it's a
conceptually better way to build, and is more compatible with link
time optimisation in toolchains which might be interesting for skiboot
particularly for size reductions.

Size of build tree before this patch is 34.4MB, afterwards 23.1MB.

Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>libstb/secureboot: Fix logging of secure verify messages.</title>
<updated>2018-03-01T02:28:28+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-02-27T09:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f24db9e5c8c481bab13bb9739d48c46af00f9f6b'/>
<id>urn:sha1:f24db9e5c8c481bab13bb9739d48c46af00f9f6b</id>
<content type='text'>
Currently we are logging secure verify/enforce messages in PR_EMERG
level even when there is no secureboot mode enabled. So reduce the
log level to PR_ERR when secureboot mode is OFF.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>stb: Put correct label (for skiboot) into container</title>
<updated>2018-02-13T07:30:10+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2018-02-09T06:32:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b94fbeaf137c3981976699ef5dcc8cf95088413a'/>
<id>urn:sha1:b94fbeaf137c3981976699ef5dcc8cf95088413a</id>
<content type='text'>
Hostboot will expect the label field of the stb header to contain
"PAYLOAD" for skiboot or it will fail to load and run skiboot.

The failure looks something like this:
 53.40896|ISTEP 20. 1 - host_load_payload
 53.65840|secure|Secureboot Failure plid = 0x90000755, rc = 0x1E07

 53.65881|System shutting down with error status 0x1E07
 53.67547|================================================
 53.67954|Error reported by secure (0x1E00) PLID 0x90000755
 53.67560|  Container's component ID does not match expected component ID
 53.67561|  ModuleId   0x09 SECUREBOOT::MOD_SECURE_VERIFY_COMPONENT
 53.67845|  ReasonCode 0x1e07 SECUREBOOT::RC_ROM_VERIFY
 53.67998|  UserData1   : 0x0000000000000000
 53.67999|  UserData2   : 0x0000000000000000
 53.67999|------------------------------------------------
 53.68000|  Callout type             : Procedure Callout
 53.68000|  Procedure                : EPUB_PRC_HB_CODE
 53.68001|  Priority                 : SRCI_PRIORITY_HIGH
 53.68001|------------------------------------------------
 53.68002|  Callout type             : Procedure Callout
 53.68003|  Procedure                : EPUB_PRC_FW_VERIFICATION_ERR
 53.68003|  Priority                 : SRCI_PRIORITY_HIGH
 53.68004|------------------------------------------------

Reported-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Tested-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>stb: Enforce secure boot if called before libstb initialized</title>
<updated>2018-02-09T00:21:42+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2018-02-08T03:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=fd5d3fea1e540e9275207d2a9d3bb20181ca904f'/>
<id>urn:sha1:fd5d3fea1e540e9275207d2a9d3bb20181ca904f</id>
<content type='text'>
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>stb: Correctly error out when no PCR for resource</title>
<updated>2018-02-09T00:21:42+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2018-02-08T03:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=5cb93cd26e195479695be1aadf4baff9611fd243'/>
<id>urn:sha1:5cb93cd26e195479695be1aadf4baff9611fd243</id>
<content type='text'>
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>libstb: fix failure of calling trusted measure without STB initialization.</title>
<updated>2018-02-09T00:21:42+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-02-06T02:16:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b772e1132cd51368fab686ce4dd60f3850cfbbfb'/>
<id>urn:sha1:b772e1132cd51368fab686ce4dd60f3850cfbbfb</id>
<content type='text'>
When we load a flash resource during OPAL init, STB calls trusted measure
to measure the given resource. There is a situation when a flash gets loaded
before STB initialization then trusted measure cannot measure properly.

So this patch fixes this issue by calling trusted measure only if the
corresponding trusted init was done.

The ideal fix is to make sure STB init done at the first place during init
and then do the loading of flash resources, by that way STB can properly
verify and measure the all resources.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>libstb: fix failure of calling cvc verify without STB initialization.</title>
<updated>2018-02-09T00:21:42+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-02-06T02:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=2109b81d9f78c59b4099b625e18d34a66baa1b71'/>
<id>urn:sha1:2109b81d9f78c59b4099b625e18d34a66baa1b71</id>
<content type='text'>
Currently in OPAL init time at various stages we are loading various
PNOR partition containers from the flash device. When we load a flash
resource STB calls the CVC verify and trusted measure(sha512) functions.
So when we have a flash resource gets loaded before STB initialization,
then cvc verify function fails to start the verify and enforce the boot.

Below is one of the example failure where our VERSION partition gets
loading early in the boot stage without STB initialization done.

This is with secure mode off.
STB: VERSION NOT VERIFIED, invalid param. buf=0x305ed930, len=4096 key-hash=0x0 hash-size=0

In the same code path when secure mode is on, the boot process will abort.

So this patch fixes this issue by calling cvc verify only if we have
STB init was done.

And also we need a permanent fix in init path to ensure STB init gets
done at first place and then start loading all other flash resources.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>libstb/tpm_chip: Add missing new line to print messages.</title>
<updated>2018-02-08T03:22:22+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-02-07T18:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=7912f9750bfcb77d463d4854328c6a470516d8b0'/>
<id>urn:sha1:7912f9750bfcb77d463d4854328c6a470516d8b0</id>
<content type='text'>
Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>libstb: increase the log level of verify/measure messages to PR_NOTICE.</title>
<updated>2018-02-08T03:22:22+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-02-07T18:31:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b90b08fc2f9a9e6b54be8f50b804dedb8a52f1e8'/>
<id>urn:sha1:b90b08fc2f9a9e6b54be8f50b804dedb8a52f1e8</id>
<content type='text'>
Currently libstb logs the verify and hash caluculation messages in
PR_INFO level. So when there is a secure boot enforcement happens
in loading last flash resource(Ex: BOOTKERNEL), the previous verify
and measure messages are not logged to console, which is not clear
to the end user which resource is verified and measured.
So this patch fixes this by increasing the log level to PR_NOTICE.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
