Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp42370ybt; Tue, 30 Jun 2020 14:24:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9FUE1lqzBDXe/sExhcE6GXcIHhW8VB4HDDVSxoyb3Cp6k3gYNquhgDBN2AGkgGgC+5KhB X-Received: by 2002:aa7:c54e:: with SMTP id s14mr25620438edr.81.1593551905645; Tue, 30 Jun 2020 14:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593551905; cv=none; d=google.com; s=arc-20160816; b=mZUY4le51HMrxVpD4a77tQu6r9aYOOGHXl5F5QvI0QB4UoEfXGgJ003eDVa4ylXBI3 jxY2QfxglSThUnmcfoA7Aae041uLgkEnKd0mgPjlzSPJapIFgXuoS7SMGlGHrhIz9R5/ 8L3E0GuKTPaFERw1gQWQ1usirYJBYYmkCEs4k+4zyBEL2xG3gZrZ1inJgDu6rvc9TPLL Nwixk+GoKvvPeN2LX9j/Edr3T1bFYG8dANwCSkaeW6r0wpOvVyJctM36cm4XOJwhVhiz 6MumaBHvKNg+XZqQdA14ooc1C1dfCR+RUm2zaOoQNykvZPW+/D9Uqujo550vdgTiHfZY MXgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=Vph8FFamlLOEgiAqhpk9331XsQWYPCQ7ZL7ndNaBhMQ=; b=Zj/1osSZquKXIjYna+4wSQImOpDkgAJNv6kX4AExJwFyIif6zZH5QUeDix1Kdvqw3G 2OtcFYDfpgqDLTU1jxxsY/vUql+OgtiqTT8OfSLm49kEa85xU1n0G4frBBxeMMgdA/QB dexqHfoH1n1n59QL5B5yovOdmgqyKoEOCQRr6EooabSRd5t0lAjmqjKoZsN737yfu7fx hRuB1+fwI1sLNdNgDLASz9qG2umwBb0Vg78P3SnNPgOAEpQ6ACTf4P4eWtBV+zdIZXs6 o2+tsa0Pe0RSICZy4HMz8n9BeI25Qu1srKhfww0J7yUWKByK+N8XQCWyFj+RXY7q8Tw1 EEeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=MhRbq1Ii; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si2600538ejl.52.2020.06.30.14.18.02; Tue, 30 Jun 2020 14:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=MhRbq1Ii; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729511AbgF3Uez (ORCPT + 99 others); Tue, 30 Jun 2020 16:34:55 -0400 Received: from mail.efficios.com ([167.114.26.124]:55450 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgF3Uez (ORCPT ); Tue, 30 Jun 2020 16:34:55 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 87A1B2C6D8C; Tue, 30 Jun 2020 16:34:53 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dVsaSFwjYYPh; Tue, 30 Jun 2020 16:34:53 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 45A442C6C2E; Tue, 30 Jun 2020 16:34:53 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 45A442C6C2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1593549293; bh=Vph8FFamlLOEgiAqhpk9331XsQWYPCQ7ZL7ndNaBhMQ=; h=Date:From:To:Message-ID:MIME-Version; b=MhRbq1IiUN8q3A8o2S0VWED1BT4voByE776z9VOt72rfAj9j1TNREBLWZzN0w1jJD IUxwxzTPthk/yvgB+JL0iF9UOF8vhW+Okm8D5pvJE+PVsLaoWPjEJuVdgW2GCdKVk8 wVQcvf/7V/yrDnIrMjdbJaCy5MNdEBmkN+IZTuc6qXn88My9/R6GsEmBxNYpKzuR6G 6Gk1qypUp+B7N/AVGTnv8XQzWZs3XECuK0+a1VaEMiBWucnIbAUqKgCmG3CR2ue835 qn2ZFB46ZIL9U+s809LsE6/UrcwkahE9XJ1Ub/4yxbGkWDaflEBxR9yhbK74LW2SgQ 3aID6p5GOyKXA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2XoXp7J1s9mu; Tue, 30 Jun 2020 16:34:53 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 3127C2C69FB; Tue, 30 Jun 2020 16:34:53 -0400 (EDT) Date: Tue, 30 Jun 2020 16:34:53 -0400 (EDT) From: Mathieu Desnoyers To: Linus Torvalds , Eric Dumazet Cc: "David S. Miller" , linux-kernel , netdev , Yuchung Cheng , Jonathan Rajotte-Julien Message-ID: <312079189.17903.1593549293094.JavaMail.zimbra@efficios.com> In-Reply-To: References: <341326348.19635.1589398715534.JavaMail.zimbra@efficios.com> <1132973300.15954.1593459836756.JavaMail.zimbra@efficios.com> Subject: Re: [regression] TCP_MD5SIG on established sockets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3945 (ZimbraWebClient - FF77 (Linux)/8.8.15_GA_3928) Thread-Topic: TCP_MD5SIG on established sockets Thread-Index: Wcu0dgtOM27y62oxUUFZ1+Lbhd18uw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Jun 30, 2020, at 3:52 PM, Linus Torvalds torvalds@linux-foundation.org wrote: > On Tue, Jun 30, 2020 at 12:43 PM Linus Torvalds > wrote: >> [...] > So I think it's still wrong (clearly others do change passwords > outside of listening state), but considering that it apparently took > people two years to notice, at least some of the onus on figuring out > a better morel is on people who didn't even bother to test things in a > timely manner. I'm fully willing to work with Eric on finding a way forward with a fix which addresses the original issue Eric's patch was trying to fix while preserving ABI compatibility. The main thing we need to agree on at this stage is what is our goal. We can either choose to restore the original ABI behavior entirely, or only focus on what appears to be the most important use-cases. AFAIU, restoring full ABI compatibility would require to re-enable all the following scenarios: A) Transition of live socket from no key -> MD5 key. B) Transition of live socket from MD5 key -> no key. C) Transition of live socket from MD5 key to a different MD5 key. Scenario (C) appears to be the most important use-case, and probably the easiest to restore to its original behavior. AFAIU restoring scenarios A and B would require us to validate how much header space is needed by each SACK, TS and MD5 option enabled on the socket, and reject enabling any option that adds header space requirement exceeding the available space. I welcome advice on what should be the end goal here. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com