[PATCH] crypto - ablk_helper: add module parameter to allow testing cryptd redirection of requests

2012-10-21 Thread Jussi Kivilinna
Add module parameter to allow forcing redirection of crypto requests to cryptd worker threads. This allows these code paths to be actually tested (easier). Signed-off-by: Jussi Kivilinna --- arch/x86/crypto/ablk_helper.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --g

[PATCH] [v2] crypto: cryptd - disable softirqs in cryptd_queue_worker to prevent data corruption

2012-10-21 Thread Jussi Kivilinna
cryptd_queue_worker attempts to prevent simultaneous accesses to crypto workqueue by cryptd_enqueue_request using preempt_disable/preempt_enable. However cryptd_enqueue_request might be called from softirq context, so add local_bh_disable/local_bh_enable to prevent data corruption and panics. Bug

[PATCH] crypto: fix missing unlock on error case

2012-10-21 Thread Wei Yongjun
From: Wei Yongjun Add the missing unlock on the error handling path in function tegra_aes_get_random() and tegra_aes_rng_reset(). Signed-off-by: Wei Yongjun --- drivers/crypto/tegra-aes.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/tegra-aes.c b/d