Hi,

Looked at asynchronous support in Cryptodev-1.5 and found that it is getting in 
following flow
cryptask_routine calling crypto_run. Now in crypto_run API, all the user-space 
process provided 
buffers are either being copied to kernel buffers or they are being mapped in 
kernel using 
get_user_pages.

Either way it is wrong because by the time cryptask_routine is executing, it is 
running in work_queue
kernel thread context and not in process context. So, these user-space buffer 
are not accessible in work-queue 
Context. In my view, asynchronous support needs to be fixed.

Regards
Yashpal Dutta


_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to