rhboot / shim

UEFI shim loader
Other
819 stars 289 forks source link

pe: Align section size up to page size for mem attrs #539

Closed nicholasbishop closed 1 year ago

nicholasbishop commented 1 year ago

Setting memory attributes is generally done at page granularity, and this is enforced by checks in get_mem_attrs and update_mem_attrs. But unlike the section address, the section size isn't necessarily aligned to 4KiB. Round up the section size to fix this.

Signed-off-by: Nicholas Bishop nicholasbishop@google.com

AkihiroSuda commented 7 months ago

This doesn't seem included in the latest release (https://github.com/rhboot/shim/releases/tag/15.7).

Any chance to get a new release with this?