OP-TEE / optee_os

Trusted side of the TEE
Other
1.55k stars 1.05k forks source link

get stuck with RNG in OPTEE #6919

Closed viewpro9711 closed 1 month ago

viewpro9711 commented 2 months ago

Hi everyone, when I was booting OPTEE for testing Arm Crypto Extension algorithms. I got panic while I enabled CFG_CRYPTO_CE=y and CFG_WITH_SOFTWARE_PRNG=y . I found the error occured in :

void crypto_accel_sha256_compress(uint32_t state[8], const void *src,
                  unsigned int block_count)

{
    uint32_t vfp_state = 0;

    vfp_state = thread_kernel_enable_vfp();

    sha256_ce_transform(state, src, block_count);

    thread_kernel_disable_vfp(vfp_state);
}

when sha256_ce_transform(state, src, block_count) ran- -> I got panic when it called to assembly .

Can someone give me some suggestion for debug and solve this issue .

Thanks and Regards

jenswi-linaro commented 2 months ago

Are you sure that your platform supports the Arm Crypto Extensions?

viewpro9711 commented 2 months ago

Hi @jenswi-linaro ,

Actually, I develop on virtual environment platform, so I'm not sure my platform already support Arm Crypto Extensions yet . Do you have any suggest to confirm this. Thanks

jenswi-linaro commented 2 months ago

Checking the documentation for the virtual environment platform is a good start, perhaps there's some extra option needed. :-)

github-actions[bot] commented 1 month ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.