Stanislav Fomichev
8ca901e8ff
UPSTREAM: 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.
Change-Id: Ib700728cac279a57b4ad9e1c0af83b042ba8cb2e
Signed-off-by: Stanislav Fomichev <sdf@google.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2025-10-02 22:15:02 +08:00
..
2025-10-02 22:15:02 +08:00
2025-10-02 22:14:52 +08:00
2025-09-29 21:58:19 +08:00
2025-10-02 22:14:57 +08:00
2025-09-29 21:59:33 +08:00
2024-10-11 16:00:11 +02:00
2022-10-26 13:16:57 +02:00
2025-09-29 21:58:19 +08:00
2025-09-29 21:58:19 +08:00
2025-09-29 21:58:19 +08:00
2025-09-29 21:58:19 +08:00
2025-10-02 22:14:34 +08:00
2025-10-02 22:14:58 +08:00
2025-10-02 22:14:42 +08:00
2019-06-12 12:34:50 +00:00
2023-01-18 09:26:30 +01:00
2023-08-11 11:33:32 +02:00
2022-09-05 10:25:02 +02:00
2023-11-28 16:45:44 +00:00
2025-09-29 21:58:19 +08:00
2020-06-20 10:25:10 +02:00
2020-06-20 10:25:10 +02:00
2024-10-11 16:00:11 +02:00
2025-10-02 22:14:14 +08:00
2020-04-30 10:08:09 -07:00
2023-04-05 11:14:19 +02:00
2020-09-06 01:12:33 +05:30
2024-10-11 16:00:11 +02:00
2025-10-02 22:14:54 +08:00
2024-10-11 16:00:11 +02:00
2024-05-13 18:30:34 +02:00
2025-09-29 21:58:19 +08:00
2023-06-09 10:22:53 +02:00
2025-10-02 22:14:57 +08:00
2024-05-13 18:30:34 +02:00
2020-07-12 21:32:07 -07:00
2019-06-25 03:05:18 -07:00
2025-10-02 22:14:14 +08:00
2024-05-13 18:30:34 +02:00
2025-10-02 22:14:32 +08:00
2020-01-13 19:40:11 +00:00
2023-08-11 11:33:34 +02:00
2022-07-02 16:18:11 +02:00
2025-09-29 21:59:34 +08:00
2020-04-24 08:00:44 +02:00
2025-10-02 22:14:14 +08:00
2025-09-29 21:58:19 +08:00
2021-02-10 10:11:19 +01:00
2019-08-19 12:42:20 -07:00
2025-10-02 22:14:29 +08:00
2020-04-02 16:34:20 +02:00
2023-11-28 16:45:43 +00:00
2024-10-11 16:00:11 +02:00
2024-07-15 17:44:31 +00:00
2021-09-22 11:45:32 +02:00
2024-05-13 18:30:34 +02:00
2022-08-25 11:11:24 +02:00
2025-10-02 22:14:14 +08:00
2024-10-11 16:00:11 +02:00
2020-08-26 10:29:54 +02:00
2020-06-02 16:13:43 +00:00
2025-10-02 22:14:14 +08:00
2025-09-29 21:58:19 +08:00
2025-09-29 21:58:19 +08:00
2021-02-07 14:47:41 +01:00
2024-10-11 16:00:11 +02:00
2019-08-12 13:29:46 -04:00
2025-09-29 21:58:19 +08:00
2025-10-02 22:14:51 +08:00
2020-06-17 12:53:11 +05:30
2025-10-02 22:14:41 +08:00
2022-02-23 11:57:34 +01:00
2025-10-02 22:13:20 +08:00
2021-05-22 10:57:35 +02:00
2024-10-10 10:27:24 +00:00
2020-08-05 11:41:56 +05:30
2025-09-29 21:58:19 +08:00