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

From: Brian Gerst
Date: Mon Oct 18 2004 - 15:41:26 EST


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.


On some arches modules reside in vmalloc space.

--
Brian Gerst
-
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/