android_kernel_xiaomi_sm7250/tools/bpf/bpftool
Lam Thai ff80b97fa4 bpftool: Fix a wrong type cast in btf_dumper_int
[ Upstream commit 7184aef9c0f7a81db8fd18d183ee42481d89bf35 ]

When `data` points to a boolean value, casting it to `int *` is problematic
and could lead to a wrong value being passed to `jsonw_bool`. Change the
cast to `bool *` instead.

Fixes: b12d6ec097 ("bpf: btf: add btf print functionality")
Signed-off-by: Lam Thai <lamthai@arista.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220824225859.9038-1-lamthai@arista.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:19:24 +02:00
..
bash-completion tools: bpftool: fix completion for "bpftool map update" 2019-12-01 09:16:47 +01:00
Documentation tools: bpf: build and install man page for eBPF helpers from bpftool/ 2018-07-12 18:55:53 +02:00
.gitignore bpftool: exclude bash-completion/bpftool from .gitignore pattern 2019-05-31 06:46:08 -07:00
btf_dumper.c bpftool: Fix a wrong type cast in btf_dumper_int 2022-10-26 13:19:24 +02:00
cfg.c tools: bpftool: generate .dot graph from CFG information 2018-03-01 18:29:49 -08:00
cfg.h tools: bpftool: detect sub-programs from the eBPF sequence 2018-03-01 18:29:48 -08:00
cgroup.c tools: bpftool: use correct argument in cgroup errors 2020-01-27 14:50:58 +01:00
common.c bpftool: Check malloc return value in mount_bpffs_for_pin 2021-07-28 11:13:48 +02:00
jit_disasm.c bpftool: Properly close va_list 'ap' by va_end() on error 2021-07-28 11:13:45 +02:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools/bpftool: Fix error return code in do_batch() 2021-07-20 16:15:49 +02:00
main.h tools: bpftool: pass an argument to silence open_obj_pinned() 2019-12-01 09:17:31 +01:00
Makefile tools: bpftool: don't pass FEATURES_DUMP to libbpf 2018-07-16 16:36:57 -07:00
map_perf_ring.c tools: bpftool: fix arguments for p_err() in do_event_pipe() 2020-01-27 14:51:04 +01:00
map.c bpftool: fix percpu maps updating 2019-03-13 14:02:34 -07:00
perf.c tools/bpftool: fix a bug in bpftool perf 2018-06-13 02:03:17 +02:00
prog.c tools: bpftool: close prog FD before exit on showing a single program 2019-09-21 07:16:52 +02:00
xlated_dumper.c tools: bpf: make use of reallocarray 2018-07-11 22:13:34 +02:00
xlated_dumper.h tools: bpftool: add delimiters to multi-function JITed dumps 2018-05-24 09:20:50 +02:00