Stanislav Fomichev 9babe825da bpf: always allocate at least 16 bytes for setsockopt hook
Since we always allocate memory, allocate just a little bit more
for the BPF program in case it need to override user input with
bigger value. The canonical example is TCP_CONGESTION where
input string might be too small to override (nv -> bbr or cubic).

16 bytes are chosen to match the size of TCP_CA_NAME_MAX and can
be extended in the future if needed.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2019-08-01 13:55:52 -07:00
..
2019-07-20 12:09:52 -07:00
2019-07-15 20:44:49 -07:00
2019-07-20 10:20:27 -07:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-05-28 17:46:43 -04:00
2019-07-08 19:19:37 -07:00
2019-07-16 11:30:07 -07:00
2019-06-03 11:50:18 +02:00
2019-05-24 20:16:01 +02:00
2019-05-24 20:16:01 +02:00
2019-07-18 12:06:57 -07:00
2019-07-08 19:36:47 -07:00
2019-07-08 19:36:47 -07:00
2019-04-18 14:05:51 +02:00