Gianluca Borello
f0318d01b6
bpf: allow adjusted map element values to spill
...
commit 484611357c ("bpf: allow access into map value arrays")
introduces the ability to do pointer math inside a map element value via
the PTR_TO_MAP_VALUE_ADJ register type.
The current support doesn't handle the case where a PTR_TO_MAP_VALUE_ADJ
is spilled into the stack, limiting several use cases, especially when
generating bpf code from a compiler.
Handle this case by explicitly enabling the register type
PTR_TO_MAP_VALUE_ADJ to be spilled. Also, make sure that min_value and
max_value are reset just for BPF_LDX operations that don't result in a
restore of a spilled register from stack.
Signed-off-by: Gianluca Borello <g.borello@gmail.com >
Acked-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-01-09 16:56:27 -05:00
..
2017-01-09 16:56:27 -05:00
2016-10-11 15:06:32 -07:00
2016-12-14 16:04:08 -08:00
2016-12-23 16:49:12 -08:00
2016-07-15 14:54:27 +09:00
2016-12-15 12:32:35 +01:00
2016-08-26 14:42:08 +02:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-11-14 10:46:31 -08:00
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
2016-12-25 11:04:12 +01:00
2016-12-17 18:44:00 -08:00
2017-01-05 23:06:06 -08:00
2016-12-17 18:44:00 -08:00
2016-12-17 18:44:00 -08:00
2016-12-05 19:00:38 -05:00
2016-11-29 15:10:12 -05:00
2016-12-14 14:06:40 -08:00
2016-12-24 11:46:01 -08:00
2016-06-21 15:03:36 -04:00
2016-11-25 16:25:52 -05:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-26 17:30:24 -08:00
2016-12-24 11:46:01 -08:00
2016-06-30 18:05:09 -05:00
2016-01-14 16:00:49 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-07-28 16:07:41 -07:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-12 18:55:09 -08:00
2016-08-05 09:00:54 -04:00
2016-03-15 16:55:16 -07:00
2016-01-20 17:09:18 -08:00
2016-10-25 11:31:51 +02:00
2016-12-20 09:48:47 -08:00
2016-12-14 16:04:07 -08:00
2016-12-20 09:48:44 -08:00
2016-11-30 23:14:57 +11:00
2016-08-02 19:35:27 -04:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-08-02 19:35:30 -04:00
2016-12-12 18:55:06 -08:00
2016-02-09 11:54:23 +01:00
2016-12-14 17:25:18 -08:00
2016-09-09 17:34:46 -07:00
2016-04-11 22:43:43 +01:00
2016-12-24 11:46:01 -08:00
2016-02-16 13:04:58 -05:00
2016-10-25 11:08:10 +08:00
2016-11-26 11:18:01 -08:00
2016-09-22 20:00:36 -05:00
2016-05-27 15:26:11 -07:00
2016-12-24 11:46:01 -08:00
2016-11-22 12:57:38 -06:00
2016-12-14 16:04:08 -08:00
2016-04-14 12:56:09 -07:00
2016-12-14 13:57:44 -08:00
2016-12-25 17:21:22 +01:00
2016-10-26 12:02:35 +02:00
2016-10-11 15:06:33 -07:00
2016-03-01 20:36:56 +01:00
2016-10-21 15:45:47 -06:00
2016-11-16 10:15:09 +01:00
2016-12-22 22:58:37 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 16:04:07 -08:00
2016-12-24 11:46:01 -08:00
2016-08-02 19:35:02 -04:00
2016-11-15 10:54:36 -05:00
2016-08-22 10:01:49 -07:00
2016-12-09 09:13:30 -05:00
2016-02-29 09:53:09 +01:00
2016-08-31 07:28:35 -05:00
2016-12-24 11:46:01 -08:00
2016-09-05 13:52:39 +02:00
2016-09-22 20:00:36 -05:00
2016-09-22 20:00:36 -05:00
2016-12-14 16:04:08 -08:00
2016-12-14 16:04:08 -08:00
2016-03-02 10:28:47 -05:00
2016-10-19 12:12:40 -04:00