]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Potential NULL dereference in usdt_manager_attach_usdt()
authorHaowen Bai <baihaowen@meizu.com>
Thu, 7 Apr 2022 02:38:17 +0000 (10:38 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 7 Apr 2022 18:46:33 +0000 (11:46 -0700)
commitab6d1656ebaa7864f2bca6371fca3d1f66d31f7e
treea2d87f4383ee4e80277a07dc8be57dee3a967753
parentca1064c862c278740c9c51fd1f36fef11e2242c9
libbpf: Potential NULL dereference in usdt_manager_attach_usdt()

link could be null but still dereference bpf_link__destroy(&link->link)
and it will lead to a null pointer access.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1649299098-2069-1-git-send-email-baihaowen@meizu.com
tools/lib/bpf/usdt.c