summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/map_lock.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2019-08-01 13:55:53 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-08-01 13:55:53 -0700
commit02bc2b64940e00cf1e2809600498433f1fbc698a (patch)
treeea5d70a8c8822f44c1d2bea45adc64769a6167d7 /tools/testing/selftests/bpf/prog_tests/map_lock.c
parenta98bf57391a24a68ec8381b9d35b60c2bee79150 (diff)
parentfd5ef31f370a8b7000794cd8a428b349dbfbbb80 (diff)
downloadlinux-02bc2b64940e00cf1e2809600498433f1fbc698a.tar.bz2
Merge branch 'setsockopt-extra-mem'
Stanislav Fomichev says: ==================== Current setsockopt hook is limited to the size of the buffer that user had supplied. Since we always allocate memory and copy the value into kernel space, allocate just a little bit more in case BPF program needs to override input data with a larger value. The canonical example is TCP_CONGESTION socket option where input buffer is a string and if user calls it with a short string, BPF program has no way of extending it. The tests are extended with TCP_CONGESTION use case. ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/map_lock.c')
0 files changed, 0 insertions, 0 deletions