Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4075601ybi; Tue, 18 Jun 2019 11:19:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNVxQMihp1BbdUOfczFYtMstcxX4oUIINHn07VvSAoVNBL37BIq5W/j2eqtr2qE+mVOY+O X-Received: by 2002:a17:90a:3548:: with SMTP id q66mr184538pjb.17.1560881979346; Tue, 18 Jun 2019 11:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560881979; cv=none; d=google.com; s=arc-20160816; b=TrH2vl0bTx067YoUEGM2cSo/qqPM5nS8ytuCf1C8wgHnyerYu8ZJtGhci5uc2psjg2 LJ0XMVQZDsS8zYDFFWC/x77Lnf3m7uLC0gKTeKNtyxJ2u9T0pLsY2ChPFGW9R3iVneGx eI4CieHYBsfCzYH8ldjwz9yZMvJCmTIVR9dxDxIAzyow9t+o4plfpzkbhaQKaq2iSEUM FGnqpOvEtIG50nssRqxWZou2penUgUNY5t6pfv59TtRTn/Nm3sJrvM2eDQRgM5Tcrum1 0M7YYKBDs7dzUoodOjE8I1/5HyLAphM6fKmP2UM6xbPSrC/nBZloJ/aNgDt9JU+E53u7 5QZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bNFiBDocFrqHhDhaPZDBNQocsZmJnCkhJmp1vP0eAbE=; b=BzgQl/l904aDEkbuuZtVQWnUx65Y9pFCCfoGSBNSE/G9JRj5uYXfcEZAduLtbYWc1j rnFRVWe2WETd932VbkS/+os1u9x+6ZG6GO0AFwEzp791592tAfbaLr+/NAqo2hXxxX/l U5mqfpUuGv2Ahy7cg4EFZyiyuT9mSjHLA4sxiOZaubvvpBr9oMVI/4CAk8IVLWueSGvj hZl3caVnCwxIc+cXiju2xbcwrU/YScLXNwFIYFXz5xtMPUf3c/XEFRigGnprswKR2/Kh P737yATCxPZDx8ieMEjHCMQswnp4YnBNhbU7BZscvat/VjZ161HMo4Y0taRRPXd3qSFG TFBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZbDwJhp8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si788787pgj.197.2019.06.18.11.19.25; Tue, 18 Jun 2019 11:19:39 -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=@google.com header.s=20161025 header.b=ZbDwJhp8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729964AbfFRSTY (ORCPT + 99 others); Tue, 18 Jun 2019 14:19:24 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:38412 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729868AbfFRSTY (ORCPT ); Tue, 18 Jun 2019 14:19:24 -0400 Received: by mail-yb1-f194.google.com with SMTP id x7so6456506ybg.5 for ; Tue, 18 Jun 2019 11:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bNFiBDocFrqHhDhaPZDBNQocsZmJnCkhJmp1vP0eAbE=; b=ZbDwJhp88D9SzdOXhv96LD8nH13jyC4TAVVhfqRqxgpChwKTwVNudJkpH/G10GA4+J 8nF31qcCc+gbNa0c+D7dhSnzUVCCg+cUah+4403g5PqcSC0ig7t0v/ZDuoPZ/6Q95d9b qSQVWMvIBh/aZ4JAmr27CFH7Borf7Uh9A7PKFmEy9ooVgJhoRccACyny7EQ8vfXIxQ6Y Fi3bQXVjw+/O6p4Q0sV0GcCDBdtOD6aMJkQE/+hF3WvQgIuaXdudl4qWp58VJWHWgTIf 9544cFaoPyb/aR+YVO6ipqf7CdDW6VkpAD770X5vUYqKaaAIDOOwj0H7Ck2UIHq4jOti xlpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bNFiBDocFrqHhDhaPZDBNQocsZmJnCkhJmp1vP0eAbE=; b=NFlFlY4fkRAHZ7buWKS2UCrIMXv3WBSsxzou6hyM6N5QZ1oKV5nTF0B27IdTeD7mVQ Cgob7TXBPAJQ5owjF/KTM1OLly7Z0hKHzXa+i6geDxleALND36LAnDRpbJ9A/NjXauy5 1C3qGh+Tyfmyq5ChguN4ZAMLzMnUqSM+GbDhgVDnOjA58qIMihOEiB+Au3cj2y8omw8g 6jZhKprjmvl3nu9Myo3FXZBSgKsbsCsV+OtPuYt7p9RWsHVF9FGYP0Jfnq1vdm80KD8I v43xQi/zNUudFk+NqvL7ol3rrNF4rYDrvKpRPuewUUgeJItxu5TTw5XqrMGtT4Xlt69O CPWA== X-Gm-Message-State: APjAAAXAACnQ3u7AA2Kc34IcvERM/WawsF83A9KcA3jSsG4jO5FSasjL Vtljmuq11+gtRkC4RwU56vsZE+wESHiQlmS3CkXDHw== X-Received: by 2002:a5b:c01:: with SMTP id f1mr58841259ybq.518.1560881963087; Tue, 18 Jun 2019 11:19:23 -0700 (PDT) MIME-Version: 1.0 References: <20190618093207.13436-1-ard.biesheuvel@linaro.org> <20190618093207.13436-2-ard.biesheuvel@linaro.org> <20190618181804.GJ184520@gmail.com> In-Reply-To: <20190618181804.GJ184520@gmail.com> From: Eric Dumazet Date: Tue, 18 Jun 2019 11:19:11 -0700 Message-ID: Subject: Re: [PATCH 1/2] net: fastopen: make key handling more robust against future changes To: Eric Biggers Cc: Ard Biesheuvel , netdev , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , David Miller , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jason Baron , Christoph Paasch , David Laight , Yuchung Cheng Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 18, 2019 at 11:18 AM Eric Biggers wrote: > The length parameter makes no sense if it's not checked, though. Either it > should exist and be checked, or it should be removed and the length should be > implicitly TCP_FASTOPEN_KEY_LENGTH. Sure, please send a patch.