]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Centralize poisoning and poison reallocarray()
authorAndrii Nakryiko <andriin@fb.com>
Wed, 19 Aug 2020 01:36:06 +0000 (18:36 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 01:38:25 +0000 (18:38 -0700)
commit85367030a6c7ef3373347cf816c698995074f6f0
treeb0f4b19f18ec9d8d64893a4b7a3e4790851185e2
parent7084566a236fbc98beb11430d8d67dd08b2ac151
libbpf: Centralize poisoning and poison reallocarray()

Most of libbpf source files already include libbpf_internal.h, so it's a good
place to centralize identifier poisoning. So move kernel integer type
poisoning there. And also add reallocarray to a poison list to prevent
accidental use of it. libbpf_reallocarray() should be used universally
instead.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200819013607.3607269-4-andriin@fb.com
12 files changed:
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf_prog_linfo.c
tools/lib/bpf/btf.c
tools/lib/bpf/btf_dump.c
tools/lib/bpf/hashmap.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h
tools/lib/bpf/libbpf_probes.c
tools/lib/bpf/netlink.c
tools/lib/bpf/nlattr.c
tools/lib/bpf/ringbuf.c
tools/lib/bpf/xsk.c