[U-Boot] [PATCH 1/1] efi_loader: sanity checks when freeing memory

Alexander Graf agraf at csgraf.de
Sun Mar 31 18:27:23 UTC 2019


On 26.03.19 12:04, Heinrich Schuchardt wrote:
> Use a checksum to validate that efi_free_pool() is only called for memory
> allocated by efi_allocated_pool().
>
> Add a plausibility check to efi_free_pages() checking that the address
> passed is page aligned.
>
> Update related function comments to match Sphinx style.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>


I like the idea - it definitely allows for a bit more safety than what
we had before :).

How much does it add to the binary size?


Alex



More information about the U-Boot mailing list