]> git.proxmox.com Git - mirror_ovs.git/commit
odp-execute: Fix length checking while executing check_pkt_len action.
authorIlya Maximets <i.maximets@ovn.org>
Thu, 11 Jun 2020 09:25:52 +0000 (11:25 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 6 Jul 2020 23:29:21 +0000 (01:29 +0200)
commitfd48ae73e097db04ddf5053d63aabea2dab6b257
tree0fcad17220afa0ccae60b60f0c7ed34c663ba98b
parentc95deec94ef0231c19460e4f073c47614d0c3ab6
odp-execute: Fix length checking while executing check_pkt_len action.

If dp-packet contains l2 padding or cutlen was applied to it, size will
be larger than the actual size of a payload and action will work
incorrectly.

Ex. Padding could be added during miniflow_extract() if detected.

Fixes: 5b34f8fc3b38 ("Add a new OVS action check_pkt_larger")
Reported-by: Miroslav Kubiczek <miroslav.kubiczek@adaptivemobile.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2020-May/050157.html
Acked-by: Dumitru Ceara <dceara@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/odp-execute.c