diff options
author | Davide Caratti <dcaratti@redhat.com> | 2020-12-03 10:46:06 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-03 20:13:29 +0100 |
commit | 43c13605bad44b8abbc9776d6e63f62ccb7a47d6 (patch) | |
tree | e271b28912c57b1c6d2f232ed4db22b9539a10da /net/smc | |
parent | net: skbuff: ensure LSE is pullable before decrementing the MPLS ttl (diff) | |
download | linux-43c13605bad44b8abbc9776d6e63f62ccb7a47d6.tar.xz linux-43c13605bad44b8abbc9776d6e63f62ccb7a47d6.zip |
net: openvswitch: ensure LSE is pullable before reading it
when openvswitch is configured to mangle the LSE, the current value is
read from the packet dereferencing 4 bytes at mpls_hdr(): ensure that
the label is contained in the skb "linear" area.
Found by code inspection.
Fixes: d27cf5c59a12 ("net: core: add MPLS update core helper and use in OvS")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Link: https://lore.kernel.org/r/aa099f245d93218b84b5c056b67b6058ccf81a66.1606987185.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions