Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp999569lqs; Wed, 6 Mar 2024 03:25:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdKZeqc0OxWClcWDEyiw07tMRoWrMve+IODgcMvNyoUYxUguYwZaNB4hZYJb66LLQyAJod9Qcqc6m5QZHsQwA+vMpXmo/oNgsxNZDKMQ== X-Google-Smtp-Source: AGHT+IGEibJOmZfkc2PPUHq8wYgM1e2Il+c/lM/QlrG8F1KiK0/WXylJnUtBa/O5bTrOlbIIa8n3 X-Received: by 2002:a17:902:c412:b0:1db:5b41:c59a with SMTP id k18-20020a170902c41200b001db5b41c59amr6458942plk.45.1709724329419; Wed, 06 Mar 2024 03:25:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709724329; cv=pass; d=google.com; s=arc-20160816; b=0AOHZSSHXjd+L8bFqIT6nYpj5F5BWJhFAtGPUeexIsTts49xqhmusBlr9mS/ijYCtD zVvT/T/JPuwSvr+97tV/O8352gvlPrJOJqaZF3H99JhSbVuZhRGs8bxuz2mWxZXLNuxG N6f4F4qXGZlX8ueka5VLRNtRLHMiITPGo4Sa/5JK2eroOvUdNUsr99iUeM6WOkE2hptW BiGNZYZOJchD8yC+SkWxhH28FYlp8wh2g/UroBIJoMOZ/lv+hBUR9oS7E6gg8GKHEj9Q rylK3tGqQ9ujt2PPXdCHZpd/ooi/lqhf7HYapUx0euoONeBN2lKKmneoib+OFZCopMFo 7eLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b4XyqL2PnC56hJ2b/S40mLdDbJwaGE9J/KbgoSiF4LY=; fh=+iKy+By9+mRf93mYo9i3aFEAhffGtpiN3lYAhij6egg=; b=ooWD61bvq/7KFpuqqCl/1zJfxrxfWcaYjWa4o9S+SV2DDEwa5lf9KgriI+8GdBDUAv 7q1SF6FI+tvQyh405+qVpGZEdmFZoMTERxISqHRnJ1VTW3jPj+CkxThZ5UpjWGbuujrr 5vXhq3dx5/pj3NnpXN3qLp4ruGpWbcEzv4M908Pv7o3NLvZLO3B2YaAyp2cLq/Qc/Lfr Wkaj1MSXATB6kkXxhma1SgrwJ7zC3YJ3uBvtyWpU+YGUoBeRa/VjGXIcFfJxv8pPEK4r LkpNvbd2OG/bV7px01DkbU8oRNFFPG96xgvhWAM8A/1iZUDp3ixLTyVn3cKqbLK0+1ZG Ec3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DSH671vw; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-93822-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93822-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i6-20020a170902eb4600b001da2c0201besi11427320pli.139.2024.03.06.03.25.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:25:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93822-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DSH671vw; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-93822-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93822-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1D98AB2E5EF for ; Wed, 6 Mar 2024 10:59:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11FD2605C8; Wed, 6 Mar 2024 10:57:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DSH671vw" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 CA540779F8 for ; Wed, 6 Mar 2024 10:57:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722648; cv=none; b=Rdz0AKZ2LPQ4dPJo2mQ9wD7Gm4s4X5ibyTm/2F9MPgAuQ89ECPdyaw+7tR/rC4MlpDf3hRWfoIda/bEUDOhrxdSS+d7pfnoebAcqwaglHuo+OBY6CMlvr/XCWmXXXrx2P/wJKKE44tor3tSclqfMaC7bezDQGhlQg9PBv7Wu0MQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722648; c=relaxed/simple; bh=b4XyqL2PnC56hJ2b/S40mLdDbJwaGE9J/KbgoSiF4LY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RnghBFD5NRm9tjU5sRuK/2sWLOtY07Yxotqi9t8Ia3HhGhXV9VxxOxyY4T2rk732EokZX5D3ipaN1BHaW6+q7KcSYTJ7lbM+hde+OIvRZHRkzhxHKdzi7RPecI5nNUxzIpzCtWW1cJi1muX8s4AYgcy7x9QpyA/j7+Wup6XVgZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=DSH671vw; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709722645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b4XyqL2PnC56hJ2b/S40mLdDbJwaGE9J/KbgoSiF4LY=; b=DSH671vwCJN+v69pk6RKe/udFDqYlsJUBm+V0skAxpsNgFYBFhzxpqiZPFDqy63KNWOtOy DDI+eQnrvFluvDDK2cn4Cz3/aDRP4bXaSspmsfQMbpYeGbiDA9trbyZ+rOkjes5kLkbV7N NbogP6hGxwO9MPhR/fm+Raa3yVm0Cts= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-127-q8SZT93IPn-ctm5Aea4oYQ-1; Wed, 06 Mar 2024 05:57:21 -0500 X-MC-Unique: q8SZT93IPn-ctm5Aea4oYQ-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-33d60ac6781so955844f8f.0 for ; Wed, 06 Mar 2024 02:57:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709722640; x=1710327440; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b4XyqL2PnC56hJ2b/S40mLdDbJwaGE9J/KbgoSiF4LY=; b=MZAYI3AJlRROZwMcgDaPR6f/IdEnGCr8hju4QM5Al+oz8Nq1/CVaKTcz08IyGjDJ0V /2wYzJZD6jYHcgc0BRW0vZvvdXDsyJA+RjgB21xGwF5faMXz/ph/jP4sHSr3A+KY4DDT jPDxy0Zyk09cFm77RzLdlewH4Ye9K2d6H15UBHrSKmeCfrjdIRzJbqCI+6z4psTLVrGD 6uP65l+jumCm4f7qHCW3n+drwHxJsbV6lvz4eiZoro/+APUdTzNhxTFOjmxd4ASOe301 6kBhsvOsyE4AN4E+jPqmNAFtvOSTLe6iVFKWOlweuE6k57pYhkOCTZ55EM3TWdUH/05j Ujlw== X-Forwarded-Encrypted: i=1; AJvYcCVfywEFda3gx2VNaQb5HD5uC38uBz/uzKPa/W6z7V+ZVJaR0As5+FByNyWIs1OJ8kSZxDvBxEctZif1BcAkPITjM9cn3GApQ+0PTBl4 X-Gm-Message-State: AOJu0Yw+wD4Jxr5U7Cvr0l9xjMpJlv3vfNbnvuG3n835d/UxvhKKviEf ZSitqAYRvc0RreB8EqhGj5QfHqa+KZxnu38nBrVTsIzhavmVFsUvYs2/gWFT+T08vVUMmRMB26Y DYffMeUOKPvC0nLZ8b2xGHuXDwoIBBrn2cwL0XujFwHjulR73r9+7DoNA0QMVvg== X-Received: by 2002:a5d:5f48:0:b0:33d:215a:1914 with SMTP id cm8-20020a5d5f48000000b0033d215a1914mr13001148wrb.38.1709722640468; Wed, 06 Mar 2024 02:57:20 -0800 (PST) X-Received: by 2002:a5d:5f48:0:b0:33d:215a:1914 with SMTP id cm8-20020a5d5f48000000b0033d215a1914mr13001113wrb.38.1709722639939; Wed, 06 Mar 2024 02:57:19 -0800 (PST) Received: from localhost ([2a01:e0a:b25:f902::ff]) by smtp.gmail.com with ESMTPSA id bx5-20020a5d5b05000000b0033e103eaf5bsm17353346wrb.115.2024.03.06.02.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:57:19 -0800 (PST) Date: Wed, 6 Mar 2024 11:57:19 +0100 From: Maxime Ripard To: Dmitry Kasatkin , Paul Moore , Mimi Zohar , James Morris , "Serge E. Hallyn" , Coiby Xu Cc: linux-integrity@vger.kernel.org, itrymybest80@protonmail.com, Eric Snowberg , Jarkko Sakkinen , "open list:SECURITY SUBSYSTEM" , open list Subject: Re: [PATCH v2] integrity: eliminate unnecessary "Problem loading X.509 certificate" msg Message-ID: <20240306-humongous-nuthatch-of-science-00e58b@houat> References: <20231227044156.166009-1-coxu@redhat.com> <20240109002429.1129950-1-coxu@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xv7pnznz2fqkk5di" Content-Disposition: inline In-Reply-To: <20240109002429.1129950-1-coxu@redhat.com> --xv7pnznz2fqkk5di Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Dmitry, Eric, James, Mimi, Paul, Serge, On Tue, Jan 09, 2024 at 08:24:28AM +0800, Coiby Xu wrote: > Currently when the kernel fails to add a cert to the .machine keyring, > it will throw an error immediately in the function integrity_add_key. >=20 > Since the kernel will try adding to the .platform keyring next or throw > an error (in the caller of integrity_add_key i.e. add_to_machine_keyring), > so there is no need to throw an error immediately in integrity_add_key. >=20 > Reported-by: itrymybest80@protonmail.com > Closes: https://bugzilla.redhat.com/show_bug.cgi?id=3D2239331 > Fixes: d19967764ba8 ("integrity: Introduce a Linux keyring called machine= ") > Reviewed-by: Eric Snowberg > Signed-off-by: Coiby Xu Any chance this patch can be merged? This is breaking (at least) Fedora at the moment. Thanks! Maxime --xv7pnznz2fqkk5di Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZehMDgAKCRDj7w1vZxhR xRjcAQDO43bKYImGBD+B/EBUcAe1M2J0uqbm6+QesqiYtsPvGAD/fUFr3rDbhTvM CAt76KLDM5Hbt0iKpgt0TgS06wTsLQQ= =tyck -----END PGP SIGNATURE----- --xv7pnznz2fqkk5di--