Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp576232rdb; Thu, 1 Feb 2024 18:33:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjgqwdPPaJk+iJcACEHRn7bqFUf3C6f9nKPveI7oaJ5K25q1D3SU9FqPwfCaTz5i7tStxm X-Received: by 2002:ae9:f446:0:b0:785:46d6:6453 with SMTP id z6-20020ae9f446000000b0078546d66453mr4216845qkl.32.1706841203000; Thu, 01 Feb 2024 18:33:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706841202; cv=pass; d=google.com; s=arc-20160816; b=fRUvF9fTkTq3o432u/n2RBK4hWdFOVJpvRqoZJdC8dsSo2eiqzggWUZ2cqHnzi+TCD 52MHD56+4hHVRLRz5X+dVActNdhmR3JTu3ivP8Q8jPBIQ/MhA0sgkoBAu8yWPyJHV81f 7S0w8XsX2L9Z/bWSRdPpcqqTLKzljcUWTRDZWwN8UQIKb+R2DcHooWnoFhps314njjqD IzRLVatap1pJpKLJ8gMfrpkjqCE9dYTa75hd3Rzu3MFrc1v7j+j9083Sfe+XjU0Amyg0 U6lneRg4y2jijpubYoDDa/BlqAihFde/XyOPa6SPNg4lXUQu1L8x7OacWlFZ7zkT6U6D HWFg== 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=fQCgprpOyHEK0e/SRQUIuIzVOt3Yj59dY0F+3ICLlFA=; fh=+QGdgOj0JDPv7AfJHHGAeFJn6Fa0/MJawt+VxFKDaWw=; b=MZjkTZvw/cQbnR9wmyKn/KH/62x1oRaSWUiiLN8TppIhnT+eQXogJs/VPqiLT10tSQ w9WybfJKnWutXcW4hjtMXcvuck4cYHZgin4C646+ivhrUlxSnxOspz0VyQsLSEeTzksk JW/p6lx4EnoUJGEgH3ns7PWiympIjve+Q4eQyAXsnnV4W99FnSmZXI/sjlokmLxebVjF sfkA9J33ScjgQvC3jeUXiQgUIlFCXCIn2PL3MvMkg2IAU0GXuA1gWzRKbsOGBuIHhqcs X+RdduVtks4IMKLaKawZKGQXhDZxCMOJq2qUSUyn+yH9AVd6qy1KTSL4BUHSY6GOswXc 4NYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=NsFwKzt3; 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-49107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49107-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; AJvYcCUnJotOPnA5O+aTSGGiXgjCuvuQY6QRv6XR55G4lWTa+9rrL4B8Hv3F3jF/JEVIjSoSeelqIPBLzhHu/q4dsLK9V6CQebzdd1MJk3MbeQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b8-20020a05620a04e800b007840449a485si1005749qkh.234.2024.02.01.18.33.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 18:33:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=NsFwKzt3; 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-49107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49107-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B207A1C2503C for ; Fri, 2 Feb 2024 02:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57455C2D5; Fri, 2 Feb 2024 02:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="NsFwKzt3" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 76C36D275 for ; Fri, 2 Feb 2024 02:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706841058; cv=none; b=NNcRUo6jKLZiUgaDxGjIbxEtidCwvq8piKipeAxwPuQdeP/SN9ujMBtvdp2MZcalsyfGCp2i+UxusdYu6RhXDpo1cb88tNXFij8aYyEush1F/C+ewu9fReJaQDwwHvobmldDVoz9BrdYsl/WSqElsnA/Eq5egFPJU6gm4XEmiDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706841058; c=relaxed/simple; bh=KpL5m4Y25ECKAWZYe1aKcE9e3nSH9gZtcs480pi8j/0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KsrjfFhTwb9d3OJS+DHg+kVWwL2XHPQGNz+h4rDfMBsq96MXvFKacNq1Cgg+zy2DK7j1l2cTdmgR1fxavKIIO0Gm5pxoByWpsFg1hCUl7705ewWdqw1f9qLb5zf3oXY4vThEtSM0CBaX5Qv1ii2j2ytrYt+k35nBKfkQWvSZICw= 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=NsFwKzt3; arc=none smtp.client-ip=209.85.128.45 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-f45.google.com with SMTP id 5b1f17b1804b1-40fc6578423so1658585e9.0 for ; Thu, 01 Feb 2024 18:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1706841055; x=1707445855; 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=fQCgprpOyHEK0e/SRQUIuIzVOt3Yj59dY0F+3ICLlFA=; b=NsFwKzt3xv/NuA3z+nr/1kapbnl3rjpf3Bum1Bdl2IROeokoly/89mxyzDlhcsavdQ oODberjOQW6fmyKDt2c/SROUXMf2FfkDadsg795JOQJkbOAzCek36U2WLbbSl2OidOk7 wo5sRmWPtmrJlyFhucC/6yspSVtD4/nCzJVz5doe+68j8yZfGJBk3cDqWEYSfkT+32mK BBQKO8rm/ECgMoN788xzHJxcJtR9Y7TNVl8H5whmyBStBxYvYWL3LDGWXcELR/ohqArc G/yURMaN27uKDQkBdSJh3KaOjmtE4Vo26oitrfV7XHl68A13sD/a90y2cdQlSy1o6J7F bk/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706841055; x=1707445855; 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=fQCgprpOyHEK0e/SRQUIuIzVOt3Yj59dY0F+3ICLlFA=; b=P7j4B0vgafMgKriNHzyB+7fsSVt8Vn8F7jNoGJCW+axjjCcovTNH76FWpU1aPBxVeh rFnUVd4ZmB8cWAXDKReoQB86JlXhGuTKy4AwUKV30NLLM3jN+NHSCnsik7ninHvQqSbk zmMiUpufms08v8vTbXYaLgNuR4wkdQ70uvgI6In78+ypd87J1BJEjFGFpV+0KvXM5o2e PV21vRM7HzHeO1zHZLZNQU0m3AXbqwGOpMIKP78suMsIJ9SIm6Bh5MUJsxFnNIXUtRzZ 6BUSEZs7VgTMAMWYKZPFeXQUuRiNUTmVRhOYGMJ2X+A/cX4gN5HksEAZUYnBVe/f2VS5 Ishw== X-Gm-Message-State: AOJu0YzwOGMh96ByPHKV9HtRlaJ9vryKlFI/dBZFFUaCQnV3rXCpbo3k pepd+33yxdTCIdfxcvTvuDaoL6kQdYwmMGSVZyVG0Va+su1ZP8M4IfZknzEGRg== X-Received: by 2002:a5d:66cd:0:b0:33b:10ca:d190 with SMTP id k13-20020a5d66cd000000b0033b10cad190mr3331333wrw.24.1706841054408; Thu, 01 Feb 2024 18:30:54 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWfUw5cmK7XCnawjH0IsiCOqFeJ/0vUC36eFm/aog4HwweheKPvb2eUx9wEsDMnVdBu3HcMnFprFTvj5Ao/kd/QLz/Z/gQk/mNCCMO1FwvRfb+tV+XMJV8RW/hseoTjrWN3PNp2avJGBhDN/ZmeXkcWU2YgQZ8v2OVYQxVVjAH4ts9cjmAtXr5iAiDyLv8CtxgiIYrc1pom5hpuXCm5XuBI8Rxi7Nbw2+7tk94o5jZnI++/Ww67wZQiletmfXpCFbU8zjCu3doswKNVZ/yCTqfu28GNeRC2HR+vnNqwRoyb+PuoGaTXGf3q+CRtAQFppt2FkICJuILPQj2DEQpkEi9ga4+PFdXO8xCvj93M Received: from [10.83.37.178] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id h10-20020adff18a000000b0033ae4df3cf4sm775276wro.40.2024.02.01.18.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 18:30:53 -0800 (PST) Message-ID: <6104436c-4c71-4427-a569-cf98174d0c20@arista.com> Date: Fri, 2 Feb 2024 02:30:52 +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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/1/24 23:37, Dmitry Safonov wrote: > 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 :) FWIW, I ended up with this: https://lore.kernel.org/all/20240202-unsigned-md5-netns-counters-v1-1-8b90c37c0566@arista.com/ I reproduced the issue once, running unsigned-md5* in a loop, while in another terminal building linux-next with all cores. With the patch above, it survived 77 iterations of both ipv4/ipv6 tests so far. So, there is a chance it fixes the issue :) Thanks, Dmitry