From patchwork Wed Jun 19 21:27:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 167270 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1218597ilk; Wed, 19 Jun 2019 14:28:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFrbawnq9u3V0WpYxZ9gPlR1fg1NmQ7luCRCYST2ZUNeWRgdcyUKLJFjC1ukmoGzutfqw0 X-Received: by 2002:a17:902:a5c5:: with SMTP id t5mr123509833plq.288.1560979686319; Wed, 19 Jun 2019 14:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560979686; cv=none; d=google.com; s=arc-20160816; b=yV2AncZ43ZXLZLNa9F1E1ua3HYuVvEPSQZs0n3bfhna7aDSsV1RJPMLnzCzEEEtLn/ T96J4rVyVo2DdNkJ4QiaM529X9n8k0jhPJyMg7M06joaaj+yOaHiqVBQbC5VTIYybdcJ m0S0bo6kqyxJ3wDBcvEBWGnRyMzKOEcTsooQrM5GsdceTGR4It6yuSKTEx8xkcjY0KAP krZKxKbZ1jwY5RvoeSxTBpc4HmJo/eXvMDY5aGeDInMKmVdL+DgJr2YY647QDhgGxpdE uvbpj7Hjv3PbBEInLDFSo3/+SGw2FgElSp6xAu3w2f7044/QFysRlonfBz6+Sebh9Zv1 DxPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=2W+A8exQdTLW2o/0GNC5h3yhth+mAF462dKpVE0akAo=; b=M2uA81Hb9vwoj0jYXDWR1GkrPAKDZ+dea3zmowrl7ZRPqFN7SadgIGHkxAevp3U5rA LQ39on2poCmce8RJAXsX0LCtQMABNT6RHSbhsEXBby9Jnq1UNZzPAM2ONU7cOovvp520 2YR+zqLIzHOaXkZHSLmzDh0iFAGIcppOcb3h0x7a+MosmcezvAY44gPizXbxlHORVV08 vapmOP2dMMAOYNBGXNxNE1TVstD+h39+0mSD+w4N+5rQzid0XvvlHi75l1ZFt4ARFEuj DELd7weVeis18JDdYDiAWEC6gfEnqrxrW88YSYBKPuIWgJsvJf2CEt+5hNCQFvP/SKAv kkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KPt+kATM; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v204si3886783pgb.80.2019.06.19.14.28.06; Wed, 19 Jun 2019 14:28:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KPt+kATM; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730574AbfFSV2E (ORCPT + 3 others); Wed, 19 Jun 2019 17:28:04 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53955 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfFSV2E (ORCPT ); Wed, 19 Jun 2019 17:28:04 -0400 Received: by mail-wm1-f66.google.com with SMTP id x15so924104wmj.3 for ; Wed, 19 Jun 2019 14:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=2W+A8exQdTLW2o/0GNC5h3yhth+mAF462dKpVE0akAo=; b=KPt+kATM0pNRSxDxTYwGPefvmQU9t7J7bsC+3A3g/U5Mj89z8dRxUMsb/AkxX8jSOW ra/zd3KFE0bcd4xTrpuFPudTXz/nrJyJ8mVzYYIlItjbyJc9r8IumkGxh+GhRELWpba2 6/ISjeN9QEY9vTiIeqZ0d8C8qy5yZBiMjXw5/PTsR418SUFfkszAMzFhNdfyj+zig4s9 LtqCCVmv9GxLRV8aEKz3NtHTDAUntfWfpr6S+pJ8uq5O1CDPtSIN/U6P1lWHSdHeDdG2 79g8VeGyeqtnSn5F4+eeQJApe/4ZjEvk+q9jXPF2GcUXYHEzPS0Y8RaKw/wC7quaRPLr K6rg== 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; bh=2W+A8exQdTLW2o/0GNC5h3yhth+mAF462dKpVE0akAo=; b=b6aE5x8th5Qnk9fatgpgyOx6FLfNsQ/vIMQEbLdhKuAL2J3vQGqDfVU+t6OFPi5EIV E2rElPM7R0ugQt+P8xc7PmSmfBgiHj+wKOgLZ/kNQJATxHJInbgVPSb5W6IcElX5ZlOT q6Cxk4y5PAoTGfoDtkqgrTJd02QQzhODoHqwnXLOfapKbnW8tSpJbZ29qXWBzfUwrwgy 681RvFRiGH5qu33qOpqskYkDiWr8IREjKu5jVZUj1l+1eDiQzneBSu/VCyeRhRfE22s5 D6Zh/n70v4FrCXkmSjt9PBMXiLIMzV8EKW55GHobl74n4VQ/sz68GuSZbT/Fl+SSRkT0 I4Mw== X-Gm-Message-State: APjAAAUqiHOldbLF2dX9yRDK5W6grPxj5mEr0OnnyKFQ1XnLfpWZ+oVk yUnPqmhQtSWtDc+SvJw6BwFS8Q== X-Received: by 2002:a1c:dc45:: with SMTP id t66mr10179970wmg.63.1560979682493; Wed, 19 Jun 2019 14:28:02 -0700 (PDT) Received: from e111045-lin.arm.com (lfbn-nic-1-216-10.w2-15.abo.wanadoo.fr. [2.15.62.10]) by smtp.gmail.com with ESMTPSA id e21sm24975786wra.27.2019.06.19.14.28.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 14:28:01 -0700 (PDT) From: Ard Biesheuvel To: netdev@vger.kernel.org Cc: Ard Biesheuvel , Eric Biggers , linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, edumazet@google.com, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, jbaron@akamai.com, cpaasch@apple.com, David.Laight@aculab.com, ycheng@google.com Subject: [PATCH net-next v3 0/1] net: fastopen: follow-up tweaks for SipHash switch Date: Wed, 19 Jun 2019 23:27:46 +0200 Message-Id: <20190619212747.25773-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Some fixes for the fastopen code after switching to SipHash, which were spotted in review after the change had already been queued. Changes since v2: - add missing pairs of braces in compound literals used to assign the fastopen keys cc: Eric Biggers cc: linux-crypto@vger.kernel.org cc: herbert@gondor.apana.org.au cc: edumazet@google.com cc: davem@davemloft.net cc: kuznet@ms2.inr.ac.ru cc: yoshfuji@linux-ipv6.org cc: jbaron@akamai.com cc: cpaasch@apple.com cc: David.Laight@aculab.com cc: ycheng@google.com Ard Biesheuvel (1): net: fastopen: robustness and endianness fixes for SipHash include/linux/tcp.h | 2 +- include/net/tcp.h | 8 ++-- net/ipv4/sysctl_net_ipv4.c | 3 +- net/ipv4/tcp.c | 3 +- net/ipv4/tcp_fastopen.c | 39 +++++++++++--------- 5 files changed, 28 insertions(+), 27 deletions(-) -- 2.17.1