linux-stable/kernel/bpf
Alexei Starovoitov 19e2dbb7dd bpf: improve stacksafe state comparison
"if (old->allocated_stack > cur->allocated_stack)" check is too conservative.
In some cases explored stack could have allocated more space,
but that stack space was not live.
The test case improves from 19 to 15 processed insns
and improvement on real programs is significant as well:

                       before    after
bpf_lb-DLB_L3.o        1940      1831
bpf_lb-DLB_L4.o        3089      3029
bpf_lb-DUNKNOWN.o      1065      1064
bpf_lxc-DDROP_ALL.o    28052     26309
bpf_lxc-DUNKNOWN.o     35487     33517
bpf_netdev.o           10864     9713
bpf_overlay.o          6643      6184
bpf_lcx_jit.o          38437     37335

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Edward Cree <ecree@solarflare.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-12-15 01:28:32 +01:00
..
arraymap.c bpf: pass struct btf pointer to the map_check_btf() callback 2018-12-12 15:33:33 -08:00
bpf_lru_list.c
bpf_lru_list.h
btf.c bpf: Create a new btf_name_by_offset() for non type name use case 2018-12-14 14:17:34 -08:00
cgroup.c
core.c bpf: Add bpf_line_info support 2018-12-09 13:54:38 -08:00
cpumap.c
devmap.c
disasm.c
disasm.h
hashtab.c bpf: allow zero-initializing hash map seed 2018-11-20 00:53:39 +01:00
helpers.c
inode.c
local_storage.c bpf: add bpffs pretty print for cgroup local storage maps 2018-12-12 15:33:38 -08:00
lpm_trie.c bpf: pass struct btf pointer to the map_check_btf() callback 2018-12-12 15:33:33 -08:00
Makefile
map_in_map.c
map_in_map.h
offload.c bpf: fix null pointer dereference on pointer offload 2018-11-16 20:48:27 -08:00
percpu_freelist.c
percpu_freelist.h
queue_stack_maps.c bpf: fix integer overflow in queue_stack_map 2018-11-22 21:29:40 +01:00
reuseport_array.c
stackmap.c
syscall.c bpf: remove obsolete prog->aux sanitation in bpf_insn_prepare_dump 2018-12-13 12:42:44 -08:00
tnum.c
verifier.c bpf: improve stacksafe state comparison 2018-12-15 01:28:32 +01:00
xskmap.c