[PATCH OLK-6.6] efi/libstub: add checking validity of memory regions