aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-01-24 12:18:46 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2020-01-24 22:34:37 +0100
commit35b9211c0a2427e8f39e534f442f43804fc8d5ca (patch)
tree447a49a6541913091f7183f618de47e83c0c20f2 /fs
parentlibbpf: Improve handling of failed CO-RE relocations (diff)
downloadlinux-dev-35b9211c0a2427e8f39e534f442f43804fc8d5ca.tar.xz
linux-dev-35b9211c0a2427e8f39e534f442f43804fc8d5ca.zip
libbpf: Fix realloc usage in bpf_core_find_cands
Fix bug requesting invalid size of reallocated array when constructing CO-RE relocation candidate list. This can cause problems if there are many potential candidates and a very fine-grained memory allocator bucket sizes are used. Fixes: ddc7c3042614 ("libbpf: implement BPF CO-RE offset relocation algorithm") Reported-by: William Smith <williampsmith@fb.com> Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20200124201847.212528-1-andriin@fb.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions