Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp47253lqs; Mon, 4 Mar 2024 14:35:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGnwEgV9334Rtt4F0byE401NRk0/uCPF+ZqH5SJMGKSsdU5QRn0R359QF+wHbkZdr28NTCv0BI8w6yTNfg546XjneKWGNp2HCJMBUkPw== X-Google-Smtp-Source: AGHT+IGdG5+l2i9vgPZIHjquWb7CQ4iZQODvRbouNLs4YSr5anTmVmfPqdPpql0scJBnJaeWh075 X-Received: by 2002:a05:6870:8e06:b0:21f:f6f6:cae with SMTP id lw6-20020a0568708e0600b0021ff6f60caemr78268oab.32.1709591721743; Mon, 04 Mar 2024 14:35:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709591721; cv=pass; d=google.com; s=arc-20160816; b=KckkdU3t4tctMlVBpq6cbco0IL/md4HODxnasJOQgVtjvtFEUK1ls5Cq8irgHJNhDj 2EM/AyavMsoMOzQmWdhuPwAZ+2weuG8azDoMAWQeoUMB3TScpTLG67q/MdBzWrKZ/yYN U68y9hLSip7IElgus5jdSAsOJugCXt27joCve8YKUmCTKtlSOQvai5WGZjd0GRg9fINc zT5ZwveIQ73YiFsNNoMX+IHgjGKE3y5gE06tfqjybgP+5kEYSqu6UWiZCO7NBV4Wgxu9 6UuNJRhxAB/qK0jFZF+GElqojG4XX61fSKPMp7YrPnW2O4JfSgVyXaIq5Ap60Oe3iAHl XkNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=amBz0SHnxG7TZY8ssNJpH1w1CYnBUB36OiHoZWaexS8=; fh=L04z8I5iWRWMaKX9M2tPn/fi+QmLxY6jdI9E3FY6Abo=; b=db9SXVuvaRh2/VqNuyhPUhuMGNPkyGgIfphNH+wH4cwIsVLz7Q8QFRos55GxmFcxJq X8O/OduBHjJ3Ftq2fP4mI7agRG2TImJvNjUJzs5OsAjSoIwai0HwohiKgj0ls/oKp0bn Ezd+GVgkT34LTrRw4+QpbQV+jecG/QwkcwtaDI6J8WG5LinkVjroSpx1HmX/9XX/rLW9 adJh40pMZOj6WMekoUmrT1qUkcdxzmWpbfuWr9IviSk6XQlW96slEfC9OdVCJaAz7Eq5 +WJv8L7CX+fPVA+NX8aEtuodzHM7qSeG31T+g05k5KtexjY3MBLxquQJ9OSuk4S2Vr3g Q9aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PryTUwzP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t8-20020a05620a0b0800b007881e305689si4951979qkg.786.2024.03.04.14.35.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 14:35:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PryTUwzP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2494-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 50D611C20E55 for ; Mon, 4 Mar 2024 22:35:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C08727B3D4; Mon, 4 Mar 2024 22:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PryTUwzP" X-Original-To: linux-crypto@vger.kernel.org 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 657338F44; Mon, 4 Mar 2024 22:35:14 +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=1709591714; cv=none; b=ee2z0+rTnVWgbeELBvhQgb0Y7RMudyRNqwax9fT7mJGXYZvO57gQAnlV4kQRZLJExuWQkPhaG4KWnn6nwu1tt+/+64M9Ozv+9IwblOFPqvW4Z7Y7IZoheCMGd4bG5xh9pV8XWodBimT9hNy5d4P1gK5qMsTA1onoDyA8wC68aLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709591714; c=relaxed/simple; bh=amBz0SHnxG7TZY8ssNJpH1w1CYnBUB36OiHoZWaexS8=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=V0ZqM/K/5ykgVnIkmf1syDeOEfXEtFqd3ha8O1qKCwTKvuqvRQMJ8FvemnRDBeaYQRdtq50d6UlFtEvqU4S3ybspMZ3tPsA1vyAQtTJKNjtekCvRDgUHHEorDQ+cRAOEZ3Jf/G2cNPvAV4B4avs2zzuo+8j/d2SJyeCTQLCb5qs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PryTUwzP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5720C433F1; Mon, 4 Mar 2024 22:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709591713; bh=amBz0SHnxG7TZY8ssNJpH1w1CYnBUB36OiHoZWaexS8=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=PryTUwzPWwwXCdvBgfF8SYstPp6+99/peVymjH51J3D8e3mXbJEOU4GmawLaXnlMD zbV2440gyrfx/e/OZqROOWiQned9w3KttppjGwM1qqRAcAmRCbgylkuD3kJPoP96y2 kC2kMClL2jSsXwTnK7pL25JI94uAQ/Lchim31o/E9QcvOE5sVxRZUJ3IJtmdqQM18m HKWFF1MYu1gvajPolinuxfn7/3QS2mf8kSqDnRoiz+raX2MinBRKggWmC0EvQXPlq/ VfoZtm27SPjSMOTUxkPqZs76X6NTybfi4wtyoxCs5vMOSUidQ0ZRhVZ/l93QRm9gTb M+n6XzriuJLDA== Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 05 Mar 2024 00:35:05 +0200 Message-Id: Subject: Re: [PATCH v5 2/6] KEYS: trusted: improve scalability of trust source config From: "Jarkko Sakkinen" To: "David Gstir" , "Mimi Zohar" , "James Bottomley" , "Herbert Xu" , "David S. Miller" Cc: "Shawn Guo" , "Jonathan Corbet" , "Sascha Hauer" , "Pengutronix Kernel Team" , "Fabio Estevam" , "NXP Linux Team" , "Ahmad Fatoum" , "sigma star Kernel Team" , "David Howells" , "Li Yang" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , "Paul E. McKenney" , "Randy Dunlap" , "Catalin Marinas" , "Rafael J. Wysocki" , "Tejun Heo" , "Steven Rostedt (Google)" , , , , , , , , X-Mailer: aerc 0.15.2 References: <20231215110639.45522-1-david@sigma-star.at> <20231215110639.45522-3-david@sigma-star.at> In-Reply-To: <20231215110639.45522-3-david@sigma-star.at> On Fri Dec 15, 2023 at 1:06 PM EET, David Gstir wrote: > Checking if at least one valid trust source is selected does not scale > and becomes hard to read. This improves this in preparation for the DCP > trust source. This commit needs a complete rewrite and I do not have time and energy to propose one but here's what it should contain: 1. Add HAVE_TRUSTED_KEYS to th trusted-keys/Kconfig. 2. The use and purpose of HAVE_TRUSTED_KEYS. If you read your commit message, do you see anything at all concerning the code change? It only tells a story about something that is not properly being defined to be "hard to read", which is no rationale to change anything at all in the kernel. If you put factors more focus on being as straight and easy to get in the commit messages, it will also improve the round-trip time between sending the patch set and getting reviewed, because people with limited time at their hands tend to pick the low-hanging fruit first. BR, Jarkko