Files
kernel_samsung_a71/kernel
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
..
2024-05-13 18:30:34 +02:00
2020-01-13 19:40:11 +00:00
2019-08-19 12:42:20 -07:00
2020-04-02 16:34:20 +02:00
2024-05-13 18:30:34 +02:00
2021-02-07 14:47:41 +01:00