aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/sock_map.c
diff options
context:
space:
mode:
authorTyrone Wu <wudevelops@gmail.com>2024-10-11 00:08:02 +0000
committerAndrii Nakryiko <andrii@kernel.org>2024-10-10 19:11:28 -0700
commitad6b5b6ea9b764018249285a4fe0a2226bef4caa (patch)
treedb33ba67381698c778f66de4653fa7f2b1e32e7d /net/core/sock_map.c
parentselftests/bpf: Fix cross-compiling urandom_read (diff)
downloadwireguard-linux-ad6b5b6ea9b764018249285a4fe0a2226bef4caa.tar.xz
wireguard-linux-ad6b5b6ea9b764018249285a4fe0a2226bef4caa.zip
bpf: Fix unpopulated path_size when uprobe_multi fields unset
Previously when retrieving `bpf_link_info.uprobe_multi` with `path` and `path_size` fields unset, the `path_size` field is not populated (remains 0). This behavior was inconsistent with how other input/output string buffer fields work, as the field should be populated in cases when: - both buffer and length are set (currently works as expected) - both buffer and length are unset (not working as expected) This patch now fills the `path_size` field when `path` and `path_size` are unset. Fixes: e56fdbfb06e2 ("bpf: Add link_info support for uprobe multi link") Signed-off-by: Tyrone Wu <wudevelops@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20241011000803.681190-1-wudevelops@gmail.com
Diffstat (limited to 'net/core/sock_map.c')
0 files changed, 0 insertions, 0 deletions