diff options
author | Sabrina Dubroca | 2020-07-29 18:38:42 +0200 |
---|---|---|
committer | Steffen Klassert | 2020-07-30 06:51:35 +0200 |
commit | fadd1a63a7b4df295a01fa50b2f4e447542bee59 (patch) | |
tree | 062191bcf5afdb2bb7e24f707b6021cecf3abb2e /net/xfrm/Makefile | |
parent | d5dba1376e2bafec0f4408dc65706c5908964083 (diff) |
espintcp: handle short messages instead of breaking the encap socket
Currently, short messages (less than 4 bytes after the length header)
will break the stream of messages. This is unnecessary, since we can
still parse messages even if they're too short to contain any usable
data. This is also bogus, as keepalive messages (a single 0xff byte),
though not needed with TCP encapsulation, should be allowed.
This patch changes the stream parser so that short messages are
accepted and dropped in the kernel. Messages that contain a valid SPI
or non-ESP header are processed as before.
Fixes: e27cca96cd68 ("xfrm: add espintcp (RFC 8229)")
Reported-by: Andrew Cagney <cagney@libreswan.org>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/Makefile')
0 files changed, 0 insertions, 0 deletions