Re: [PATCH 10/14] platform/x86/intel/ifs: Add metadata validation

From: Sohil Mehta
Date: Wed Nov 09 2022 - 18:11:21 EST


On 10/21/2022 1:34 PM, Jithu Joseph wrote:
The data portion of IFS test image file contains a meta-data
structure in addition to test data and hashes.

Introduce the layout of this meta_data structure and validate
the sanity of certain fields of the new-image before loading.

Tweak references to IFS test image chunks to reflect the updated
layout of the test image.


Can you provide some more information on the updated layout of the metadata structure?

Some parts of validate_ifs_metadata() like the ifs_test_image_ptr calculation would be easier to follow with that.