From patchwork Wed Jun 19 21:46:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 167272 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1232669ilk; Wed, 19 Jun 2019 14:46:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4d67rziF9x3jJqyYZ6ghrgfRd8QwfCEf+vZDuFfUQ3MPF+FRQdk9Mc1nDv5axVAo/wKd1 X-Received: by 2002:a17:902:a5c5:: with SMTP id t5mr123576660plq.288.1560980805037; Wed, 19 Jun 2019 14:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560980805; cv=none; d=google.com; s=arc-20160816; b=GQLSc8ZL1W6MMTuX8d5VHlC4dagh1L282erFdI2wl5gcgg7Ld5WOEnLXYValK9MQHI NO3cNC/t9xz04MywlwRv6rskHJ4+6lAqE+AOBa8KeL91IoNXgP7icTtxKL6HqCCXDIJc 3jYpb21UeszhluOHuRK6A4mn5gCozOQR9BWwEcpKOhvUFREuBFsEcP8aT81XYy4R3iE+ /L2+bhB/7OqvxZR25eb+AzmyQRUij0lqxWOkKSJSf1d1ttsK5jcBus5J1v/mVOd56EnK b8Yxf4kWrk+bpMr+SEyN3x5eaRXRgFAKsrWw3T9yEG5L577V615VWEpY0UZ0RAYgUBDj LL9A== 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=4X0q3ZGdXuAsyGij9zP0aVkSV4m6i3hNuHj/bJtzKbk=; b=PeoF9zoBNcZyVvnzKFMpRLvKsrq4tYQwQrcheD7e5SrtelByfxLFPUCUkWbA/bEEUJ om28A4QxcPfmD6vRgaRIHSAZ8SXvJ8Z65lgIp4qgm8dc7cXCeeODsNIuLJuLRte4uLgf 8Z8p8mJGyzX2ZUQnMfHcs3ROIxV06gEuj8d+BgR11nKSIk1q9PSdDOW6HtHtDWz2BbEa pESmMyiPgFfoVyx2hspk2LlEOEDTRz8qPTPNvrLyIxx2ESexTKscERqg2HXAKxAKR6Fh B4sDAnk6isZVcngxuK9vD5452YMe5ukyQUcVxQZGwpgz3D+N7RUuaQuTZtHSK5iLpZ3O WVUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V2tgXRj2; 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 21si3939780pgl.511.2019.06.19.14.46.44; Wed, 19 Jun 2019 14:46:45 -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=V2tgXRj2; 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 S1730618AbfFSVqo (ORCPT + 3 others); Wed, 19 Jun 2019 17:46:44 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:34923 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfFSVqo (ORCPT ); Wed, 19 Jun 2019 17:46:44 -0400 Received: by mail-wr1-f50.google.com with SMTP id m3so825999wrv.2 for ; Wed, 19 Jun 2019 14:46:42 -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=4X0q3ZGdXuAsyGij9zP0aVkSV4m6i3hNuHj/bJtzKbk=; b=V2tgXRj2y7m8VatJglNmR4l1fo6bmm2YaN8EoREejtR0jsORmMM9ZCorHrE2w6n1mb VtXpUQo+78fLl314yU2crd1RAc5mBsQ4zIIYScU3IcbK5wJoUO1y0y1D57LiYvhM+Ic5 NgyYJSQ7o6b19VVMaVtye2xhMgKyJGLsrt05ikuK/lh+EwvqMY5Wb+saHAzyXP0qVXix +jOOvkhSOQ9CV+rIbT+3UDV0Al17tcODW6DxaWwp4UExvbFuW1mmq5UndEH71YbSz6jz 7K07BofXvg/81Npv2WsxGB9WO4gYzr5hFPhiKTBwczs/o201oS5vQkibTJXUmpL6qmuy gGew== 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=4X0q3ZGdXuAsyGij9zP0aVkSV4m6i3hNuHj/bJtzKbk=; b=e3Xc81tAK9Tw3WEzeYEo2bS9cS8F+eAZl9KX0N8QV8vbHLYqLXWh4KZFQLlAi4JsLE g7T1RZWNVyaMwZw92zd9o9tqiAgnF/FwsrPKHe3wC8gHqroDestdd+mu6DAIdIwdqxCn CiL1cYmNZQQTMgH+rQyy8XtCqgzoK7eDagS4WzfdxPJw7z1rLQSDmEt1YB2DJQ5lEoZI t4FMPcgykDU2T28YvJpHPGI0DOyKVhGGRJdTkyN8uPdS3wiPm5n580l5uOvH8wa8nYsN 4QRcZYnXN8QryHRdTx4l3cTcJ6mBI4VCIdEJervyl6jdBc/Jvw1/xmXFS1SF8I/Wgi0C 5LzQ== X-Gm-Message-State: APjAAAUwuEUnN2GeFC0QnCJkFNBu8NrfE+lMDbMT30+OSY5aRTjmynI1 aHOjTW6hso/j7dTExo4sVkQ+pw== X-Received: by 2002:adf:ea88:: with SMTP id s8mr71248991wrm.68.1560980801901; Wed, 19 Jun 2019 14:46:41 -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 e11sm27109620wrc.9.2019.06.19.14.46.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 14:46:41 -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 v4 0/1] net: fastopen: follow-up tweaks for SipHash switch Date: Wed, 19 Jun 2019 23:46:27 +0200 Message-Id: <20190619214628.2960-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 v3: - switch from compount literals to individual assignments of the siphash key fields 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 | 35 ++++++++++---------- 5 files changed, 24 insertions(+), 27 deletions(-) -- 2.17.1