Eric Dumazet 9750223102 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 <edumazet@google.com>
Cc: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-11 20:21:10 -05:00
..
2013-09-03 21:41:43 -04:00
2013-11-14 17:31:14 -05:00
2013-10-19 19:36:19 -04:00
2013-10-17 15:02:02 -04:00
2013-10-08 23:19:24 -04:00
2012-10-08 17:42:36 -04:00
2013-10-19 19:36:19 -04:00
2013-09-03 21:41:43 -04:00
2013-11-29 16:37:36 -05:00
2013-03-21 11:47:50 -04:00
2012-03-11 23:42:51 -07:00
2013-10-19 19:36:19 -04:00
2013-05-31 17:19:05 -07:00