Commit e7820e39 authored by Committed by David S. Miller
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 <email@example.com> Fixes: ce1a4ea3 ("net: avoid one atomic operation in skb_clone()") Signed-off-by: Eric Dumazet <firstname.lastname@example.org> Cc: Sabrina Dubroca <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Showing with 6 additions and 17 deletions