From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D5C41386 for ; Sun, 18 Jun 2023 17:50:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C5F9C433C0; Sun, 18 Jun 2023 17:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687110640; bh=bLzXVhy+xeEKfGXoMV41qKelHKb8eMbvoUzE4zOYJjc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lU0/Nnr5fMWEeIs6RsF8lhHQWpJV4b/CGrN5ZAiQQeVXnHYWyes798NUt+Amw8BHz Wv/DWmw3sfwYsNE/hU+Smut3RXEf36m2m+d+9x5SFu5viohtOhnFHZtceeQc5D3eeH LCcaQGBIaRoHzNxwsat4Pbz8OI0ZtOK/hDht2pRQ7kzi2BFnPzjVT7cFCQ7AUIg27B FBHMgcPefrFrRzRdj0i/vRDOLigCOroqFQZLDk85kC8YZyosm2+ndM5FW14elYbwSo J7zRN3sqVRyoUmUhtDzZtrUDbcAOSrIkqi/Lu2XPH49Fw/yjDaHe23suXK72cIzlHN wUaZAFEAgzlJw== Message-ID: <85077827-d11d-d3e6-0d23-9e60974cad0f@kernel.org> Date: Sun, 18 Jun 2023 10:50:38 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v7 04/22] net/tcp: Prevent TCP-MD5 with TCP-AO being set To: Dmitry Safonov , Eric Dumazet , Paolo Abeni , Jakub Kicinski , "David S. Miller" Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Ard Biesheuvel , Bob Gilligan , Dan Carpenter , David Laight , Dmitry Safonov <0x7f454c46@gmail.com>, Donald Cassidy , Eric Biggers , "Eric W. Biederman" , Francesco Ruggeri , Herbert Xu , Hideaki YOSHIFUJI , Ivan Delalande , Leonard Crestez , Salam Noureddine , netdev@vger.kernel.org References: <20230614230947.3954084-1-dima@arista.com> <20230614230947.3954084-5-dima@arista.com> Content-Language: en-US From: David Ahern In-Reply-To: <20230614230947.3954084-5-dima@arista.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/14/23 4:09 PM, Dmitry Safonov wrote: > Be as conservative as possible: if there is TCP-MD5 key for a given peer > regardless of L3 interface - don't allow setting TCP-AO key for the same > peer. According to RFC5925, TCP-AO is supposed to replace TCP-MD5 and > there can't be any switch between both on any connected tuple. > Later it can be relaxed, if there's a use, but in the beginning restrict > any intersection. > > Note: it's still should be possible to set both TCP-MD5 and TCP-AO keys > on a listening socket for *different* peers. Does the testsuite cover use of both MD5 and AO for a single listening socket with different peers and then other tests covering attempts to use both for a same peer?