From: Neil Horman Date: Fri, 27 Apr 2012 10:11:49 +0000 (+0000) Subject: drop_monitor: Make updating data->skb smp safe X-Git-Tag: v3.4-rc6~23^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3885ca785a3618593226687ced84f3f336dc3860;p=pandora-kernel.git drop_monitor: Make updating data->skb smp safe Eric Dumazet pointed out to me that the drop_monitor protocol has some holes in its smp protections. Specifically, its possible to replace data->skb while its being written. This patch corrects that by making data->skb an rcu protected variable. That will prevent it from being overwritten while a tracepoint is modifying it. Signed-off-by: Neil Horman Reported-by: Eric Dumazet CC: David Miller Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed