Thread (2 messages) flat view 2 messages, 2 authors, 2012-10-24

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

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2012-10-24 13:14:26

On Sun, Oct 21, 2012 at 08:42:28PM +0300, Jussi Kivilinna wrote:
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 report at http://marc.info/?l=linux-crypto-vger&m=134858649616319&w=2

v2:
 - Disable software interrupts instead of hardware interrupts

Cc: stable@vger.kernel.org
Reported-by: Gurucharan Shetty <redacted>
Signed-off-by: Jussi Kivilinna <redacted>
Patch applied to crypto.

Thanks!
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help