Daniel Borkmann
4dc6e55e28
bpf: Move sanitize_val_alu out of op switch
...
commit f528819334 upstream.
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 >
[fllinden@amazon.com: backported to 5.4]
Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-02 11:05:04 +02:00
..
2021-05-02 11:05:04 +02:00
2021-02-17 10:35:14 +01:00
2021-03-04 10:26:10 +01:00
2020-11-18 19:20:32 +01:00
2021-01-09 13:44:55 +01:00
2021-04-14 08:24:10 +02:00
2021-03-24 11:26:45 +01:00
2019-08-19 13:03:37 +02:00
2021-04-28 13:19:14 +02:00
2021-03-30 14:35:28 +02:00
2021-03-04 10:26:50 +01:00
2021-03-04 10:26:47 +01:00
2021-03-17 17:03:57 +01:00
2021-03-24 11:26:44 +01:00
2021-04-07 14:47:42 +02:00
2020-10-01 13:17:32 +02:00
2020-06-22 09:30:59 +02:00
2020-06-22 09:30:59 +02:00
2020-06-22 09:30:59 +02:00
2019-07-30 18:34:15 +02:00
2020-06-22 09:31:22 +02:00
2020-12-30 11:50:56 +01:00
2020-01-17 19:48:42 +01:00
2020-11-18 19:20:31 +01:00
2019-08-21 22:23:48 +10:00
2020-11-24 13:29:18 +01:00
2021-01-09 13:44:55 +01:00
2019-10-06 09:11:37 -06:00
2021-03-24 11:26:44 +01:00
2020-09-03 11:27:10 +02:00
2019-08-29 15:10:10 +01:00
2020-07-16 08:16:44 +02:00
2021-01-09 13:44:55 +01:00
2021-02-03 23:25:56 +01:00
2019-09-06 23:58:44 +02:00
2021-03-04 10:26:25 +01:00
2019-08-19 21:54:15 -07:00
2020-04-17 10:50:22 +02:00
2021-02-13 13:52:54 +01:00
2021-02-07 15:35:49 +01:00
2021-01-23 15:57:55 +01:00
2021-04-07 14:47:38 +02:00
2021-04-07 14:47:38 +02:00
2021-04-07 14:47:38 +02:00
2020-10-01 13:17:23 +02:00
2020-06-17 16:40:22 +02:00
2019-10-07 15:47:19 -07:00
2019-08-19 21:54:16 -07:00
2020-11-24 13:29:24 +01:00
2020-11-18 19:20:30 +01:00
2020-08-26 10:40:51 +02:00
2020-06-24 17:50:35 +02:00
2021-03-04 10:26:45 +01:00
2020-11-10 12:37:24 +01:00
2021-02-07 15:35:49 +01:00
2019-11-04 21:19:25 +01:00
2019-10-17 12:47:12 +02:00
2020-10-01 13:17:23 +02:00
2020-10-01 13:17:10 +02:00
2021-03-17 17:03:45 +01:00
2020-01-09 10:19:54 +01:00
2019-08-01 14:30:22 -07:00
2021-03-04 10:26:32 +01:00
2020-10-14 10:32:58 +02:00
2020-02-24 08:36:52 +01:00
2021-04-14 08:24:17 +02:00