aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2020-12-03 10:58:21 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-03 11:13:21 -0800
commit13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64 (patch)
tree3c31c25a52609be88914c1b5f78aa8d4c06f31f4 /scripts/bpf_helpers_doc.py
parentMerge tag 'wireless-drivers-2020-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers (diff)
downloadwireguard-linux-13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64.tar.xz
wireguard-linux-13de4ed9e3a9ccbe54d05f7d5c773f69ecaf6c64.zip
net: skbuff: ensure LSE is pullable before decrementing the MPLS ttl
skb_mpls_dec_ttl() reads the LSE without ensuring that it is contained in the skb "linear" area. Fix this calling pskb_may_pull() before reading the current ttl. Found by code inspection. Fixes: 2a2ea50870ba ("net: sched: add mpls manipulation actions to TC") Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Davide Caratti <dcaratti@redhat.com> Link: https://lore.kernel.org/r/53659f28be8bc336c113b5254dc637cc76bbae91.1606987074.git.dcaratti@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions