Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp309623rwb; Wed, 9 Nov 2022 02:50:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM7DMZAYbSoFxb+A+UdgKkwJqKKs6t8jvaE9GNPxa1hlTYWMWGXzN0j/20uAm1dGp1oOLA8y X-Received: by 2002:a17:906:ccd1:b0:7ad:e22f:3ffc with SMTP id ot17-20020a170906ccd100b007ade22f3ffcmr44872092ejb.85.1667991000424; Wed, 09 Nov 2022 02:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991000; cv=none; d=google.com; s=arc-20160816; b=SBfGPaLCT3LPTV5YjWZG3wKHGIuQ6Tb6sFnWVzQR30ovue6gfOMfzIWZxKwU5J3P8Y l4OezBjTqcyc4KSLLjrg8YJizspBm4Mvl02Mhxup2uqRFL6HAyiNevbnxw5+o7MXlcA5 wwQigAMcx8dvyqJYwZOykns3UunuBusVUAj9Qx/IWoDXs8wMlPpVBXbO1tJtCaAndH5+ fh49uBrS0aoOsJJ8HnrnIcEmJH4cU6Hg4PPjYw3PTAsb0uXDGHX+JLeNTx5DK2HjtclJ rD7ZJ1ZneehinPoG5c4hfRKiSreKe6iwgrTC8kHZaaBHgLdQyGeebZpKXmwUraSiGKAj O6fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=U+S+WedYtgt3Gb8T8CIAJkPUnLd4owTNjRVD5ECF9dQ=; b=LL/sVOFeWNd9Kx0MkfneTGSii5+w3NJMyHv/hDf9QvujzWxVGEoYXD1NB81cfLQQLz rOdYEVsEx1XhltY+gtE+QPPGE4YclEdIb+SSPzUA5Br76SNbNgisYZzVpIzC4txSApGQ rbR1NpdmosbFKPkPAFxmvZBARtXWhEVToyJWg51Nm2BwJhO89hiTByb4scOrT5DpYoxU HiVgI7Gnk8vsG+5xoHB+GAvsCz+Cg9bgalGIOg/1/SrzPJ9YG0V7/mqMeQZBChQBRd25 Z8YOxpZkLPt9AtcpstynMyGg0PkGFhKFteMhjqPNazmveNIf3Ay3x8i8LY0ZYzGp1hot NUVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp3-20020a1709071b0300b0078a19032c70si16229606ejc.334.2022.11.09.02.49.38; Wed, 09 Nov 2022 02:50:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbiKIKJK (ORCPT + 93 others); Wed, 9 Nov 2022 05:09:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbiKIKJI (ORCPT ); Wed, 9 Nov 2022 05:09:08 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E888463B4; Wed, 9 Nov 2022 02:09:07 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8EF7A1FB; Wed, 9 Nov 2022 02:09:13 -0800 (PST) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9BED83F534; Wed, 9 Nov 2022 02:09:05 -0800 (PST) Date: Wed, 9 Nov 2022 10:08:54 +0000 From: Alexandru Elisei To: Ard Biesheuvel Cc: catalin.marinas@arm.com, will@kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [Possible BUG] arm64: efi: efi_runtime_fixup_exception() and efi_call_virt_check_flags() both taint the kernel Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Hi, On Wed, Nov 09, 2022 at 10:07:00AM +0100, Ard Biesheuvel wrote: > On Tue, 8 Nov 2022 at 11:10, Alexandru Elisei wrote: > > > ... > > > > Speaking as an user, I think it would be nice to revert the commit, that's > > how I am running v6.1-rcX kernels on the machine, as updating the firmware > > is not feasible right now. But I realize that I'm not the one maintaining > > the code, so I don't have a strong opinion about it :) And it's better now > > than it was at rc3, when the kernel was panicing. > > > > I sent out a patch yesterday that tweaks the sync exception fixup > handler to only disable the runtime service that triggered the > exception. This means, of course, that you might hit it multiple times > if several runtime service implementations are buggy, but there are > only five or so that we actually use, so that shouldn't make a huge > difference. But it also means a) we don't trigger other code paths > that freak out when a runtime service that was available suddenly goes > away and b) the diagnostics are more useful because we will find out > which other runtime services are broken. > > Could you please test that patch? And for good measure, could you try > something like > > efibootmgr -t 3 > > (as root) to exercise the SetVariable() path as well? Tried booting with the patch applied yesterday, no regression as far as I could tell (still hitting the two add_taint() statements, but that's not what the patch does). I was trying to figure out how I could test that the other runtime services are still working correctly, your suggestion is exactly what I was looking for, thanks. The machine is a shared machine, will test when I get access to it (hopefully later today) and post my findings. Thanks, Alex