Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: bfb574db110899471fe09db819587b3151c7b7b5 https://github.com/tianocore/edk2/commit/bfb574db110899471fe09db819587b3151c7b7b5 Author: Pierre Gondois <pierre.gond...@arm.com> Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths: M SecurityPkg/RandomNumberGenerator/RngDxe/ArmRngDxe.c M SecurityPkg/RandomNumberGenerator/RngDxe/Rand/RngDxe.c Log Message: ----------- SecurityPkg/RngDxe: Correctly update mAvailableAlgoArrayCount mAvailableAlgoArrayCount holds the count of available RNG algorithms. In a following patch, its value will be used to prevent the EFI_RNG_PROTOCOL to be installed if no RNG algorithm is available. Correctly set/reset the value for all implementations. Signed-off-by: Pierre Gondois <pierre.gond...@arm.com> Reviewed-by: Ard Biesheuvel <a...@kernel.org> Commit: 75fb0cfc82376906243386514be0e4067d702117 https://github.com/tianocore/edk2/commit/75fb0cfc82376906243386514be0e4067d702117 Author: Pierre Gondois <pierre.gond...@arm.com> Date: 2023-03-07 (Tue, 07 Mar 2023) Changed paths: M SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c Log Message: ----------- SecurityPkg/RngDxe: Conditionally install EFI_RNG_PROTOCOL On Arm platforms, the number of available RNG algorithms is dynamically detected and can be 0 in the absence of FEAT_RNG and firmware TRNG. In this case, the EFI_RNG_PROTOCOL should not be installed to prevent from installing an empty protocol. Signed-off-by: Pierre Gondois <pierre.gond...@arm.com> [ardb: return EFI_REQUEST_UNLOAD_IMAGE instead of an error] Reviewed-by: Ard Biesheuvel <a...@kernel.org> Compare: https://github.com/tianocore/edk2/compare/aa1cd447b346...75fb0cfc8237 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits