On 02/15/2013 04:22 PM, Dutta Yashpal-B05456 wrote: > Hi Phil, > > This can break because copy_from/to_user() copies from the current user > process (which should be obvious, since > there's no way to tell it which user process to copy from). > > In a syscall invoked by your userspace process this is OK, because the > current process is your userspace > process. However, within the kernel thread (as in worker thread) the current > process could be any other > process on the system - so one may be copying from a random process's memory, > which is why garbage can > be written in physical memory.
I've committed a check to not allow the COP_FLAG_NO_ZC flag on this call. regards, Nikos _______________________________________________ Cryptodev-linux-devel mailing list Cryptodev-linux-devel@gna.org https://mail.gna.org/listinfo/cryptodev-linux-devel