<feed xmlns='http://www.w3.org/2005/Atom'>
<title>efi-boot-shim.git/fallback.c, branch Release_3.0.0</title>
<subtitle> (mirror of https://github.com/vyos/efi-boot-shim.git)
</subtitle>
<id>https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=Release_3.0.0</id>
<link rel='self' href='https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=Release_3.0.0'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/'/>
<updated>2015-06-30T18:19:57+00:00</updated>
<entry>
<title>Improve our debuginfo path print</title>
<updated>2015-06-30T18:19:57+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2015-06-30T17:24:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=70ce2c420484ef964b6443c102bfd78c29965e10'/>
<id>urn:sha1:70ce2c420484ef964b6443c102bfd78c29965e10</id>
<content type='text'>
Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Add a conditional point for a debugger to attach.</title>
<updated>2015-06-29T18:41:21+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2015-06-20T16:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=a0319607507d40f72322c2bdc5a6f8a322864552'/>
<id>urn:sha1:a0319607507d40f72322c2bdc5a6f8a322864552</id>
<content type='text'>
Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Fix length of allocated buffer for boot option comparison.</title>
<updated>2015-04-13T23:55:25+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2015-02-25T18:45:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=6b2510522f92026dc17e1c5508bbfab935741012'/>
<id>urn:sha1:6b2510522f92026dc17e1c5508bbfab935741012</id>
<content type='text'>
The following commit:

  commit 4aac8a1179e160397d7ef8f1e3232cfb4f3373d6
  Author: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
  Date:   Thu Mar 6 10:57:02 2014 +0800

    [fallback] Fix the data size for boot option comparison

corrected the data size used for comparison, but also reduced the
allocation so it doesn't include the trailing UTF16LE '\0\0' at the
end of the string, with the result that the trailer of the buffer
containing the string is overwritten, which OVMF detects as memory
corruption.

Increase the size of the storage buffer in a few places to correct
this problem.

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
Cc: Laszlo Ersek &lt;lersek@redhat.com&gt;
Cc: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>fallback: Fix comparison between signed and unsigned in debugging code.</title>
<updated>2015-04-13T23:55:25+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2015-02-25T18:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=90c65f72f882c2acd7f20cd59a5156aa63f7f425'/>
<id>urn:sha1:90c65f72f882c2acd7f20cd59a5156aa63f7f425</id>
<content type='text'>
fallback.c: In function ‘update_boot_order’:
fallback.c:334:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  for (j = 0 ; j &lt; size / sizeof (CHAR16); j++)
                   ^
fallback.c: In function ‘add_to_boot_list’:
fallback.c:402:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  for (i = 0; i &lt; s; i++) {
                  ^

Signed-off-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Try to boot the first boot option anyway</title>
<updated>2014-05-13T17:30:07+00:00</updated>
<author>
<name>Gary Ching-Pang Lin</name>
<email>glin@suse.com</email>
</author>
<published>2014-03-05T10:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=0ba09477afac58ef2eadc7311440e695e6250029'/>
<id>urn:sha1:0ba09477afac58ef2eadc7311440e695e6250029</id>
<content type='text'>
Some UEFI implementations never care the boot options, so the
restored boot options could be just ignored and this results in
endless reboot. To avoid this situation, this commit makes
fallback.efi to load the first matched boot option even if there
is no boot option to be restored. It may not be perfect, but at
least the bootloader is loaded...

Signed-off-by: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Fix the data size for boot option comparison</title>
<updated>2014-05-13T17:24:12+00:00</updated>
<author>
<name>Gary Ching-Pang Lin</name>
<email>glin@suse.com</email>
</author>
<published>2014-03-06T02:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=4aac8a1179e160397d7ef8f1e3232cfb4f3373d6'/>
<id>urn:sha1:4aac8a1179e160397d7ef8f1e3232cfb4f3373d6</id>
<content type='text'>
Signed-off-by: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Avoid duplicate old BootOrder</title>
<updated>2014-05-13T17:23:41+00:00</updated>
<author>
<name>Gary Ching-Pang Lin</name>
<email>glin@suse.com</email>
</author>
<published>2014-03-06T03:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=382a0b66e6c06ccf6775e3c05d5f9ce5f0eab5db'/>
<id>urn:sha1:382a0b66e6c06ccf6775e3c05d5f9ce5f0eab5db</id>
<content type='text'>
set_boot_order() already copies the old BootOrder to the variable,
bootorder. Besides, we can adjust BootOrder when adding the newly
generated boot option. So, we don't have to copy the old one again
in update_boot_order(). This avoid the duplicate entries in BootOrder.

Signed-off-by: Gary Ching-Pang Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>additional bounds-checking on section sizes</title>
<updated>2014-04-11T18:41:22+00:00</updated>
<author>
<name>Kees Cook</name>
<email>kees@outflux.net</email>
</author>
<published>2012-12-03T23:52:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=5495694c043de510aaf8ff5dcbe17b6547794083'/>
<id>urn:sha1:5495694c043de510aaf8ff5dcbe17b6547794083</id>
<content type='text'>
This adds additional bounds-checking on the section sizes. Also adds
-Wsign-compare to the Makefile and replaces some signed variables with
unsigned counteparts for robustness.

Signed-off-by: Kees Cook &lt;kees@ubuntu.com&gt;
</content>
</entry>
<entry>
<title>[fallback] Attempt to re-use existing entries when possible.</title>
<updated>2014-01-31T15:31:10+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2014-01-31T15:31:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=894a2738d6c843a7b51245fb92bb2f835901e613'/>
<id>urn:sha1:894a2738d6c843a7b51245fb92bb2f835901e613</id>
<content type='text'>
Some firmwares seem to ignore our boot entries and put their fallback
entries back on top.  Right now that results in a lot of boot entries
for our stuff, a la https://bugzilla.redhat.com/show_bug.cgi?id=995834 .

Instead of that happening, if we simply find existing entries that match
the entry we would create and move them to the top of the boot order,
the machine will continue to operate in failure mode (which we can't
avoid), but at least we won't create thousands of extra entries.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>[fallback] For HD() device paths, use just the media node and later.</title>
<updated>2014-01-31T15:30:36+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2014-01-31T15:30:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=dfd6c73a212f8cf6b32ce74807de9a08a87f0b79'/>
<id>urn:sha1:dfd6c73a212f8cf6b32ce74807de9a08a87f0b79</id>
<content type='text'>
UEFI 2.x section 3.1.2 provides for "short-form device path", where the
first element specified is a "hard drive media device path", so that you
can move a disk around on different buses without invalidating your
device path.  Fallback has not been using this option, though in most
cases efibootmgr has.

Note that we still keep the full device path, because LoadImage()
isn't necessarily the layer where HD() works - one some systems BDS is
responsible for resolving the full path and passes that to LoadImage()
instead.  So we have to do LoadImage() with the full path.
</content>
</entry>
</feed>
