linux/crypto
Dan Williams eb0645a8b1 async_tx: fix kmap_atomic usage in async_memcpy
Andrew Morton:
	[async_memcpy] is very wrong if both ASYNC_TX_KMAP_DST and
	ASYNC_TX_KMAP_SRC can ever be set.  We'll end up using the same kmap
	slot for both src add dest and we get either corrupted data or a BUG.

Evgeniy Polyakov:
	Btw, shouldn't it always be kmap_atomic() even if flag is not set.
	That pages are usual one returned by alloc_page().

So fix the usage of kmap_atomic and kill the ASYNC_TX_KMAP_DST and
ASYNC_TX_KMAP_SRC flags.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-20 08:44:19 -07:00
..
async_tx async_tx: fix kmap_atomic usage in async_memcpy 2007-07-20 08:44:19 -07:00
ablkcipher.c [CRYPTO] api: Allow ablkcipher with no queues 2007-07-11 20:58:55 +08:00
aes.c
algapi.c [CRYPTO] api: Wake up all waiters when larval completes 2007-07-11 20:58:53 +08:00
anubis.c
api.c [CRYPTO] api: Wake up all waiters when larval completes 2007-07-11 20:58:53 +08:00
arc4.c
blkcipher.c [CRYPTO] api: Handle unaligned keys in setkey 2007-07-11 20:58:54 +08:00
blowfish.c
camellia.c
cast5.c
cast6.c
cbc.c
cipher.c [CRYPTO] api: Handle unaligned keys in setkey 2007-07-11 20:58:54 +08:00
compress.c
crc32c.c
cryptd.c [CRYPTO] cryptd: Fix problem with cryptd and the freezer 2007-05-31 18:10:22 +10:00
crypto_null.c
cryptomgr.c
deflate.c
des.c
digest.c
ecb.c
fcrypt.c
gf128mul.c
hash.c [CRYPTO] api: Handle unaligned keys in setkey 2007-07-11 20:58:54 +08:00
hmac.c
internal.h
Kconfig Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6 2007-07-14 23:47:04 -07:00
khazad.c
lrw.c
Makefile async_tx: add the async_tx api 2007-07-13 08:06:14 -07:00
md4.c
md5.c
michael_mic.c
pcbc.c
proc.c Make crypto API use seq_list_xxx helpers 2007-07-16 09:05:42 -07:00
scatterwalk.c
scatterwalk.h
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c
tcrypt.h
tea.c
tgr192.c
twofish_common.c
twofish.c
wp512.c
xcbc.c
xor.c async_tx: add the async_tx api 2007-07-13 08:06:14 -07:00