Daniel Borkmann
0962590e55
bpf: fix partial copy of map_ptr when dst is scalar
...
ALU operations on pointers such as scalar_reg += map_value_ptr are
handled in adjust_ptr_min_max_vals(). Problem is however that map_ptr
and range in the register state share a union, so transferring state
through dst_reg->range = ptr_reg->range is just buggy as any new
map_ptr in the dst_reg is then truncated (or null) for subsequent
checks. Fix this by adding a raw member and use it for copying state
over to dst_reg.
Fixes: f1174f77b5 ("bpf/verifier: rework value tracking")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Cc: Edward Cree <ecree@solarflare.com >
Acked-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2018-10-31 16:53:17 -07:00
..
2018-10-10 13:47:06 +02:00
2018-10-16 11:13:50 +02:00
2018-10-26 10:50:10 -07:00
2018-10-23 08:45:05 +01:00
2018-10-25 17:57:35 -07:00
2018-10-25 06:28:08 -07:00
2018-10-26 07:38:19 -07:00
2018-10-23 01:09:22 +01:00
2018-10-16 10:01:48 +02:00
2018-10-12 15:25:17 +01:00
2018-10-26 08:14:13 -07:00
2018-10-29 15:37:33 -07:00
2018-10-26 07:38:19 -07:00
2018-10-26 16:26:32 -07:00
2018-10-21 17:00:17 +01:00
2018-10-26 13:05:26 -07:00
2018-10-26 08:14:13 -07:00
2018-10-25 06:50:48 -07:00
2018-10-16 10:03:00 +02:00
2018-10-20 15:39:55 -06:00
2018-10-25 11:17:40 -06:00
2018-10-20 15:39:54 -06:00
2018-10-15 20:05:18 -06:00
2018-10-25 11:17:40 -06:00
2018-10-19 13:24:31 -07:00
2018-10-31 16:53:17 -07:00
2018-10-19 13:24:31 -07:00
2018-10-26 16:26:32 -07:00
2018-10-26 16:26:32 -07:00
2018-10-25 11:14:36 -07:00
2018-10-25 11:14:36 -07:00
2018-10-25 16:43:35 -07:00
2018-10-23 11:14:47 +01:00
2018-10-28 13:26:45 -07:00
2018-10-19 07:53:18 +02:00
2018-10-26 16:26:32 -07:00
2018-10-26 12:57:38 -07:00
2018-10-26 08:42:25 -07:00
2018-10-19 08:43:46 +02:00
2018-10-09 15:08:26 +02:00
2018-10-22 17:54:47 -07:00
2018-10-25 17:11:42 -07:00
2018-10-29 09:19:53 -07:00
2018-10-23 13:35:22 +02:00
2018-10-26 16:25:20 -07:00
2018-10-26 16:38:15 -07:00
2018-10-10 20:37:13 -07:00
2018-10-21 10:46:33 -04:00
2018-10-11 16:01:00 +02:00
2018-10-29 20:26:06 -07:00
2018-10-10 20:40:21 -07:00
2018-10-09 07:50:41 +02:00
2018-10-26 16:25:18 -07:00
2018-10-10 18:09:37 +02:00
2018-10-11 21:55:58 +02:00
2018-10-09 08:25:07 -06:00
2018-10-26 16:25:18 -07:00
2018-10-10 15:20:54 -05:00
2018-10-09 09:56:33 +02:00
2018-10-24 11:49:35 +01:00
2018-10-26 16:25:19 -07:00
2018-10-26 16:38:15 -07:00
2018-10-26 16:26:35 -07:00
2018-10-17 12:18:16 -05:00
2018-10-19 17:02:23 -07:00
2018-10-26 16:38:15 -07:00
2018-10-26 16:25:19 -07:00
2018-10-26 16:26:33 -07:00
2018-10-24 11:49:35 +01:00
2018-10-16 00:13:39 -07:00
2018-10-17 13:56:58 -07:00
2018-10-15 21:46:06 -07:00
2018-10-16 00:13:12 -07:00
2018-10-19 17:01:43 -07:00
2018-10-29 10:42:20 -07:00
2018-10-26 16:26:34 -07:00
2018-10-21 10:46:35 -04:00
2018-10-21 10:46:39 -04:00
2018-10-25 06:50:48 -07:00
2018-10-10 15:47:00 -05:00
2018-10-17 12:18:17 -05:00
2018-10-25 06:50:48 -07:00
2018-10-26 16:26:35 -07:00
2018-10-18 12:25:10 +02:00
2018-10-26 16:26:32 -07:00
2018-10-26 16:26:32 -07:00
2018-10-22 07:11:58 -07:00
2018-10-24 11:22:39 +01:00
2018-10-11 15:28:04 +01:00
2018-10-13 20:31:37 +03:00
2018-10-21 10:46:48 -04:00
2018-10-21 12:07:26 +01:00
2018-10-26 16:26:33 -07:00
2018-10-10 20:34:14 -05:00
2018-10-17 22:31:30 -07:00
2018-10-20 21:37:11 +02:00
2018-10-26 16:26:31 -07:00
2018-10-09 16:51:11 +02:00
2018-10-09 11:20:55 +02:00
2018-10-11 12:12:55 +02:00
2018-10-12 12:35:02 +02:00
2018-10-28 11:35:40 -07:00
2018-10-19 08:48:28 +02:00
2018-10-11 09:16:44 -07:00
2018-10-15 22:56:41 -07:00
2018-10-25 11:14:36 -07:00
2018-10-17 15:35:29 -04:00
2018-10-17 15:35:29 -04:00
2018-10-13 00:50:53 -04:00
2018-10-22 19:37:36 -07:00
2018-10-16 00:11:13 -04:00
2018-10-21 10:46:46 -04:00