[grub] update GRUB 2.04 core.img for Ubuntu 20.10 support

* GRUB have cherry-picked patches from the "BootHole" vulnerability fix at
  https://lists.gnu.org/archive/html/grub-devel/2020-07/msg00034.html and
  have applied them to their 2.04 GRUB loader.
* This results in breakage with "error: symbol 'grub_calloc' not found" when
  using the release GRUB 2.04 version of core.img.
* Therefore, we too cherry-picked some patches to apply on top of GRUB 2.04
  release to make our core.img compatible with Ubuntu 20.10.
* Closes #1616
* Also increase the maximum write stride for ms-sys to 64 KB (required to
  write the GRUB 2.05 bootloader which is larger than 32 KB) and update hash DB.
This commit is contained in:
Pete Batard 2020-09-16 13:59:06 +01:00
parent 1bb2b3b126
commit e987272287
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
6 changed files with 22 additions and 14 deletions

View file

@ -4,7 +4,7 @@
#include <stdint.h>
/* Max valid value of uiLen for contains_data */
#define MAX_DATA_LEN 32768
#define MAX_DATA_LEN 65536
/* We hijack the FILE structure for our own needs */
typedef struct {