summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAndrii Nakryiko2019-07-19 21:32:42 +0200
committerAlexei Starovoitov2019-07-19 21:37:18 +0200
commit04efe5911fb30664a56ec63d272a0f39a71545db (patch)
treecc7cd8cf784c8f3e620c793aa7068a8fe43b2414 /usr
parenttcp: fix tcp_set_congestion_control() use from bpf hook (diff)
downloadkernel-qcow2-linux-04efe5911fb30664a56ec63d272a0f39a71545db.tar.gz
kernel-qcow2-linux-04efe5911fb30664a56ec63d272a0f39a71545db.tar.xz
kernel-qcow2-linux-04efe5911fb30664a56ec63d272a0f39a71545db.zip
libbpf: fix SIGSEGV when BTF loading fails, but .BTF.ext exists
In case when BTF loading fails despite sanitization, but BPF object has .BTF.ext loaded as well, we free and null obj->btf, but not obj->btf_ext. This leads to an attempt to relocate .BTF.ext later on during bpf_object__load(), which assumes obj->btf is present. This leads to SIGSEGV on null pointer access. Fix bug by freeing and nulling obj->btf_ext as well. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions