linux/kernel/bpf
Greg Kroah-Hartman 5c6f258879 bpf: Explicitly memset some bpf info structures declared on the stack
Trying to initialize a structure with "= {};" will not always clean out
all padding locations in a structure. So be explicit and call memset to
initialize everything for a number of bpf information structures that
are then copied from userspace, sometimes from smaller memory locations
than the size of the structure.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200320162258.GA794295@kroah.com
2020-03-20 21:05:22 +01: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: Explicitly memset some bpf info structures declared on the stack 2020-03-20 21:05:22 +01: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 bpf, xdp: Remove no longer required rcu_read_{un}lock() 2020-01-27 11:16:25 +01:00
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 Merge branch 'merge.nfs-fs_parse.1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-02-08 13:26:41 -08:00
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: Explicitly memset some bpf info structures declared on the stack 2020-03-20 21:05:22 +01:00
sysfs_btf.c
tnum.c
trampoline.c
verifier.c
xskmap.c