Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1456174lql; Tue, 12 Mar 2024 19:40:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCs5362PfjRHa7ejWR0+LyflWig0PC4T6ktxsnpSnfqA+Y0NkEGmmfbuqC/Wl0uU6aUY6XU8FGwrzk4amCrrCjRMfLcRIal2wJs0csZA== X-Google-Smtp-Source: AGHT+IHymhkBkj1DN2QMKrRN5U9xdWD5hq/QBf2DTYwkWGGG44wiXHbC80/uP9SJ/j4drid9D1II X-Received: by 2002:a17:907:8748:b0:a46:2772:de9b with SMTP id qo8-20020a170907874800b00a462772de9bmr6099480ejc.22.1710297629659; Tue, 12 Mar 2024 19:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710297629; cv=pass; d=google.com; s=arc-20160816; b=k/CtdcyykPKSdPlAEOe9lGiXWFl62PR8qslfSIT7xPyBpIr0MOKrE/PgK4iVAa2S5K 3fR9KmKGPqYb2XyfBFXWp9ojk/8gikLh7c590vQoc7Z6lUfG++K1BTTfgJWGdYFoiqKn X79rk/oB9EDxhHSQi1Q0wFpPz+2QiWjjwDbyFqkmDeav3Hu00sz77V7bfdhWdh6cfxW3 yjZEYatk5vtzuWCzMIo6653QZmVFVCr1PcqArr1T2CHkKVkK43Krq4j09b8djhoiJjfU pxb61CmhjQb9dGiFEhj2BIx8KB0ADr6oT+npOiy5cBUE0BHA2z8Fz+YuNgJmndYT60je 6hjA== 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=xLDKnplj27bk7XMdJMqwJSbyHYnIPFsAuwJfX8G+gAU=; fh=wCuzy4DxG62ce4E1/k0aDLj1pymhJaRSELiGIZb2kAY=; b=nxBWzM4vNfvD590D7T2gZe0yRn4jxIqU7310h2O+9M4tJdduQREUBIR+cf9bn0tlYu 1u3KD2FtMFifufBpyVllgFon6T/928SuY80sT4PyrVacwz9TBQfEcXyKG247ERyzcSO7 4wYjvqG0onAZsyVkNeexi6seb3TZoYetIGxOdFN+zwfuwQkN2Sbt6njzgX8Y6AP5qchi oqndT8Rg9tGfTw3cRczO0MrdGxWMScM3tvJA7AxhP6nQ5JqzKjgRhC/BoknuId6+oMUu RegDIufXMFL6bQB+ros2a+aNRLySpGsv98DxDkuDoxQ9pRuxCJzngzgYrRs/fIt9ml3C oulQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KgQ0JuPg; 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-101055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pw14-20020a17090720ae00b00a46327a5201si2054274ejb.356.2024.03.12.19.40.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 19:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KgQ0JuPg; 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-101055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101055-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6460B1F22BD9 for ; Wed, 13 Mar 2024 02:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47CCAD52B; Wed, 13 Mar 2024 02:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KgQ0JuPg" 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 05648AD25 for ; Wed, 13 Mar 2024 02:40:18 +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=1710297621; cv=none; b=mD6HnbLKtAs/MeGwBz9pb9oxiQeMXFiBS6KQ+DamxkMLfZp/o8pYTRynrRBN41wGRF4T2eaESr3O7/wxeL4GVkB0BjDlFnSSb7ba63JPO7eZPK7JJ6grbabrtIfAM70h0Elw8cSRhlypamg37aFNPl4b0ZcnCktnTvjpOmLMmDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710297621; c=relaxed/simple; bh=bT9cgD9xoMLhqt3/eDR3nr6SSI/CyX28YEwHte2GLxU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QTzlNWwo2Vt6X6zfYI5xqiNwQmOoDuDcHq2hMJzudGg9SHGT9o+RPU350fxgQs+k9kVN8bEYr/C2lhGAWbLALkPpUzHnruXKi7JenkITFZAuzCqLp1aPKQzOwqqEgim3K85gnKvcOJWdiebDubs3yOtWLcziDDeva1qUSUZOlkE= 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=KgQ0JuPg; 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=1710297618; 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=xLDKnplj27bk7XMdJMqwJSbyHYnIPFsAuwJfX8G+gAU=; b=KgQ0JuPgHoV0+clD26G82HuMpE4ngpdzpP0TjxxeA0awucPpCX+y1Zt2W0+a4Pk+yanpWX w/3kg40JJYYTmtXDzD5HkRluFZVH9Xm/ldjNB3pa4Eg3EA44qrxr+Q3TXYpmocDKiAqK/p Na//6sVb8nuTXjZDV09dDTfCg6w5xQs= Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-511-spDBxL5wPfKT23XBBG_7dg-1; Tue, 12 Mar 2024 22:40:16 -0400 X-MC-Unique: spDBxL5wPfKT23XBBG_7dg-1 Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-2219ad32ab9so6099555fac.0 for ; Tue, 12 Mar 2024 19:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710297616; x=1710902416; 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=xLDKnplj27bk7XMdJMqwJSbyHYnIPFsAuwJfX8G+gAU=; b=KsIAKvyOwDieym24EclROEw3tnw74H36OB2r7x7nUDEV2vntlSOiNoVw5i9T4vjtd3 5tyUwWPDn31k0ua9V9+T01hsqSb2J6RE8vaQ1XyCLZARkbEsXC8/UCmseewiS42xxA9A HGsd4LKiW6XdhuWTd0SiNtt8ZvTv1JH/u3+EC+OCFEVWo8J79xAMvXR8HNT9Gq5ujm1u kVq1CIPZKZIAyXxkbQqHrc3zGIgoHi7SiGF+hHcV3D2NbG/fhOB7BAW7GGvYuFm763gB GhQPwdvRQl94TYM1F2D39lEl5NqFycDBvjnwOoAEj+kuUQYP6KSARL2eRpPNcL5lXwxI Lv1g== X-Forwarded-Encrypted: i=1; AJvYcCX0C7hT+YWY7t3uixJHvga8vrfYsGDvQQG4Be/X8CgXDCJl58qXKfy29b+Ao+4LHD58xbB5Db1j50IGtgmCkxTplTWYzlXJCgN1Wg1P X-Gm-Message-State: AOJu0Yw6QIFNs9EeZSalY72gxlXwJDSDY3O1hR63uVTf5hTSabkQI7dz x7j3ndPalbToyzEZP/Nw9P2zeGJWXxCqNBs4h5r5RYyQ4HIQ9XsZHVzHTycFm8ctAAeAtt2FVcQ VrqUfeJPELU7xnDmYsQXpHo9irRWG8mLUZ/Z1bNKN6I/7iEuqmEJNtHAAyCZUKw== X-Received: by 2002:a05:6358:3401:b0:17b:f4a1:b626 with SMTP id h1-20020a056358340100b0017bf4a1b626mr14909055rwd.13.1710297615391; Tue, 12 Mar 2024 19:40:15 -0700 (PDT) X-Received: by 2002:a05:6358:3401:b0:17b:f4a1:b626 with SMTP id h1-20020a056358340100b0017bf4a1b626mr14909016rwd.13.1710297614481; Tue, 12 Mar 2024 19:40:14 -0700 (PDT) Received: from localhost ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id d12-20020a63d64c000000b005dcaa45d87esm5975622pgj.42.2024.03.12.19.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 19:40:14 -0700 (PDT) Date: Wed, 13 Mar 2024 10:37:29 +0800 From: Coiby Xu To: Maxime Ripard Cc: Mimi Zohar , Dmitry Kasatkin , Paul Moore , James Morris , "Serge E. Hallyn" , 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: References: <20231227044156.166009-1-coxu@redhat.com> <20240109002429.1129950-1-coxu@redhat.com> <20240306-humongous-nuthatch-of-science-00e58b@houat> <20240306-large-lush-catfish-e75cb2@houat> 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; format=flowed Content-Disposition: inline In-Reply-To: <20240306-large-lush-catfish-e75cb2@houat> On Wed, Mar 06, 2024 at 01:40:01PM +0100, Maxime Ripard wrote: >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, >> > >> > 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. >> > > >> > > 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. >> > > >> > > Reported-by: itrymybest80@protonmail.com >> > > Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2239331 >> > > 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. >> >> https://git.kernel.org/torvalds/c/29cd507cbec282e13dcf8f38072a100af96b2bb7 > >Oh, awesome, we missed it. Oh, I missed the emails about Mimi's PR sent to Linus as well. Btw, I'm curious to ask why you used the word "breaking" because I thought these KERN_ERR errors shouldn't cause any real problem. -- Best regards, Coiby