]> git.proxmox.com Git - mirror_iproute2.git/commit
ip-route: Fix nexthop encap parsing
authorPhil Sutter <phil@nwl.cc>
Tue, 13 Nov 2018 12:39:04 +0000 (13:39 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 14 Nov 2018 19:18:59 +0000 (11:18 -0800)
commit05d978e0850a6a3bae1e6c5392d82f7b1496f86a
tree1a0860e64c95ffd03ceb8c7991a66b3f862df2cc
parent7e2f71b431bbde1d040a524731e9b210fd905de2
ip-route: Fix nexthop encap parsing

When parsing nexthop parameters, a buffer of 4k bytes is provided. Yet,
in lwt_parse_encap() and some functions called by it, buffer size was
assumed to be 1k despite the actual size was provided. This led to
spurious buffer size errors if the buffer was filled by previous nexthop
parameters to exceed that 1k boundary.

Fixes: 1e5293056a02c ("lwtunnel: Add encapsulation support to ip route")
Fixes: 5866bddd9aa9e ("ila: Add support for ILA lwtunnels")
Fixes: ed67f83806538 ("ila: Support for checksum neutral translation")
Fixes: 86905c8f057c0 ("ila: support for configuring identifier and hook types")
Fixes: b15f440e78373 ("lwt: BPF support for LWT")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iproute_lwtunnel.c