Re: using crypto_digest() on non-kmalloc'd memory failures

From: James Morris
Date: Mon Oct 18 2004 - 15:17:56 EST


On Mon, 18 Oct 2004, Matt Domsch wrote:

> James, David,
>
> Oleg noted that when we call crypto_digest() on memory allocated as a
> static array in a module, rather than kmalloc(GFP_KERNEL), it returns
> incorrect data, and with other functions, a kernel panic.
>
> Thoughts as to why this may be? Oleg's test patch appended.

I don't recall the exact details, but it's related to using kmap in the
core crypto code.


- James
--
James Morris
<jmorris@xxxxxxxxxx>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/