Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp507729rdb; Thu, 1 Feb 2024 15:38:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQOXTWBDSNpzFAE3YNVYn1b6MIvLr3/9Oh807eVqx//iFQ53aKg/e4Y4yNggONFvn28snh X-Received: by 2002:a17:90a:1548:b0:293:d50c:b704 with SMTP id y8-20020a17090a154800b00293d50cb704mr6363889pja.19.1706830714873; Thu, 01 Feb 2024 15:38:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706830714; cv=pass; d=google.com; s=arc-20160816; b=AitG/nL0yusXrpIv47ggee6uc+Kq7gwybJsIelWEAmGA0uP4DMKgUYixSINBnkoDr2 kyR7TnqGgDZTjRDKQ4FxPsVGcGNHweRcghsL4vjqAduQWTUN7GRSRfqMDnJvshDyVweB rynywiyq9eJgm/vpMEnbyCKHWOfWXiK2kxr7qgSP41tiDKodpYeTJX4wfuqUnfEMmQ+O s1ePImHeMhrSYq1pWvKM5lQU8Zq3u1r5vkSMjrVDAqBtK7iR+305o04JyG0x8a3eE/eX cDAe8fr3BniHmGu7V0OcYE6jGBynsv43zlQ+0KNFbnxyigzbvbFkE3K89ZVKJguWt3UM 0KZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OzbcPdwB7/6WmKWK5IMLm0VrY4vYJq2nVK95Czw1I8U=; fh=SytaHJll/VS32EvArVsqKf5Xuw8fo2heeLj+4Y3ocV8=; b=jdXzFf0ZKR8r6k6PQ/GjBwsTtKH6rLPKsh4XM9Fc0sYiqxilcct7mru0Tn5RW+1/On 7nLPoOXh/RIGp24l8I2ohtH79p7rHf93lQr49HC1AHwAYKkMWnKZltwab8zklXgWBBvt fNe1cj7x63MGRZdh8GBvVK0oSK4jUTtvg5hQnes3WFJ2iSDwKwSGgZ7GtkikFKu+HfiN f5jbdveQ62YXWdDb4nRORh3E6kpiHbz0yQvl8LzXUIdU4ZPqGSNk0Bdr4G5YKPmmu217 Ko0zk6qJ5nHJObNddJa1FzIKD9Q2ggHgpJZBFHkoA2v5LexvsBwMN3bvfnGbd068i2zq Mugw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=jKsS7RJf; arc=pass (i=1 spf=pass spfdomain=arista.com dkim=pass dkdomain=arista.com dmarc=pass fromdomain=arista.com); spf=pass (google.com: domain of linux-kernel+bounces-49002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com X-Forwarded-Encrypted: i=1; AJvYcCXWXwYQevECKcNGXhYrPnrdocL3qU6YAifL1vWG67aEYfexUa22AJ7z7siS4cEqVXZBciE3JVBzPOfL77zHnwuZRHVnTVSIse2uJPMlHg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f15-20020a170902ab8f00b001d6e9ff365esi558150plr.580.2024.02.01.15.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 15:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=jKsS7RJf; arc=pass (i=1 spf=pass spfdomain=arista.com dkim=pass dkdomain=arista.com dmarc=pass fromdomain=arista.com); spf=pass (google.com: domain of linux-kernel+bounces-49002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2DCB5285D9F for ; Thu, 1 Feb 2024 23:37:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C27C847F62; Thu, 1 Feb 2024 23:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="jKsS7RJf" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA9B1405FC for ; Thu, 1 Feb 2024 23:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706830637; cv=none; b=cw9I/0XkCMJbNM9C3oAr2NnRXD2PTwcqiWvGo+VeB8NKzGByi5jO4qYRfGIyPTkU3LUMWu2RCnsvEqwFIvKyYxIWmfk44XTSmV33bf6NC2XC4OD5kNaXAeZ+bQix2VP3K2+qQnhS6+uHeQpuehWoTSSN9Jmr8OyG73yVTeoGSp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706830637; c=relaxed/simple; bh=72DVGZsPCwexZxLU2zcYfw3TYZY+hy7mlHmIPt0qEn4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PDpKQd/8xTgNSFAQO65EeBP4eAo8iBdNSWnFI4cYAZmr7wMF60B+9ycz+Vowwn3GT1bmmCJISBkcNNgDDFNm1R8yXbW/CLiZk81QiWT2bDLzVwrvzalPHco3HEczr7huW0+8IweQHdUq6GboD45YD8GgSerKlgWAVBH5c7tnhaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=arista.com; spf=pass smtp.mailfrom=arista.com; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b=jKsS7RJf; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=arista.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arista.com Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40ef6bbb61fso12961785e9.1 for ; Thu, 01 Feb 2024 15:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1706830634; x=1707435434; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OzbcPdwB7/6WmKWK5IMLm0VrY4vYJq2nVK95Czw1I8U=; b=jKsS7RJf92MdORx6jkINA0pOuDH96sV9qqJ7+Nl8R0IPCVr1x3wkKq96MEdikuVFZD GWyMYn6mOiv10RGVQKZAzxhz+NuvS6B5AL3orNd+0EcCymq8mI2XXQHjfiYBTe8aLvrt 9yOVm3Zubm3VrX1byZ6ACJ9DuOruCWIXAU+MpzabYRasExMAx3OI6Hp3QWmMI5Fexw4P uYKvaR0qG6lN3yBOSmJmlZs/DgCLMB0j2EVvuD32S3FNQkJMMEzTiAYm9Zd2a8eIDcV5 tl8s5OxTfXlA5vof/DWoKhdQZ39ncEBVVOqY1lOkBvnogO0eJ+XlrrDoQBEp7vQlorNd y4Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706830634; x=1707435434; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OzbcPdwB7/6WmKWK5IMLm0VrY4vYJq2nVK95Czw1I8U=; b=vfeuxpxa/07nr+RUpbnR6mQT63ub7r+9t5Yj0cfgyZLFUoriLhrt04klJE1GOH5dUc K3bukFQhnb4ZpLepcfum4m71gyLPZy7V9+HcZp0gOQetFx9Jj5uOSIoA9N4b4tqrcPAl k28vIqqEMKGN/UnPMNR55Y+pATjym8+cCF7Q9i/K6oRbuukI2NSs3h1tKcK/qwQEiLpm CxUboxjhz32otblbu/JWpXSaOMuG2/lby+YVvaHJYofUpjw4+qVXmY4xD6tvTRmUQxgu QycNvDxbJ7Gbmh3KO6eRj+QkrAf/HkxLTIkRRhBa19JMFZIopCHHlDdfpUqn9aVfy6DI EUiw== X-Gm-Message-State: AOJu0YxfQOetxPDwBBzOCbYJ6ab73zXObCpZvt6G6yoywyxYjef3J5xZ GkYXKh6a2UL4slhBCvoaJKf2JQAbZVy9gZqzNx3s8SlisldVM1HxdyWVVdq0+g== X-Received: by 2002:a05:600c:4fd2:b0:40e:f693:94dc with SMTP id o18-20020a05600c4fd200b0040ef69394dcmr303299wmq.11.1706830634198; Thu, 01 Feb 2024 15:37:14 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX/4prkdBFWttbX70piivEYb9na7iVpUkyQ7exA66ZROlVNizRygGmPAtt9loGk78LM7B+Lc3o1RT3X2apq8dM7qXD5jeF+uT3P26Fyoh3R1ZGktqNeg6Pjq9XUb8lNftXiHxKypR70EspiKY1GIefZqFeCNYmLBsl+hxUUuqWOKmrpJPcK7LA256N8xgYaIEZqhzgVzEv0sUrDWPnI9JS54xtakziQM98TzdQmTT0+G0fzQ9BCsf4hxQAOXxA9O9G+y3RFBbxFtUkVYiA+m6MhAIUSLWFHUEPNfG33kV5dczA4sfx1t3qY4WxOVhYISufKmo1UgvP6jnubOwGsKuCEPzZO5ZY/ybO3qgIv Received: from [10.83.37.178] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id u16-20020a05600c19d000b0040fc4fa15f4sm631571wmq.36.2024.02.01.15.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 15:37:13 -0800 (PST) Message-ID: Date: Thu, 1 Feb 2024 23:37:06 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] selftests/net: A couple of typos fixes in key-management/rst tests Content-Language: en-US To: Jakub Kicinski Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Mohammad Nassiri , Simon Horman , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240130-tcp-ao-test-key-mgmt-v2-0-d190430a6c60@arista.com> <20240131163630.31309ee0@kernel.org> <20240201132153.4d68f45e@kernel.org> <44d893b4-10b0-4876-bbf7-f6a81940b300@arista.com> From: Dmitry Safonov In-Reply-To: <44d893b4-10b0-4876-bbf7-f6a81940b300@arista.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/1/24 22:25, Dmitry Safonov wrote: > Hi Jakub, > > On 2/1/24 21:21, Jakub Kicinski wrote: >> On Thu, 1 Feb 2024 00:50:46 +0000 Dmitry Safonov wrote: >>> Please, let me know if there will be other issues with tcp-ao tests :) >>> >>> Going to work on tracepoints and some other TCP-AO stuff for net-next. >> >> Since you're being nice and helpful I figured I'll try testing TCP-AO >> with debug options enabled :) (kernel/configs/debug.config and >> kernel/configs/x86_debug.config included), > > Haha :) > >> that slows things down >> and causes a bit of flakiness in unsigned-md5-* tests: >> >> https://netdev.bots.linux.dev/flakes.html?br-cnt=75&tn-needle=tcp-ao >> >> This has links to outputs: >> https://netdev.bots.linux.dev/contest.html?executor=vmksft-tcp-ao-dbg&pass=0 >> >> If it's a timing thing - FWIW we started exporting >> KSFT_MACHINE_SLOW=yes on the slow runners. > > I think, I know what happens here: > > # ok 8 AO server (AO_REQUIRED): AO client: counter TCPAOGood increased 4 > => 6 > # ok 9 AO server (AO_REQUIRED): unsigned client > # ok 10 AO server (AO_REQUIRED): unsigned client: counter TCPAORequired > increased 1 => 2 > # not ok 11 AO server (AO_REQUIRED): unsigned client: Counter > netns_ao_good was not expected to increase 7 => 8 > > for each of tests the server listens at a new port, but re-uses the same > namespaces+veth. If the node/machine is quite slow, I guess a segment > might have been retransmitted and the test that initiated it had already > finished. > And as result, the per-namespace counters are incremented, which makes > the test fail (IOW, the test expects all segments in ns being dropped). > > So, I should do one of the options: > > 1. relax per-namespace checks (the per-socket and per-key counters are > checked) > 2. unshare(net) + veth setup for each test > 3. split the selftest on smaller ones (as they create new net-ns in > initialization) Actually, I think there may be an easier fix: 4. Make sure that client close()s TCP-AO first, making it twsk. And also make sure that net-ns counters read post server's close(). Will do this, let's see if this fixes the flakiness on the netdev bot :) > I'd probably prefer (2), albeit it slows down that slow machine even > more, but I don't think creating 2 net-ns + veth pair per each test > would add a lot more overhead even on some rpi board. But let's see, > maybe I'll just go with (1) as that's really easy. > > I'll cook a patch this week. Thanks, Dmitry