diff options
author | Davide Caratti <dcaratti@redhat.com> | 2020-12-03 10:46:06 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-03 11:13:29 -0800 |
commit | 43c13605bad44b8abbc9776d6e63f62ccb7a47d6 (patch) | |
tree | e271b28912c57b1c6d2f232ed4db22b9539a10da /net/sched | |
parent | 13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64 (diff) |
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/sched')
0 files changed, 0 insertions, 0 deletions