Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1315366rdb; Wed, 24 Jan 2024 11:04:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6vKGM207akb88D+gSgUhfCco+BQWsllZewUoaYy2SeY+GbOeLMfF9YBzkb9glW32sXNQe X-Received: by 2002:a17:902:e84e:b0:1d6:f7b9:8cf9 with SMTP id t14-20020a170902e84e00b001d6f7b98cf9mr1605585plg.10.1706123085868; Wed, 24 Jan 2024 11:04:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706123085; cv=pass; d=google.com; s=arc-20160816; b=q0cqxptWk0RbIm1oXLzCIfrq/bYKDhNLK6rAw9mXMJyLjS2H8J/nxpsein9yjjlAKi vnt68kiZd0fhcfl0f+yLlpd4+cdWb6RoJm/W+7p0zioeSpLg5u5sMTtCR+nHOj/TtaR5 Ov+2eYbzqmsXyls8JfkVVsBSBcemxAuqOX+jEuCiuclW+fVZyR4HYpX65WeOfvq4tuAQ tFKRcfk1gA+dy4fVxY7ibQN65TaeeyZjjv0GfwJ7lOs2j5LqhdASZxdhRWBLCoOKRLR8 dTNgThtOL22CdfmodVNjJTkNdClrdX2ftrgTfQAN/0+ob56qruIQ4I2gBFGAadr6R2Cx V3xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=nv+S90vhX6NO4O1RkmevXSKs0sw8fpNQSYEij/r05YE=; fh=7/SbbRvTecnNBroxRYFoeKlFlInRUqe+AADKOaCJu4o=; b=tDFfmiNuRtPRQLA8mdRBdi0RVKJoMKHXQZQBNuJB9NRWszTaouGjZuQh5e3FopFWxm PYsHmd4PHLY2Yu4EMegKxwuHGUduZOso1Me1rGJkMAtRsC6Oe/alQKgQSsGHvJjG1H1l hCfun8jRNkv7/Rfa4BP1E1Z+SqbbbC9teYW6p/s5gLO0u3y4NgaKRlO8nz1nv5g+g/AU nNefI6rsJINjluk3zd56IxIJEtFf/9Kf/OaUJzEyeX594HqSQ4gwKAmz6X/3lnNG3drk Rmf4BNaSCjYntKHSgqzHtMiYhNIamHzEea9ivGCNoJqDmIq94U56KgCOnzu/P1toU+Ql RFYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=roPiC3kj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q10-20020a170902edca00b001d730061829si7824893plk.324.2024.01.24.11.04.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 11:04:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=roPiC3kj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 6C2B52839C8 for ; Wed, 24 Jan 2024 19:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59625131E4D; Wed, 24 Jan 2024 19:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="roPiC3kj" 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 7DAF512FF86; Wed, 24 Jan 2024 19:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706123073; cv=none; b=FRbTLxvI7+x36ot72P8GsB3RSFJ245MVZoQbsYyT95GpPSahZTQr7Aq3QGB3oSpCIZWIwCgxau0/5z3NAnNSx5GpYdtAvp05LClk0JMqA/CLCW4kWQQwndr50SUDVX8j6leFvBTld9A4MQeSURih0qfmNTEja40pvKD8LWHbbVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706123073; c=relaxed/simple; bh=of1oTW1JzvLQNNZXy9oaZis6Ni23ookIZw9VErs4lEI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YNb2osw/Jog6+V0lnKq/FbWtrToDjL5n4SkavIsdo+0pjYkpanaNZxcLI+TQdiwvb1AM4WdJ0PQ23ZD+ttZ3kKa9LOM/mTuoHyW+SQn4gJVSsQa3Z826vvsW1RChlmNMS09oVGLFBIUTJYiCrBx7YcCr6ycv7W4vZfrcK5jbhJE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=roPiC3kj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9D58C433C7; Wed, 24 Jan 2024 19:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706123073; bh=of1oTW1JzvLQNNZXy9oaZis6Ni23ookIZw9VErs4lEI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=roPiC3kjWXq5GHptPY15Wa4Hh55qwJHZ6Ocd5YG/QHMERvVLs680MC5Zkg6fTPoDi EU0owtZpJ5rcar6vRmarTTv0aq6V+tqYXkBEfz1va5UplLqFhvN2lIE/W+g3b85faL 91ppMn2nVlkzb/tQpnk7d/Pd+/m4tehYqgar1M/I54hXSrYW+uXpXKObL5QJxhiPag B2PAo53DbdSwOnM9w9FuKT+TOw/qLLMeT89r2YCikICnxbrs4W/QtJb36U3Q9ly+NQ DssWGsvMy71kDXk5ykpr9zd2/UAHBZ3v79HJX1ll+TBYQIXOaJpreEXKrX/O8U3L4n 8QwYQYnklZ1ag== Date: Wed, 24 Jan 2024 11:04:31 -0800 From: Jakub Kicinski To: Dmitry Safonov Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Mohammad Nassiri , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] selftests/net: A couple of typos fixes in key-management test Message-ID: <20240124110431.3c3eba9a@kernel.org> In-Reply-To: <1ad64e3d-5252-4aaf-82be-5162edd1e781@arista.com> References: <20240118-tcp-ao-test-key-mgmt-v1-0-3583ca147113@arista.com> <20240118085129.6313054b@kernel.org> <358faa27-3ea3-4e63-a76f-7b5deeed756d@arista.com> <20240118091327.173f3cb0@kernel.org> <20240124071229.6a7262cc@kernel.org> <1ad64e3d-5252-4aaf-82be-5162edd1e781@arista.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 24 Jan 2024 17:46:10 +0000 Dmitry Safonov wrote: > >> Thanks! > >> > >> I'll send a patch for it in version 2 (as I anyway need to address > >> Simon's feedback). > > > > Hi Dmitry! > > > > I put TCP_AO and VETH in the config and the tests seem to fail with > > Thanks for wiring it up and for https://netdev.bots.linux.dev/status.html! > > > selftests: net/tcp_ao: rst_ipv4 > > not ok 1 # error 834[lib/kconfig.c:143] Failed to initialize kconfig 2: No such file or directory > > # Planned tests != run tests (0 != 1) > > # Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:1 > > Hehe, yeah I wanted to detect kernels with !CONFIG_TCP_AO, to SKIP the > test, rather than FAIL it, which this lib/kconfig.c does. > But from a glance, I think it's failing in your run because there are > checks with and without TCP_AO, but I didn't think of checking for > the hashing algorithms support. > > I think what happens is has_tcp_ao(): > : strcpy(tmp.alg_name, "hmac(sha1)"); > ... > : if (setsockopt(sk, IPPROTO_TCP, TCP_AO_ADD_KEY, &tmp, sizeof(tmp)) < 0) > > Could you check that what I suppose is failing, is actually failing? > [dima@Mindolluin linux-master]$ grep -e '\' -e > '\' .config > CONFIG_CRYPTO_HMAC=y > CONFIG_CRYPTO_SHA1=y FWIW the config used is uploaded with the results. If you click on the remote it should take you to a location like this: https://netdev-2.bots.linux.dev/vmksft-tcp-ao/results/435369/ and there should be a config file in there. > If that's the case, I'll add the detection for hashing algorithms to > lib/kconfig.c (together with a patch for > tools/testing/selftests/net/config). > And also heads up for key-management.c - that tries a bunch of hashing > algorithms to check that the work and that the key rotation between > different algorithms works: > > : const char *test_algos[] = { > : "cmac(aes128)", > : "hmac(sha1)", "hmac(sha512)", "hmac(sha384)", "hmac(sha256)", > : "hmac(sha224)", "hmac(sha3-512)", > : /* only if !CONFIG_FIPS */ > : #define TEST_NON_FIPS_ALGOS 2 > : "hmac(rmd160)", "hmac(md5)" > : }; I was stuck in a meeting and I started playing around with the options for TCP-AO :) I added these options now: CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_RMD160=y CONFIG_IPV6=y CONFIG_TCP_AO=y CONFIG_TCP_MD5SIG=y CONFIG_VETH=m And it looks much better! There are still some failures: https://netdev.bots.linux.dev/contest.html?branch=net-next-2024-01-24--18-00&executor=vmksft-tcp-ao I added VRF so that should hopefully take care of the MD5 skips on the next run. But the failures of the rst-ip* tests don't look like an obvious config problem.