aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorPeter Oskolkov <[email protected]>2019-02-14 18:39:31 +0000
committerAlexei Starovoitov <[email protected]>2019-02-14 23:10:06 +0000
commitfb405883c189dd30f2fab2b3e2c954f34f000ac3 (patch)
tree8fad4f225683a15d18682bd2e34adb3dd10b6b3c /tools/lib/bpf/bpf.c
parentMerge branch 'lwt_encap_ip' (diff)
downloadkernel-fb405883c189dd30f2fab2b3e2c954f34f000ac3.tar.gz
kernel-fb405883c189dd30f2fab2b3e2c954f34f000ac3.zip
bpf: fix memory leak in bpf_lwt_xmit_reroute
On error the skb should be freed. Tested with diff/steps provided by David Ahern. v2: surface routing errors to the user instead of a generic EINVAL, as suggested by David Ahern. Reported-by: David Ahern <[email protected]> Fixes: 3bd0b15281af ("bpf: add handling of BPF_LWT_REROUTE to lwt_bpf.c") Signed-off-by: Peter Oskolkov <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions