diff options
author | Stanislav Fomichev <sdf@google.com> | 2021-01-12 08:28:29 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-12 21:05:07 +0100 |
commit | 4be34f3d0731b38a1b24566b37fbb39500aaf3a2 (patch) | |
tree | 56edf55becb44f23194f3f528a3ba1d7ebc2c359 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2f94ac19184665263b7a285ae88abe19dedf9c1b (diff) |
bpf: Don't leak memory in bpf getsockopt when optlen == 0
optlen == 0 indicates that the kernel should ignore BPF buffer
and use the original one from the user. We, however, forget
to free the temporary buffer that we've allocated for BPF.
Fixes: d8fe449a9c51 ("bpf: Don't return EINVAL from {get,set}sockopt when optlen > PAGE_SIZE")
Reported-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210112162829.775079-1-sdf@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions