summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorSteffen Klassert2017-10-24 10:28:43 +0200
committerSteffen Klassert2017-10-24 13:40:36 +0200
commitec650b23ecda1e354a9a2961833222552e629ba8 (patch)
tree3e28d9e97e9d080db2d172bcb5fc0953dc0afd38 /net/xfrm/xfrm_state.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff)
downloadkernel-qcow2-linux-ec650b23ecda1e354a9a2961833222552e629ba8.tar.gz
kernel-qcow2-linux-ec650b23ecda1e354a9a2961833222552e629ba8.tar.xz
kernel-qcow2-linux-ec650b23ecda1e354a9a2961833222552e629ba8.zip
xfrm: Fix xfrm_dst_cache memleak
We have a memleak whenever a flow matches a policy without a matching SA. In this case we generate a dummy bundle and take an additional refcount on the dst_entry. This was needed as long as we had the flowcache. The flowcache removal patches deleted all related refcounts but forgot the one for the dummy bundle case. Fix the memleak by removing this refcount. Fixes: 3ca28286ea80 ("xfrm_policy: bypass flow_cache_lookup") Reported-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
0 files changed, 0 insertions, 0 deletions