From: Alexei Starovoitov Date: Thu, 1 Aug 2019 20:55:53 +0000 (-0700) Subject: Merge branch 'setsockopt-extra-mem' X-Git-Tag: for-linus-2019-09-27~91^2~248^2~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=02bc2b64940e00cf1e2809600498433f1fbc698a;p=linux-2.6-block.git 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 --- 02bc2b64940e00cf1e2809600498433f1fbc698a