Stanislav Fomichev
b6e2a60568
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-10 05:07:40 +03:00
..
2025-10-10 05:07:40 +03:00
2025-10-10 05:05:05 +03:00
2024-11-07 11:24:02 +02:00
2025-10-10 05:05:33 +03:00
2024-08-16 03:11:31 +03:00
2023-12-06 18:47:32 +02:00
2022-10-26 13:16:57 +02:00
2025-09-11 10:54:04 +03:00
2024-06-22 22:29:18 +03:00
2024-11-07 11:24:02 +02:00
2024-08-16 03:11:31 +03:00
2025-10-10 05:01:29 +03:00
2025-10-10 05:05:39 +03:00
2025-10-10 05:01:43 +03: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
2024-03-08 08:21:30 +00:00
2020-06-20 10:25:10 +02:00
2020-06-20 10:25:10 +02:00
2023-09-23 10:46:56 +02:00
2025-10-10 05:00:50 +03:00
2025-09-11 10:31:07 +03:00
2023-04-05 11:14:19 +02:00
2020-09-06 01:12:33 +05:30
2022-07-25 15:26:14 +08:00
2025-10-10 05:05:08 +03:00
2023-12-20 15:32:35 +01:00
2024-10-08 21:10:21 +03:00
2023-06-09 10:22:53 +02:00
2025-10-10 05:05:33 +03:00
2020-05-16 02:48:05 +00:00
2023-08-11 11:33:32 +02:00
2020-07-12 21:32:07 -07:00
2025-10-10 05:00:51 +03:00
2025-10-10 05:01:26 +03:00
2020-05-07 10:36:38 +00:00
2023-08-11 11:33:34 +02:00
2022-07-02 16:18:11 +02:00
2020-04-24 08:00:44 +02:00
2025-10-10 05:00:51 +03:00
2021-08-18 20:47:29 +08:00
2021-03-12 15:00:50 +08:00
2025-10-10 05:01:20 +03:00
2020-04-02 16:34:20 +02:00
2023-11-28 16:45:43 +00:00
2024-01-10 12:49:04 +00:00
2024-07-15 17:44:31 +00:00
2021-09-22 11:45:32 +02:00
2021-02-17 02:56:16 +00:00
2022-08-25 11:11:24 +02:00
2025-10-10 05:00:51 +03:00
2020-11-18 18:28:02 +01:00
2020-08-26 10:29:54 +02:00
2020-06-02 16:13:43 +00:00
2025-10-10 05:00:50 +03:00
2022-08-09 10:47:06 +08:00
2024-11-07 11:24:02 +02:00
2021-02-07 14:47:41 +01:00
2024-01-13 20:22:50 +02:00
2021-02-17 02:56:07 +00:00
2024-06-22 22:29:18 +03:00
2025-10-10 05:05:04 +03:00
2020-06-17 12:53:11 +05:30
2025-10-10 05:01:42 +03:00
2022-02-23 11:57:34 +01:00
2025-10-10 04:48:02 +03: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
2024-06-22 22:29:18 +03:00