Re: Is this a bug in linux-2.6.12 ipsec code function xfrm4_rcv_encap??

From: Patrick McHardy
Date: Fri Jul 22 2005 - 20:56:47 EST


k8 s wrote:
I AM SORRY FOR THE PREVIOUS MAIL.
I am correcting my previous mail. Infact I see only One race(not three as was wrongly pointed out).
I commented out the section once again where the race might be.

/********************************************************
Race Here . The Check(x->props.mode) is without Lock. What if setkey
-F is done at the same time on another processor freeing what x points
to.
********************************************************/

if (x->props.mode) {

We hold a reference to the state, so it can't be freed.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/