[BUG] ut lib lib_rsa_verify_valid crashes on qemu_arm if RSA_VERIFY_WITH_PKEY=y

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Jun 8 23:08:53 CEST 2020


Hello Takahiro,

when trying to execute command

ut lib lib_rsa_verify_valid

on qemu_arm_defconfig with CONFIG_UNIT_TEST=y and
CONFIG_RSA_VERIFY_WITH_PKEY=y it crashes in

free((void *)prop->modulus) called from
rsa_free_key_prop() called from
rsa_verify_key() called from
rsa_verify_with_pkey().

Without CONFIG_RSA_VERIFY_WITH_PKEY=y the problem does not occur.
On qemu_arm64_defconfig the problem does not occur.

Could you, please, have a look.

Best regards

Heinrich


More information about the U-Boot mailing list