Daniel Borkmann f528819334 bpf: Move sanitize_val_alu out of op switch
Add a small sanitize_needed() helper function and move sanitize_val_alu()
out of the main opcode switch. In upcoming work, we'll move sanitize_ptr_alu()
as well out of its opcode switch so this helps to streamline both.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
2021-04-16 23:51:57 +02:00
..
2021-03-18 00:22:51 +01:00
2021-02-24 16:43:39 +01:00
2021-03-18 00:22:51 +01:00
2020-03-13 12:49:52 -07:00
2020-08-28 15:41:30 +02:00
2021-02-12 12:56:53 -08:00