From: Eric Dumazet Date: Wed, 11 Dec 2013 22:46:51 +0000 (-0800) Subject: udp: ipv4: must add synchronization in udp_sk_rx_dst_set() X-Git-Tag: v3.13-rc4~3^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975022310233fb0f0193873d79a7b8438070fa82;p=pandora-kernel.git udp: ipv4: must add synchronization in udp_sk_rx_dst_set() Unlike TCP, UDP input path does not hold the socket lock. Before messing with sk->sk_rx_dst, we must use a spinlock, otherwise multiple cpus could leak a refcount. This patch also takes care of renewing a stale dst entry. (When the sk->sk_rx_dst would not be used by IP early demux) Fixes: 421b3885bf6d ("udp: ipv4: Add udp early demux") Signed-off-by: Eric Dumazet Cc: Shawn Bohrer Signed-off-by: David S. Miller --- Reading git-diff-tree failed