aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/bpf_types.h
diff options
context:
space:
mode:
authorXin Liu <liuxin350@huawei.com>2022-09-17 16:48:09 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-09-20 17:34:09 -0700
commit7620bffbf72cd66a5d18e444a143b5b5989efa87 (patch)
treeb2e1a3ce1f2734d69c5c536ac0b1e88eb79cc5b9 /include/linux/bpf_types.h
parentsamples/bpf: Replace blk_account_io_done() with __blk_account_io_done() (diff)
downloadwireguard-linux-7620bffbf72cd66a5d18e444a143b5b5989efa87.tar.xz
wireguard-linux-7620bffbf72cd66a5d18e444a143b5b5989efa87.zip
libbpf: Fix NULL pointer exception in API btf_dump__dump_type_data
We found that function btf_dump__dump_type_data can be called by the user as an API, but in this function, the `opts` parameter may be used as a null pointer.This causes `opts->indent_str` to trigger a NULL pointer exception. Fixes: 2ce8450ef5a3 ("libbpf: add bpf_object__open_{file, mem} w/ extensible opts") Signed-off-by: Xin Liu <liuxin350@huawei.com> Signed-off-by: Weibin Kong <kongweibin2@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220917084809.30770-1-liuxin350@huawei.com
Diffstat (limited to 'include/linux/bpf_types.h')
0 files changed, 0 insertions, 0 deletions