From: Stanislav Fomichev <hidden> Date: 2021-01-12 16:29:29
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.
Reported-by: Martin KaFai Lau <redacted>
Fixes: d8fe449a9c51 ("bpf: Don't return EINVAL from {get,set}sockopt when optlen > PAGE_SIZE")
Signed-off-by: Stanislav Fomichev <redacted>
---
kernel/bpf/cgroup.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
From: Martin KaFai Lau <hidden> Date: 2021-01-12 18:05:24
On Tue, Jan 12, 2021 at 08:28:29AM -0800, Stanislav Fomichev wrote:
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.
Hello:
This patch was applied to bpf/bpf.git (refs/heads/master):
On Tue, 12 Jan 2021 08:28:29 -0800 you wrote:
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.
Reported-by: Martin KaFai Lau <redacted>
Fixes: d8fe449a9c51 ("bpf: Don't return EINVAL from {get,set}sockopt when optlen > PAGE_SIZE")
Signed-off-by: Stanislav Fomichev <redacted>
[...]