Files
kernel_google_msm-4.14/kernel
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
..
2023-12-20 15:32:35 +01:00
2020-04-02 16:34:20 +02:00
2021-02-07 14:47:41 +01:00