Files
kernel_xiaomi_sm8250/kernel
Stanislav Fomichev a37f02ec18 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>
2025-09-24 21:37:44 +02:00
..
2025-09-24 21:37:19 +02:00
2023-03-06 19:14:22 +01:00
2021-02-07 14:48:38 +01:00
2024-05-03 06:16:46 +00:00