Re: [Patch net] ipv6: fix memory leaks on IPV6_ADDRFORM path

2020-07-30 Thread David Miller
From: Cong Wang Date: Sat, 25 Jul 2020 15:40:53 -0700 > IPV6_ADDRFORM causes resource leaks when converting an IPv6 socket > to IPv4, particularly struct ipv6_ac_socklist. Similar to > struct ipv6_mc_socklist, we should just close it on this path. > > This bug can be easily reproduced with the f

[Patch net] ipv6: fix memory leaks on IPV6_ADDRFORM path

2020-07-25 Thread Cong Wang
IPV6_ADDRFORM causes resource leaks when converting an IPv6 socket to IPv4, particularly struct ipv6_ac_socklist. Similar to struct ipv6_mc_socklist, we should just close it on this path. This bug can be easily reproduced with the following C program: #include #include #include #includ