Re: [PATCH net] sctp: fix dst reference leak in sctp_v4_get_dst

2018-02-05 Thread Tommi Rantala
On 05.02.2018 03:01, Marcelo Ricardo Leitner wrote: Hi, On Sun, Feb 04, 2018 at 11:02:39AM +0200, Tommi Rantala wrote: Fix dst reference leak in sctp_v4_get_dst() introduced in commit 410f03831 ("sctp: add routing output fallback"): When walking the address_list, successive ip_route_output_key

Re: [PATCH net] sctp: fix dst reference leak in sctp_v4_get_dst

2018-02-04 Thread Marcelo Ricardo Leitner
Hi, On Sun, Feb 04, 2018 at 11:02:39AM +0200, Tommi Rantala wrote: > Fix dst reference leak in sctp_v4_get_dst() introduced in commit > 410f03831 ("sctp: add routing output fallback"): > > When walking the address_list, successive ip_route_output_key() calls > may return the same rt->dst with the

[PATCH net] sctp: fix dst reference leak in sctp_v4_get_dst

2018-02-04 Thread Tommi Rantala
Fix dst reference leak in sctp_v4_get_dst() introduced in commit 410f03831 ("sctp: add routing output fallback"): When walking the address_list, successive ip_route_output_key() calls may return the same rt->dst with the reference incremented on each call. The code would not decrement the dst ref