bpf: Improve verifier error messages for users
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Mar 2021 08:30:01 +0000 (09:30 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Apr 2021 21:51:48 +0000 (23:51 +0200)
commita6aaece00a57fa6f22575364b3903dfbccf5345d
treed68b11e79877a5468a87cae5fba6ad20db20e914
parentb658bbb844e28f1862867f37e8ca11a8e2aa94a3
bpf: Improve verifier error messages for users

Consolidate all error handling and provide more user-friendly error messages
from sanitize_ptr_alu() and sanitize_val_alu().

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c