From: Eric Dumazet Date: Fri, 21 Nov 2014 19:47:16 +0000 (-0800) Subject: net: Revert "net: avoid one atomic operation in skb_clone()" X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~83^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7820e39b7d19b9fe1928fc19de9361b44150ca6;p=pandora-kernel.git net: Revert "net: avoid one atomic operation in skb_clone()" Not sure what I was thinking, but doing anything after releasing a refcount is suicidal or/and embarrassing. By the time we set skb->fclone to SKB_FCLONE_FREE, another cpu could have released last reference and freed whole skb. We potentially corrupt memory or trap if CONFIG_DEBUG_PAGEALLOC is set. Reported-by: Chris Mason Fixes: ce1a4ea3f1258 ("net: avoid one atomic operation in skb_clone()") Signed-off-by: Eric Dumazet Cc: Sabrina Dubroca Signed-off-by: David S. Miller --- Reading git-diff-tree failed