diff options
author | 2014-09-13 00:06:30 -0400 | |
---|---|---|
committer | 2014-09-13 17:37:49 -0400 | |
commit | c0d1379a19c3dde3c32be50164997d246241c1e4 (patch) | |
tree | bab2f0bb3c42e17d571f8fcc20bffa5ebd89e2ab /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netdevice: Support DSA tagging when DSA is built as a module (diff) | |
download | linux-dev-c0d1379a19c3dde3c32be50164997d246241c1e4.tar.xz linux-dev-c0d1379a19c3dde3c32be50164997d246241c1e4.zip |
net: bpf: correctly handle errors in sk_attach_filter()
Commit "net: bpf: make eBPF interpreter images read-only" has changed bpf_prog
to be vmalloc()ed but never handled some of the errors paths of the old code.
On error within sk_attach_filter (which userspace can easily trigger), we'd
kfree() the vmalloc()ed memory, and leak the internal bpf_work_struct.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions