Re: [PATCH net] udp: fix dst races with multicast early demux

2015-08-03 Thread David Miller
From: Eric Dumazet Date: Sat, 01 Aug 2015 12:14:33 +0200 > From: Eric Dumazet > > Multicast dst are not cached. They carry DST_NOCACHE. > > As mentioned in commit f8864972126899 ("ipv4: fix dst race in > sk_dst_get()"), these dst need special care before caching them > into a socket. > > Cach

RE: [PATCH net] udp: fix dst races with multicast early demux

2015-08-03 Thread Gregory Hoggarth
From: netdev-ow...@vger.kernel.org on behalf of Eric Dumazet Sent: Saturday, 1 August 2015 10:14 p.m. To: Gregory Hoggarth Cc: Shawn Bohrer; netdev@vger.kernel.org; alexgartr...@gmail.com; Michal Kubeček Subject: [PATCH net] udp: fix dst races with multicast early demux From

[PATCH net] udp: fix dst races with multicast early demux

2015-08-01 Thread Eric Dumazet
From: Eric Dumazet Multicast dst are not cached. They carry DST_NOCACHE. As mentioned in commit f8864972126899 ("ipv4: fix dst race in sk_dst_get()"), these dst need special care before caching them into a socket. Caching them is allowed only if their refcnt was not 0, ie we must use atomic_inc