[PATCH u-boot v2019.04-aspeed-openbmc 1/7] rsa: reject images with unknown padding

Klaus Heinrich Kiwi klaus at linux.vnet.ibm.com
Fri Jan 29 06:48:01 AEDT 2021



On 1/28/2021 7:52 AM, Joel Stanley wrote:
> From: Patrick Doyle <wpdster at gmail.com>
> 
> Previously we would store NULL in info->padding and jump to an illegal
> instruction if an unknown value for "padding" was specified in the
> device tree.
> 

>   	printf("%s:%s", algo_name, info->keyname);
> 
> -	if (!info->checksum || !info->crypto) {
> +	if (!info->checksum || !info->crypto || !info->padding) {
Reviewed-by: Klaus Heinrich Kiwi <klaus at linux.vnet.ibm.com>

>   		*err_msgp = "Unknown signature algorithm";
>   		return -1;
>   	}
> 

-- 
Klaus Heinrich Kiwi <klaus at linux.vnet.ibm.com>


More information about the openbmc mailing list