tmp_suning_uos_patched/tools/bpf/bpftool
Tobias Klauser 2fc8048265 bpftool: Check malloc return value in mount_bpffs_for_pin
[ Upstream commit d444b06e40855219ef38b5e9286db16d435f06dc ]

Fix and add a missing NULL check for the prior malloc() call.

Fixes: 49a086c201 ("bpftool: implement prog load command")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Roman Gushchin <guro@fb.com>
Link: https://lore.kernel.org/bpf/20210715110609.29364-1-tklauser@distanz.ch
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-28 14:35:37 +02:00
..
bash-completion bpftool: Add sock_release help info for cgroup attach/prog load command 2021-06-03 09:00:51 +02:00
Documentation bpftool: Add sock_release help info for cgroup attach/prog load command 2021-06-03 09:00:51 +02:00
skeleton tools, bpftool: Remove two unused variables. 2020-10-29 15:23:18 +01:00
.gitignore
btf_dumper.c tools/bpftool: Fix compilation warnings in 32-bit mode 2020-08-13 16:45:41 -07:00
btf.c bpftool: Fix maybe-uninitialized warnings 2021-05-14 09:50:29 +02:00
cfg.c
cfg.h
cgroup.c bpftool: Add sock_release help info for cgroup attach/prog load command 2021-06-03 09:00:51 +02:00
common.c bpftool: Check malloc return value in mount_bpffs_for_pin 2021-07-28 14:35:37 +02:00
feature.c tools, bpftool: Avoid array index warnings. 2020-10-29 15:22:57 +01:00
gen.c tools/bpftool: Remove libbpf_internal.h usage in bpftool 2020-08-18 18:38:25 -07:00
iter.c tools/bpf: Support new uapi for map element bpf iterator 2020-08-06 16:39:14 -07:00
jit_disasm.c bpftool: Properly close va_list 'ap' by va_end() on error 2021-07-25 14:36:21 +02:00
json_writer.c bpftool: Support dumping metadata 2020-09-15 18:28:27 -07:00
json_writer.h bpftool: Support dumping metadata 2020-09-15 18:28:27 -07:00
link.c bpftool: Implement link_query for bpf iterators 2020-08-21 14:01:39 -07:00
main.c tools/bpftool: Fix error return code in do_batch() 2021-07-14 16:56:20 +02:00
main.h tools/bpftool: Fix compilation warnings in 32-bit mode 2020-08-13 16:45:41 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
map_perf_ring.c
map.c bpftool: Fix maybe-uninitialized warnings 2021-05-14 09:50:29 +02:00
net.c bpftool: Fix compilation failure for net.o with older glibc 2021-01-17 14:17:03 +01:00
netlink_dumper.c
netlink_dumper.h
perf.c
pids.c tools/bpftool: Fix PID fetching with a lot of results 2020-12-08 16:45:20 +01:00
prog.c bpftool: Add sock_release help info for cgroup attach/prog load command 2021-06-03 09:00:51 +02:00
struct_ops.c
tracelog.c
xlated_dumper.c
xlated_dumper.h