Hi,
There is an issue in function (was_last_boot_error(void)).
In begin_launch() , there is a was_last_boot_error().In was_last_boot_error() ,
there is a read_tb_error_code().
When read_tb_error_code() runs successfully and the value of parameter error is
TB_ERR_NONE,the was_last_boot_error()
wi
Thanks for reporting the bug and providing the fix.
Actually, if tpm_detect() were put after verify_acmod() as your patch
indicated, there would generate another issue of SGX status verification
failure.
In verify_acmod() , there is a verify_IA32_se_svn_status() which will consume
some initiali