commit | 4adb7a4a151c65ac7e9c3a1aa462c84190d48385 | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andriin@fb.com> | Thu Apr 23 22:20:44 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Fri Apr 24 17:27:02 2020 -0700 |
tree | 776699a09bc08d7e2c68d409e67616827ad3a399 | |
parent | 5ca1ca01fae1e90f8d010eb1d83374f28dc11ee6 [diff] |
bpf: Fix leak in LINK_UPDATE and enforce empty old_prog_fd Fix bug of not putting bpf_link in LINK_UPDATE command. Also enforce zeroed old_prog_fd if no BPF_F_REPLACE flag is specified. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200424052045.4002963-1-andriin@fb.com