Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4712736ioa; Wed, 27 Apr 2022 09:28:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA03Xo0LN0BlWzIynG4UgHrsge9ivzfYpBh8xersG3vfvZk/8KgF+TWvFZOxBhsATWSSHd X-Received: by 2002:a05:6a00:2444:b0:4fd:db81:cbdd with SMTP id d4-20020a056a00244400b004fddb81cbddmr30598461pfj.32.1651076906619; Wed, 27 Apr 2022 09:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651076906; cv=none; d=google.com; s=arc-20160816; b=PkVaSHODx3th5Zmk6CsdPZG9incwTxCZbqIzvjXeycfh/v03dw2VOs4Buw9gdnngiP r+XT3hXRuLla0iudyhe3TjFggsYcmzKTUxxDO1pd+0H1UanA0d7jTtiZxR+qn31lcthG hebXjMX3Q4lIqsSeKlaOASEDw7d3FsavAd3UnYo4hTUeIEKCwcwQ1A/0ytnHkQ+x5cFb GImPUeH5o5jOglJn05IV3IFPw238kroazK6vzTmjX/R3Vk+L8eWy8FXafpYqF2GHLIOn yknM8zABVAN8Bomah4VdYQT2UYAP0b1azziRZ5JKzxPq0IPAoOkJ2aUnYzt/WvmC/tYA WtyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=S7gjHtnoBbugQauhNsDeWPF5G5twM4OriQvPe+xVavg=; b=MNLJYl2MaY0bGkNekxE/af7AVC0Qo+ss0QgRl9sbRdHMWmjhYE3FJD1rTwzrVRjkeB OJQmsp5F5VhXRsKNv8zVviM0hckStU47SvhNG4m5QxFfmlRM84rs5gWSzimo4evMuVYK xVSay8gq5Ww+05nc82iHqrvb7GNlQZNBn/uiPMIQc1DVjBFV0t8V7oSwYzNBsFNWn+GT +Tt7NaA8KnPlwT5PKPc+3l7+lJcpuAm1e0Vyij0B7aE7CvogaugbpA4i2sNuQr+CgnlL 55AW2b4UBA57AGZ2Zy+LZ/MZp1Ba0F3wufo4SKaBMAQJ98Gc+jkWgfpQhbXEbQQlboLD E6rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=IjLkvsUy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v2-20020a170902b7c200b00153b2d16520si1951598plz.296.2022.04.27.09.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 09:28:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=IjLkvsUy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C19E4852E7; Wed, 27 Apr 2022 08:57:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240692AbiD0QAY (ORCPT + 99 others); Wed, 27 Apr 2022 12:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240452AbiD0QAN (ORCPT ); Wed, 27 Apr 2022 12:00:13 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD64C80BDA for ; Wed, 27 Apr 2022 08:56:26 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id c23so1954890plo.0 for ; Wed, 27 Apr 2022 08:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S7gjHtnoBbugQauhNsDeWPF5G5twM4OriQvPe+xVavg=; b=IjLkvsUydINfST/SeE3kJPSTPMbbn1Qz9dv2EWCikm+f6aHgbuMsIJOUwGAluCFOFv 8GBorrPOSw3MkEA8ebb/4/Xa9eiuLUObT3bYrskiT1VavjLKAcViXwfiuY+fkwkEDSnv rsrAEmjg51YA69Z0IObAvGMxePXUQL0GpSLKkPfd3I5tDiJ78B0ReBqmwkzfZd9cDQY+ gPvJiMc53AaLS6Pikn+//xzrpHdpwXk3QZ/oirJL6q3HrsGLcST9aaN3HYXZMH34G/NJ 2kURUdwHdfQkL7+EcINfm33CMWAOKq/RVQPWjmdGEfZ0SiieiBoKJRhEDumG8B2WW9Zl RyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=S7gjHtnoBbugQauhNsDeWPF5G5twM4OriQvPe+xVavg=; b=BvAUFScgANMCgAuWkYT+7RZsDnio/QuQm8XmTk0ylzhdCeVX/d2gwpEbN5rpxO4KVZ blfgH8qseQ/eZLuasEvXAoHAqArTYYaF7WlE794W2zkG30DOqAM9JoDVq3iEaDF11e87 G4f93WnUu02UKnnRFq9QLCPQvj1U0RjKuNOMchW0UPi4aUpPCAtM6DEbx90dvnTQnRER C4qjYBGU7qQYXBoB8cf79fOor3143LyhOCwVWNQPXDITDIeMgKNN4rPr+fohT7QLAA5a N+xYp7hY/KGC12eboZrPiBnnhfggMwGuUQnUhsb9rmq9r13/6pkKDTpOWXtq0xAtGxVC yu5Q== X-Gm-Message-State: AOAM530u4QG9HPJIgbMX+HfqLaR7r/zittHg5ssJ3dLB+CNG21bChpNt I5Qs8sL+uUNe1WupBlHQq5qxIUUgz9TUuA== X-Received: by 2002:a17:902:ce01:b0:15c:eedb:f00c with SMTP id k1-20020a170902ce0100b0015ceedbf00cmr21330243plg.122.1651074984238; Wed, 27 Apr 2022 08:56:24 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id s22-20020a17090a5d1600b001d954837197sm7500133pji.22.2022.04.27.08.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:56:23 -0700 (PDT) Date: Wed, 27 Apr 2022 08:56:21 -0700 From: Stephen Hemminger To: Willy Tarreau Cc: netdev@vger.kernel.org, David Miller , Jakub Kicinski , Eric Dumazet , Moshe Kol , Yossi Gilad , Amit Klein , linux-kernel@vger.kernel.org Subject: Re: [PATCH net 3/7] tcp: resalt the secret every 10 seconds Message-ID: <20220427085621.5f2d1759@hermes.local> In-Reply-To: <20220427065233.2075-4-w@1wt.eu> References: <20220427065233.2075-1-w@1wt.eu> <20220427065233.2075-4-w@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Apr 2022 08:52:29 +0200 Willy Tarreau wrote: > From: Eric Dumazet > > In order to limit the ability for an observer to recognize the source > ports sequence used to contact a set of destinations, we should > periodically shuffle the secret. 10 seconds looks effective enough > without causing particular issues. > > Cc: Moshe Kol > Cc: Yossi Gilad > Cc: Amit Klein > Tested-by: Willy Tarreau > Signed-off-by: Eric Dumazet > --- > net/core/secure_seq.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c > index 2cdd43a63f64..200ab4686275 100644 > --- a/net/core/secure_seq.c > +++ b/net/core/secure_seq.c > @@ -22,6 +22,8 @@ > static siphash_aligned_key_t net_secret; > static siphash_aligned_key_t ts_secret; > Rather than hard coding, why not have a sysctl knob for this? That way the tinfoil types can set it smaller.