Thread (5 messages) flat view 5 messages, 2 authors, 2012-08-20

Re: [PATCH 1/3 v2] crypto: caam - fix possible deadlock condition

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2012-07-30 07:56:06

On Fri, Jul 13, 2012 at 06:04:23PM -0500, Kim Phillips wrote:
commit "crypto: caam - use non-irq versions of spinlocks for job rings"
made two bad assumptions:

(a) The caam_jr_enqueue lock isn't used in softirq context.
Not true: jr_enqueue can be interrupted by an incoming net
interrupt and the received packet may be sent for encryption,
via caam_jr_enqueue in softirq context, thereby inducing a
deadlock.

This is evidenced when running netperf over an IPSec tunnel
between two P4080's, with spinlock debugging turned on:
All patches applied.  Thanks Kim.
-- 
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