diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2014-09-16 10:08:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-15 08:36:42 +0200 |
commit | 8f20fcf03cdb5d5ee7e14373409a7a3eae2163fd (patch) | |
tree | 8314b99062d6fe4abfda0617f6685c40c6310c4d /include/net | |
parent | 0845e2d0da03b2d739c87219ad212e604bf57431 (diff) | |
download | kernel-common-8f20fcf03cdb5d5ee7e14373409a7a3eae2163fd.tar.gz kernel-common-8f20fcf03cdb5d5ee7e14373409a7a3eae2163fd.tar.bz2 kernel-common-8f20fcf03cdb5d5ee7e14373409a7a3eae2163fd.zip |
xfrm: Generate queueing routes only from route lookup functions
[ Upstream commit b8c203b2d2fc961bafd53b41d5396bbcdec55998 ]
Currently we genarate a queueing route if we have matching policies
but can not resolve the states and the sysctl xfrm_larval_drop is
disabled. Here we assume that dst_output() is called to kill the
queued packets. Unfortunately this assumption is not true in all
cases, so it is possible that these packets leave the system unwanted.
We fix this by generating queueing routes only from the
route lookup functions, here we can guarantee a call to
dst_output() afterwards.
Fixes: a0073fe18e71 ("xfrm: Add a state resolution packet queue")
Reported-by: Konstantinos Kolelis <k.kolelis@sirrix.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 2a90573276c9..909032821c37 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -466,6 +466,7 @@ void dst_init(void); /* Flags for xfrm_lookup flags argument. */ enum { XFRM_LOOKUP_ICMP = 1 << 0, + XFRM_LOOKUP_QUEUE = 1 << 1, }; struct flowi; |