umber-kernel/tools/lib/bpf
Jakub Kicinski 5c939ebbd7 bpftool: Fix truncated netlink dumps
[ Upstream commit 3b39d73cc3379360a33eb583b17f21fe55e1288e ]

Netlink requires that the recv buffer used during dumps is at least
min(PAGE_SIZE, 8k) (see the man page). Otherwise the messages will
get truncated. Make sure bpftool follows this requirement, avoid
missing information on systems with large pages.

Acked-by: Quentin Monnet <qmo@kernel.org>
Fixes: 7084566a23 ("tools/bpftool: Remove libbpf_internal.h usage in bpftool")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20260217194150.734701-1-kuba@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-02-26 14:59:39 -08:00
..
.gitignore
Build libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
Makefile
bpf.c bpf: Implement signature verification for BPF programs 2025-09-22 18:58:03 -07:00
bpf.h libbpf: Support exclusive map creation 2025-09-18 19:11:42 -07:00
bpf_core_read.h
bpf_endian.h
bpf_gen_internal.h libbpf: Embed and verify the metadata hash in the loader 2025-09-22 19:17:55 -07:00
bpf_helpers.h bpf: add _impl suffix for bpf_stream_vprintk() kfunc 2025-11-04 17:50:25 -08:00
bpf_prog_linfo.c
bpf_tracing.h libbpf: Fix powerpc's stack register definition in bpf_tracing.h 2025-10-23 11:25:16 -07:00
btf.c libbpf: Fix parsing of multi-split BTF 2025-12-18 14:02:50 +01:00
btf.h
btf_dump.c libbpf: Fix OOB read in btf_dump_get_bitfield_value 2026-02-26 14:59:02 -08:00
btf_iter.c
btf_relocate.c
elf.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
features.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
gen_loader.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
hashmap.c
hashmap.h
libbpf.c libbpf: Fix -Wdiscarded-qualifiers under C23 2026-02-06 16:57:45 +01:00
libbpf.h libbpf: Embed and verify the metadata hash in the loader 2025-09-22 19:17:55 -07:00
libbpf.map libbpf: Support exclusive map creation 2025-09-18 19:11:42 -07:00
libbpf.pc.template
libbpf_common.h
libbpf_internal.h libbpf: move libbpf_sha256() implementation into libbpf_utils.c 2025-10-01 15:27:25 -07:00
libbpf_legacy.h
libbpf_probes.c
libbpf_utils.c libbpf: Fix undefined behavior in {get,put}_unaligned_be32() 2025-10-06 09:16:29 -07:00
libbpf_version.h libbpf: start v1.7 dev cycle 2025-07-16 18:37:27 -07:00
linker.c libbpf: Fix invalid write loop logic in bpf_linker__add_buf() 2026-02-26 14:59:38 -08:00
netlink.c bpftool: Fix truncated netlink dumps 2026-02-26 14:59:39 -08:00
nlattr.c
nlattr.h
relo_core.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
relo_core.h
ringbuf.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
skel_internal.h libbpf: Update light skeleton for signing 2025-09-22 19:17:25 -07:00
strset.c
strset.h
usdt.bpf.h libbpf: Fix USDT SIB argument handling causing unrecognized register error 2025-08-27 15:44:25 -07:00
usdt.c libbpf: move libbpf_errstr() into libbpf_utils.c 2025-10-01 15:27:25 -07:00
zip.c
zip.h