bpf: add extra validation for input BPF program
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 8 Jun 2018 08:42:34 +0000 (09:42 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 07:40:27 +0000 (09:40 +0200)
commit8021917293d03d83d55e7ee4c40dada6b39cae44
tree97666b8acc2e9d5e438c2f8a837f27f1c15b158e
parent60702e8c7cbbadd4d5e6ffe4d7f470db339b0a04
bpf: add extra validation for input BPF program

Add checks for:
 - use/return uninitialized registers and/or stack data
 - possible memory access boundaries violation
 - invalid arguments for the function

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_bpf/bpf_validate.c