Message ID | 20191213204824.2464461-10-matthieu.baerts@tessares.net |
---|---|
State | Deferred, archived |
Headers | show
Return-Path: <mptcp-bounces@lists.01.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.01.org (client-ip=2001:19d0:306:5::1; helo=ml01.01.org; envelope-from=mptcp-bounces@lists.01.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tessares.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=tessares-net.20150623.gappssmtp.com header.i=@tessares-net.20150623.gappssmtp.com header.b="E7nn3ZwL"; dkim-atps=neutral Received: from ml01.01.org (ml01.01.org [IPv6:2001:19d0:306:5::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZN7w4kp8z9sR7 for <incoming@patchwork.ozlabs.org>; Sat, 14 Dec 2019 07:49:32 +1100 (AEDT) Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8EF7110097F15; Fri, 13 Dec 2019 12:52:53 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::441; helo=mail-wr1-x441.google.com; envelope-from=matthieu.baerts@tessares.net; receiver=<UNKNOWN> Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 51AFA10113693 for <mptcp@lists.01.org>; Fri, 13 Dec 2019 12:52:51 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id z7so115547wrl.13 for <mptcp@lists.01.org>; Fri, 13 Dec 2019 12:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lWO+beDtzeFLU24S2Qsbp6k5gWe8p0IeMMTueJPsEu8=; b=E7nn3ZwLODS/QFsgbOnX08P+Be9w+vdx25z3YQ4aanHDShLnjDwuX4W8poINGqkXql z2kkVZROp++1zPjQq2QyH6pSZEi/JBxun7C0t5zfP0Amy6shDXGKDwsxUCiGYqyoR0vA eaTdcYUoMojba/7ArYbRI2gqeTTILQwji4NsUQzGPOf/8FWZO24gy3teyyzHM3hSWcHm 4uGrc0XBwdXey5zSrAx/S4TQdj7mPwB8Zm1RB1DkFo2EnurSnuP2IEyzR4jy1ctFySUb 0lY6lKw83+g2WwUrwuz3CIoBhPmLv8nMF/Sd3/sR3mxLlfdLodwdVgLk5QBRzJ5PqAwD RvYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lWO+beDtzeFLU24S2Qsbp6k5gWe8p0IeMMTueJPsEu8=; b=RoTioBku+6oIbBX0kHVimBRSQ6eADNTPEE/NjaVYFuEXmsm4Er77Zdxl9AAipD3Ywz fABAxDI4gfAYSnA1oy84R8eAoZ65vmr5GoCDxiC8gFfVabpNGCxdAdJbzuyry0dWR18x kTOdvf4i+8WXNTQ8ROyqF0odlUBFAXS94Y2wxtEYZc1F5T1Jjy5V2+VGNYjop0TYukGH fhMQiFqRXCF+C23YK6Q9TEexZHeLsNlX6VKTntTCSdv6gOPFWw022snUxpVpmn5niZUt GtvvW3RdXb6Irz7saaLKsVFQRsGDyV7s2PH6hcjs2HclUvDCMOzMswbnIdvdFty0HMQk E78A== X-Gm-Message-State: APjAAAUzQg56KjN7QM6fj1ySBe0aWfdaug2Dg9OHRWI51wRZoGhcXhaB Op5KoS7a/niOdwBi1PqOToR3oWQgfB5+dQ== X-Google-Smtp-Source: APXvYqwWfGyy7r5CSgd8Wc+O3rwJbSnGESQyxM129YxfNROXLQhFZ/uTJf/ZTm7loNdMqq+H6tKzgA== X-Received: by 2002:adf:8150:: with SMTP id 74mr15479144wrm.114.1576270167178; Fri, 13 Dec 2019 12:49:27 -0800 (PST) Received: from tsr-vdi-mbaerts.nix.tessares.net (static.23.216.130.94.clients.your-server.de. [94.130.216.23]) by smtp.gmail.com with ESMTPSA id k8sm11480708wrl.3.2019.12.13.12.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 12:49:26 -0800 (PST) From: Matthieu Baerts <matthieu.baerts@tessares.net> To: mptcp@lists.01.org Date: Fri, 13 Dec 2019 21:48:22 +0100 Message-Id: <20191213204824.2464461-10-matthieu.baerts@tessares.net> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191213204824.2464461-1-matthieu.baerts@tessares.net> References: <20191213204824.2464461-1-matthieu.baerts@tessares.net> MIME-Version: 1.0 Message-ID-Hash: G7JMFOJJLKD62JDG4DRQSSH7GYYWZ7QD X-Message-ID-Hash: G7JMFOJJLKD62JDG4DRQSSH7GYYWZ7QD X-MailFrom: matthieu.baerts@tessares.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Paolo Abeni <paolo.abeni@gmail.com> X-Mailman-Version: 3.1.1 Precedence: list Subject: [MPTCP] [PATCH 09/11] tcp: Check for filled TCP option space before SACK List-Id: Discussions regarding MPTCP upstreaming <mptcp.lists.01.org> Archived-At: <https://lists.01.org/hyperkitty/list/mptcp@lists.01.org/message/G7JMFOJJLKD62JDG4DRQSSH7GYYWZ7QD/> List-Archive: <https://lists.01.org/hyperkitty/list/mptcp@lists.01.org/> List-Help: <mailto:mptcp-request@lists.01.org?subject=help> List-Post: <mailto:mptcp@lists.01.org> List-Subscribe: <mailto:mptcp-join@lists.01.org> List-Unsubscribe: <mailto:mptcp-leave@lists.01.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
Multipath TCP part 1: Prerequisites
|
expand
|
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 9e04d45bc0e4..710ab45badfa 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -748,6 +748,9 @@ static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb size += TCPOLEN_TSTAMP_ALIGNED; } + if (size + TCPOLEN_SACK_BASE_ALIGNED >= MAX_TCP_OPTION_SPACE) + return size; + eff_sacks = tp->rx_opt.num_sacks + tp->rx_opt.dsack; if (unlikely(eff_sacks)) { const unsigned int remaining = MAX_TCP_OPTION_SPACE - size;