Message ID | 3c2e63b14324b8818437ca52ba661ceecbaa5110.1594401165.git.pabeni@redhat.com |
---|---|
State | Accepted, archived |
Delegated to: | Matthieu Baerts |
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=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=c3W4a234; 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 4B3KcH5lsYz9sDX for <incoming@patchwork.ozlabs.org>; Sat, 11 Jul 2020 03:22:39 +1000 (AEST) Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3C703100A6697; Fri, 10 Jul 2020 10:22:38 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=207.211.31.120; helo=us-smtp-1.mimecast.com; envelope-from=pabeni@redhat.com; receiver=<UNKNOWN> Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7F644100A6691 for <mptcp@lists.01.org>; Fri, 10 Jul 2020 10:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594401753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aAMtIpBTKGD5QhqYPwE7C4hLGR3PvL5AjDfq8rB3szU=; b=c3W4a234nmd3+SZMBSwhDPoB9DlGXI2EJ6bK0Hy6nyC32/oeXyWrt4BluauGcBN4oH3pkx xES8qIUnXL76ScWEWD6kqc7tqik23Q8PF6o99eAJidvTtm3Qx5ME+JWulVGbg/99/zuUOr cJDjjiap3be/Mw3tBj6pWNsl5HLaQe0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-JXOAl8DUOUKjye4y11oh5A-1; Fri, 10 Jul 2020 13:22:31 -0400 X-MC-Unique: JXOAl8DUOUKjye4y11oh5A-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 91D7E8027E5 for <mptcp@lists.01.org>; Fri, 10 Jul 2020 17:22:30 +0000 (UTC) Received: from linux.fritz.box.com (ovpn-113-230.ams2.redhat.com [10.36.113.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 00A4310021B3 for <mptcp@lists.01.org>; Fri, 10 Jul 2020 17:22:29 +0000 (UTC) From: Paolo Abeni <pabeni@redhat.com> To: mptcp@lists.01.org Date: Fri, 10 Jul 2020 19:22:13 +0200 Message-Id: <3c2e63b14324b8818437ca52ba661ceecbaa5110.1594401165.git.pabeni@redhat.com> In-Reply-To: <cover.1594401165.git.pabeni@redhat.com> References: <cover.1594401165.git.pabeni@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: TT4U4BA3LNKDV5L7VYK42OEKBYG6LNUS X-Message-ID-Hash: TT4U4BA3LNKDV5L7VYK42OEKBYG6LNUS X-MailFrom: pabeni@redhat.com 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 X-Mailman-Version: 3.1.1 Precedence: list Subject: [MPTCP] [PATCH net-next 4/9] mptcp: zero token hash at creation time. List-Id: Discussions regarding MPTCP upstreaming <mptcp.lists.01.org> Archived-At: <https://lists.01.org/hyperkitty/list/mptcp@lists.01.org/message/TT4U4BA3LNKDV5L7VYK42OEKBYG6LNUS/> 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 |
mptcp: cope better with mp_join storm
|
expand
|
diff --git a/net/mptcp/token.c b/net/mptcp/token.c index 7d8106026081..c0130e056c9a 100644 --- a/net/mptcp/token.c +++ b/net/mptcp/token.c @@ -356,7 +356,7 @@ void __init mptcp_token_init(void) sizeof(struct token_bucket), 0, 20,/* one slot per 1MB of memory */ - 0, + HASH_ZERO, NULL, &token_mask, 0,
Otherwise the 'chain_len' filed will carry random values, some token creation calls will fail due to excessive chain lenght, causing unexpected fallback to TCP. Fixes: 2c5ebd001d4f ("mptcp: refactor token container") Signed-off-by: Paolo Abeni <pabeni@redhat.com> --- net/mptcp/token.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)