mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
net: ipv6: fix dst refleaks in rpl, seg6 and ioam6 lwtunnels
commitc71a192976upstream. dst_cache_get() gives us a reference, we need to release it. Discovered by the ioam6.sh test, kmemleak was recently fixed to catch per-cpu memory leaks. Fixes:985ec6f5e6("net: ipv6: rpl_iptunnel: mitigate 2-realloc issue") Fixes:40475b6376("net: ipv6: seg6_iptunnel: mitigate 2-realloc issue") Fixes:dce525185b("net: ipv6: ioam6_iptunnel: mitigate 2-realloc issue") Reviewed-by: Justin Iurman <justin.iurman@uliege.be> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250130031519.2716843-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02e4373593
commit
bf500b0d0c
2 changed files with 8 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue