From: Mike Rapoport <hidden> Date: 2018-10-08 19:17:40
The fib6_info_alloc() function allocates percpu memory to hold per CPU
pointers to rt6_info, but this memory is never freed. Fix it.
Fixes: a64efe142f5e ("net/ipv6: introduce fib6_info struct and helpers")
Signed-off-by: Mike Rapoport <redacted>
Cc: stable@vger.kernel.org
---
net/ipv6/ip6_fib.c | 2 ++
1 file changed, 2 insertions(+)
From: David Ahern <hidden> Date: 2018-10-08 18:15:54
On 10/8/18 6:06 AM, Mike Rapoport wrote:
quoted hunk
The fib6_info_alloc() function allocates percpu memory to hold per CPU
pointers to rt6_info, but this memory is never freed. Fix it.
Fixes: a64efe142f5e ("net/ipv6: introduce fib6_info struct and helpers")
Signed-off-by: Mike Rapoport <redacted>
Cc: stable@vger.kernel.org
---
net/ipv6/ip6_fib.c | 2 ++
1 file changed, 2 insertions(+)
From: David Miller <davem@davemloft.net> Date: 2018-10-09 00:59:11
From: Mike Rapoport <redacted>
Date: Mon, 8 Oct 2018 15:06:03 +0300
The fib6_info_alloc() function allocates percpu memory to hold per CPU
pointers to rt6_info, but this memory is never freed. Fix it.
Fixes: a64efe142f5e ("net/ipv6: introduce fib6_info struct and helpers")
Please do not put empty lines between Fixes: and other tags. They
belong together as a group.
Signed-off-by: Mike Rapoport <redacted>
Cc: stable@vger.kernel.org
Several problems here.
You cannot submit patches to net-next and expect them to go onward to
-stable. That is not appropriate. If it is going to stable, you
must target 'net' not 'net-next'.
Furthermore, for networking changes, explicit CC: of stable is not
appropriate. Instead you must explicitly ask me to queue the patch
up for -stable as I handle networking stable submissions myself.
Thank you.
From: Mike Rapoport <hidden> Date: 2018-10-09 11:18:36
On Mon, Oct 08, 2018 at 12:15:54PM -0600, David Ahern wrote:
On 10/8/18 6:06 AM, Mike Rapoport wrote:
quoted
The fib6_info_alloc() function allocates percpu memory to hold per CPU
pointers to rt6_info, but this memory is never freed. Fix it.
Fixes: a64efe142f5e ("net/ipv6: introduce fib6_info struct and helpers")
Signed-off-by: Mike Rapoport <redacted>
Cc: stable@vger.kernel.org
---
net/ipv6/ip6_fib.c | 2 ++
1 file changed, 2 insertions(+)
Odd that KMEMLEAK is not detecting this. Thanks for the fix.
There's a comment in kmemleak that says:
/*
* Percpu allocations are only scanned and not reported as leaks
* (min_count is set to 0).
*/
No idea why, though...