summaryrefslogtreecommitdiff
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2020-12-05 02:20:01 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-12-08 18:45:20 +0300
commit932c60558109a9131e54dacfda6070147fd1cdfb (patch)
tree24ed6d809f01b4212f5e4525b307a3902a29b1b2 /MAINTAINERS
parente3366884b383073a7edc1bad9634412ae0a22d4e (diff)
downloadlinux-932c60558109a9131e54dacfda6070147fd1cdfb.tar.xz
tools/bpftool: Fix PID fetching with a lot of results
In case of having so many PID results that they don't fit into a singe page (4096) bytes, bpftool will erroneously conclude that it got corrupted data due to 4096 not being a multiple of struct pid_iter_entry, so the last entry will be partially truncated. Fix this by sizing the buffer to fit exactly N entries with no truncation in the middle of record. Fixes: d53dee3fe013 ("tools/bpftool: Show info for processes holding BPF map/prog/link/btf FDs") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20201204232002.3589803-1-andrii@kernel.org
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions