Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1036254lqs; Wed, 6 Mar 2024 04:41:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUjuIRwVFI9Uu7qNNizMhbRvaaepLmbdL3qaHlEy0PZCMsUXINvFSyaeMjyGusgjerbGQs3PnlYcfvzhrRvHJ+5k32BENb3O58gUFg+Mg== X-Google-Smtp-Source: AGHT+IFkaTVbmnXauQGWuLSaMR6tDhSqZfm+8G5Bc5+WmO3zTxd7ckMIZDb2mjS2Fwp5tQhGbnBm X-Received: by 2002:a17:90a:e010:b0:299:cafa:5e8b with SMTP id u16-20020a17090ae01000b00299cafa5e8bmr7544178pjy.6.1709728898246; Wed, 06 Mar 2024 04:41:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709728898; cv=pass; d=google.com; s=arc-20160816; b=HFADpls/4ZHxWyfextdKxexsG8WLKEE1cwYP53EcHoShBMgoMuhh9S/SMIriXPt74p w+4H9cLV0I3FNZ3yoWLicHISpbmdXng7AwttvssSKkA09JCz1XRdzko4SYRCmBrLe83x PfkHwI5FYA8KE4f0ucScCibtthBW0DzBFnaGbSqqKJhf3kksNKo42ccSv5iX5iy0N+WP YkDGkSjBFHSXIfkhR37AcqPLRXsdetmtAI9eEnyqHaZVe3980NpChRKdFLcBA6fznuHV 77H7lq+kbDefunLJW/NjneMAprNx78qeZhGYW1qs6uHOgeg/kWPoPG2KXhoVM/db/2ls lukQ== 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=s0RgG9vqq135wgTU/3tFpTGeNbkjasrCrM+BcD67+KA=; fh=h+gnyXByKAedHQDygbDdh0ytgyAqsinBqcGNgk8pRLk=; b=pRnvfm4oDiqMfTIrcC9ka3e9p0O9depB2YRHpZ1oFXEZJrzuFJD/dVwoIefdyLaQVF kMSpGIBBYGTdFFn8DtFlSNQ7EnLCobO3/3R8D2GWa7HDAtMtLpW6lR3HB0sbTMsgWjy+ 22uhg/oS2wLKs1NJWb/v6IYUTX5u33ubdGpfObIg2vG/52ZPbZU8Zy7Jv1383h2UnJTx 0UkqW/JbHwzU7WE5JBIJwYhzGhySOWvAAy157ADrcgzTopx8EM9L0F7FypFmGqJ51tCY E4LZyjSyAR1iNTOmuv3mG6C8iYaNXjLxPvPXapf2dxJtR4/zp9lh/1kfHlfOIq5/AFv5 X4Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aJXYphWX; 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-93908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93908-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. [147.75.48.161]) by mx.google.com with ESMTPS id d2-20020a17090ad98200b0029970f8cb1bsi13930711pjv.80.2024.03.06.04.41.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aJXYphWX; 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-93908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93908-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 3B533B20CAE for ; Wed, 6 Mar 2024 12:40:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF0A112F5B3; Wed, 6 Mar 2024 12:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aJXYphWX" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 36F3D1DA4C for ; Wed, 6 Mar 2024 12:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709728809; cv=none; b=e7XUk6gX6jnNua3IT6XGVnDz2NEgJ0xg0YgqRD08U/Z4RmHu15B1r3CWSs6RHqbGMA8H61AKSXRxz3dgXwjr2GNIcriP4I7Uo87QPEBQFGoNP3MzfeyPSnTmx7LFwyK73hAkfTWNWcZaAlNxet58bM0DCCUsnFMGL7vfpyMOVoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709728809; c=relaxed/simple; bh=s0RgG9vqq135wgTU/3tFpTGeNbkjasrCrM+BcD67+KA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K6/AIAtuuPi4lCNcdT1aRZ1+BvTCJS0YqRkBfdi+Vw+ZeexJRBRFCcVPKMwrLRfUwsz4NNKOE2F+A6k5Sm4gP6sgk2S1dYJySiHCqys2+bxiq4b1EUb3UCz/onika+6vfOdIMlr8cv5KO5/DSVELQhOaVmsDsfsznbHMeAyrWqc= 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=aJXYphWX; arc=none smtp.client-ip=170.10.133.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=1709728806; 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=s0RgG9vqq135wgTU/3tFpTGeNbkjasrCrM+BcD67+KA=; b=aJXYphWXfop9UiGl+p0OdRwmjxcbNa/fukz84U12GR9uskK61buoEseqGbiZU1kA0Pddn9 S1mfc/p9EW6n0tsBBvwabz01yi25Ib8NzBh+PkkOgrll1PWTdRRSYwn8sB6W4RZEPp5vFO bUfgRxsyUIRqNY5+LGgdA36Au4Pj0yE= 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-94-imIt-QsRMe6oVa_gVW9eCg-1; Wed, 06 Mar 2024 07:40:04 -0500 X-MC-Unique: imIt-QsRMe6oVa_gVW9eCg-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-33d8d208be9so4230602f8f.2 for ; Wed, 06 Mar 2024 04:40:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709728803; x=1710333603; 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=s0RgG9vqq135wgTU/3tFpTGeNbkjasrCrM+BcD67+KA=; b=nrKARVVlrjxIe9TuBgzsbnjkNykLSCIuNoQHkAtU/ZbJyDEfOpg08+rZ3n4SCz82OX WAfEeKFrgQwlCqFkunKK7atB+28D58/glXoXuoxoiV72hV/rvIEFzsoUZHNhob4AefWz SqXk3lwqyFNGL7qyrG3xNLgVKfzT1vHP68Q8AbwtBvi9of5AQ4Uti8RITY15/q8PSVZW hXVtH94SqG9gTsQdj1A+AWY4UwYdLOfLzeYFGPdjbkRzramttwfPTnsNam/9wnneYN84 OFAWCYRxxA8GtBrrTElXRpd07hFYmOBw1aLw+ZuM5j7ABcqpXD6BRpCqAVm6NT3sfbBg y6zg== X-Forwarded-Encrypted: i=1; AJvYcCXfLg9H+0a2FyoppliU45I4tfWj/oxmMcVQlKNOHAT53R4223Rvs/kAPv5LPRAWkfpG9Ot++2VuPjtw3kNHYJZv8TOO6Iv6donax4S3 X-Gm-Message-State: AOJu0YxW3a4yoDqUJ2lD6SqGzZAlVh8Lc+i88qwkeHfwWQC/mrPkRjik fjVM/Rj9G0qa+SOCNJ+u4GeyxDl69L42BkEa76l2qNUl5aCpcViHc9Dv005cxEvYMHnBXb/kjCK 6OFD/PxrKxSGfd0fgAUVjh3kAr/vBYkxcx0pzVTfh3fCeUMsrXRwoJ0/HtWjfvg== X-Received: by 2002:a5d:4dc3:0:b0:33e:1a96:2be7 with SMTP id f3-20020a5d4dc3000000b0033e1a962be7mr10229341wru.11.1709728803299; Wed, 06 Mar 2024 04:40:03 -0800 (PST) X-Received: by 2002:a5d:4dc3:0:b0:33e:1a96:2be7 with SMTP id f3-20020a5d4dc3000000b0033e1a962be7mr10229315wru.11.1709728802693; Wed, 06 Mar 2024 04:40:02 -0800 (PST) Received: from localhost ([2a01:e0a:b25:f902::ff]) by smtp.gmail.com with ESMTPSA id bt12-20020a056000080c00b0033e3a110d7fsm9196110wrb.71.2024.03.06.04.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:40:02 -0800 (PST) Date: Wed, 6 Mar 2024 13:40:01 +0100 From: Maxime Ripard To: Mimi Zohar Cc: Dmitry Kasatkin , Paul Moore , James Morris , "Serge E. Hallyn" , Coiby Xu , 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-large-lush-catfish-e75cb2@houat> References: <20231227044156.166009-1-coxu@redhat.com> <20240109002429.1129950-1-coxu@redhat.com> <20240306-humongous-nuthatch-of-science-00e58b@houat> 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="2lpkp2cicuwnndoz" Content-Disposition: inline In-Reply-To: --2lpkp2cicuwnndoz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 06, 2024 at 06:55:00AM -0500, Mimi Zohar wrote: > On Wed, 2024-03-06 at 11:57 +0100, Maxime Ripard wrote: > > Hi Dmitry, Eric, James, Mimi, Paul, Serge, > >=20 > > 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 thr= ow > > > an error (in the caller of integrity_add_key i.e. add_to_machine_keyr= ing), > > > so there is no need to throw an error immediately in integrity_add_ke= y. > > >=20 > > > Reported-by: itrymybest80@protonmail.com > > > Closes: https://bugzilla.redhat.com/show_bug.cgi?id=3D2239331 > > > Fixes: d19967764ba8 ("integrity: Introduce a Linux keyring called mac= hine") > > > Reviewed-by: Eric Snowberg > > > Signed-off-by: Coiby Xu > >=20 > > Any chance this patch can be merged? This is breaking (at least) Fedora > > at the moment. >=20 > https://git.kernel.org/torvalds/c/29cd507cbec282e13dcf8f38072a100af96b2bb7 Oh, awesome, we missed it. Thanks! Maxime --2lpkp2cicuwnndoz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZehkIQAKCRDj7w1vZxhR xY7WAQCnEqMeBo12XOqakTVapFgeJkCAw0LKLelyqoAfjYH10wEAna6Y24H2p/uZ IHeuKetyVMuIur4tt+g9va7Xh70iYAk= =yOKe -----END PGP SIGNATURE----- --2lpkp2cicuwnndoz--