Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2069889pxb; Wed, 9 Feb 2022 10:13:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyysaVfbUbmMNF8s+c8MNEQEjnPrPjXi4TA+xTDg2kK0UNjrtg8tpHU2fn/rLLE95/VCIvT X-Received: by 2002:a63:6c09:: with SMTP id h9mr2940996pgc.234.1644430417387; Wed, 09 Feb 2022 10:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644430417; cv=none; d=google.com; s=arc-20160816; b=RaDtavmgPQQWYIPNaTnCxqpuMZOSSV0Ap2ZusUQXEIlr0QmcN7viOkBoZiPcoFPBfl RRJIJw7GrFrtGddYSMGHMpDPXVHxnidZKC/6sfohocg6aqE0IGvIHQsg56RAUvtktdq8 p/MCnmSDh/AuDqNeaQqfmZmLP895kWkT8w0mEnQN5VlRna3Yaqj7JYCR2HiaXThpXmD1 1cEfKIrfN9uvBhd4xzL+WWtH3ej8hoQ+Pr9pVyDN/Q7cKikNV2oj/t1ugKdgkNVoNfLY QR4Gun+S0Kfbg+VFx1Z9gA9CCXvT6Kf2PL9iivAJVKk76qd92hFGYFmdqXo4YqE9llMn qofQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FiZrCcpCkiLKTot9vUhWhAuy4CB/2J3vPSovC6YXM7E=; b=VXvhXQ9rE6cypv/2Z+xjzDxvdKOpLjDfVpDj9Ye7re8g+JilMBITxSGfjMHZro6Hrm BuE0Buadgh5qM5D907pfTfjq84hVBsa5AeqJIeTZrSAwp8u9Ud2qUJ2Di/X9DMHpe7BK IliL4hpwrANEhs54qep++E5zWTYlUWq2RpFu6kEhy0OBCLwF1D3W41vcVab9okwg0p9W 5YK3BILaUMNC0gXeR2uWwcuFHemO5ppHz1ub2p/7Xo1vaOxfdLcYRwA++f1r68TElH0V ifzYj6uCHb7wUZRRe96CzN47TMXqLUJ2xeIH1gDi4iXrG0R06h7k9ymQYYSdQi+Dy8fe 4PIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si1774409plx.465.2022.02.09.10.13.22; Wed, 09 Feb 2022 10:13:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237493AbiBIQuG (ORCPT + 99 others); Wed, 9 Feb 2022 11:50:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237463AbiBIQuA (ORCPT ); Wed, 9 Feb 2022 11:50:00 -0500 Received: from cavan.codon.org.uk (irc.codon.org.uk [IPv6:2a00:1098:84:22e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB774C05CB8F; Wed, 9 Feb 2022 08:49:59 -0800 (PST) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id D0B0740A63; Wed, 9 Feb 2022 16:49:57 +0000 (GMT) Date: Wed, 9 Feb 2022 16:49:57 +0000 From: Matthew Garrett To: Aditya Garg Cc: Ard Biesheuvel , Jeremy Kerr , "joeyli.kernel@gmail.com" , "zohar@linux.ibm.com" , "jmorris@namei.org" , "eric.snowberg@oracle.com" , "dhowells@redhat.com" , "jlee@suse.com" , "James.Bottomley@hansenpartnership.com" , "jarkko@kernel.org" , "mic@digikod.net" , "dmitry.kasatkin@gmail.com" , Linux Kernel Mailing List , "linux-efi@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "stable@vger.kernel.org" , "keyrings@vger.kernel.org" , "linux-integrity@vger.kernel.org" , Orlando Chamberlain , Aun-Ali Zaidi Subject: Re: [PATCH] efi: Do not import certificates from UEFI Secure Boot for T2 Macs Message-ID: <20220209164957.GB12763@srcf.ucam.org> References: <9D0C961D-9999-4C41-A44B-22FEAF0DAB7F@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9D0C961D-9999-4C41-A44B-22FEAF0DAB7F@live.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,KHOP_HELO_FCRDNS,SPF_HELO_NEUTRAL, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 09, 2022 at 02:27:51PM +0000, Aditya Garg wrote: > From: Aditya Garg > > On T2 Macs, the secure boot is handled by the T2 Chip. If enabled, only > macOS and Windows are allowed to boot on these machines. Thus we need to > disable secure boot for Linux. If we boot into Linux after disabling > secure boot, if CONFIG_LOAD_UEFI_KEYS is enabled, EFI Runtime services > fail to start, with the following logs in dmesg Which specific variable request is triggering the failure? Do any runtime variable accesses work on these machines?