Santiago Font Arquer <[EMAIL PROTECTED]> wrote: > > If an skb with fast clone available (first "if" true) has > references in different CPUs (skb->users>1) (I do not find explicit > checks for this to be impossible), if skb_clone is called > simultaneously over that skb, both callers can get the same clone (the > "fast" clone) and different problems follow: wrong "clone_skb->users" > (1 as expected by the caller, but it should be, to be true, 2), > fclone_ref set to 3 involving further problems, ...
Fast clones are only used by TCP where the original skb is never given to the outside world. This plus the fact that a given TCP socket is single-threaded makes it safe. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> 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 netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html