Messages in this thread | | | Date | Tue, 24 Feb 2004 23:32:09 -0500 | From | Jean-Luc Cooke <> | Subject | Re: cryptoapi highmem bug |
| |
On Wed, Feb 25, 2004 at 12:01:24AM +0100, Christophe Saout wrote: > Am Di, den 24.02.2004 schrieb Jean-Luc Cooke um 23:34: > > > What is calling cbc_process directly? I don't see how any other function > > could possibly call this function directly. > > Nobody is calling it directly. > > > cipher.c's cipher() function called cbc_process() with two different src and > > dst buffers, *always*. > > It you pass the same to ->encrypt_iv (like kblockd for reads) it will > kmap the same page twice and call cbc_process with two different virtual > addresses pointing to the same page.
Ah right. Wanring: this is a cryptographer hacking kernel - danger!
How do I check for equal real addresses from two virtual ones?
JLC
-- http://www.certainkey.com Suite 4560 CTTC 1125 Colonel By Dr. Ottawa ON, K1S 5B6 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |