Star64_linux/kernel/bpf
Yoshiki Komachi da6c7faeb1 bpf/btf: Fix BTF verification of enum members in struct/union
btf_enum_check_member() was currently sure to recognize the size of
"enum" type members in struct/union as the size of "int" even if
its size was packed.

This patch fixes BTF enum verification to use the correct size
of member in BPF programs.

Fixes: 179cde8cef ("bpf: btf: Check members of struct/union")
Signed-off-by: Yoshiki Komachi <komachi.yoshiki@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/1583825550-18606-2-git-send-email-komachi.yoshiki@gmail.com
2020-03-10 10:00:41 -07:00
..
arraymap.c
bpf_lru_list.c
bpf_lru_list.h
bpf_struct_ops.c bpf: Return better error value in delete_elem for struct_ops map 2020-03-05 14:15:48 -08:00
bpf_struct_ops_types.h
btf.c bpf/btf: Fix BTF verification of enum members in struct/union 2020-03-10 10:00:41 -07:00
cgroup.c bpf: Fix cgroup ref leak in cgroup_bpf_inherit on out-of-memory 2020-03-09 19:58:54 -07:00
core.c
cpumap.c
devmap.c
disasm.c
disasm.h
dispatcher.c
hashtab.c bpf: Fix a potential deadlock with bpf_map_do_batch 2020-02-19 16:01:25 -08:00
helpers.c
inode.c
local_storage.c
lpm_trie.c
Makefile
map_in_map.c
map_in_map.h
offload.c bpf, offload: Replace bitwise AND by logical AND in bpf_prog_offload_info_fill 2020-02-17 16:53:49 +01:00
percpu_freelist.c
percpu_freelist.h
queue_stack_maps.c
reuseport_array.c
stackmap.c
syscall.c bpf: Do not allow map_freeze in struct_ops map 2020-03-05 14:15:49 -08:00
sysfs_btf.c
tnum.c
trampoline.c
verifier.c
xskmap.c