diff options
author | Stanislav Fomichev <[email protected]> | 2021-01-12 08:28:29 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-01-12 21:05:07 +0100 |
commit | 4be34f3d0731b38a1b24566b37fbb39500aaf3a2 (patch) | |
tree | 56edf55becb44f23194f3f528a3ba1d7ebc2c359 /tools/perf/scripts/python/netdev-times.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 <[email protected]>
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions