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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 09, 2012 at 07:00:14PM -0500, Kim Phillips wrote:
> On Mon, 30 Jul 2012 15:56:04 +0800
> Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
> 
> > 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.
> 
> Herbert, just wanted to make sure that at least the first patch in
> this series were also applied to the crypto tree, i.e., for 3.6
> release because it fixes a potential deadlock condition.  The second
> patch should, too, but it's less important IMO.
> 
> These are the commits to cherry pick from cryptodev into crypto:
> 
> 4a90507 crypto: caam - fix possible deadlock condition
> 95bcaa3 crypto: caam - add backward compatible string sec4.0 (optional)

OK, I'll add these two patches to crypto-2.6.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux