Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3722611iog; Tue, 28 Jun 2022 01:01:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSmQS5JqOHMTAkuXJB5dUTwlnHs4sDeKmeeJRnQErqZElaCMt1Y51gSkXxR+x1WGS/klv6 X-Received: by 2002:a17:907:30cb:b0:722:e898:c9c8 with SMTP id vl11-20020a17090730cb00b00722e898c9c8mr17160354ejb.465.1656403309194; Tue, 28 Jun 2022 01:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656403309; cv=none; d=google.com; s=arc-20160816; b=eARKEiNxG9wBSwp6AWHcNSe4H4OBAHX1cT3CKgDbrOD8r7m2kRzi8UjyBYZLgjS52T C21E7uRyga6s5H2hdQr3oQPxmySbaHWWYtGgXzP5naV3f2i9eXZjTzqC42SJp54Gl1n4 5pPrnvrEBRweNipdvPG9VoQZmB9yUM4smm26h5wE6isT3O1364hgz/JEXG2F/h1uqd1V JZ4mz+FI41vfVLn/390XXDIxnTgUmrwaXuUwu/4H7WekURpqYuEem+Z6kP3CTrJAx95H aS2tobZa0NxhH8I0WbIQukppJWYHrZO2XpSaHQXcI7k6iHo0a4HQS+vY39CZ33mbA3Ou lhpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aiD3eMLrH2Ct0Gn+1sj9Q8L9OK8u7ri0bzVNBJui2/g=; b=GVYXeZpLoZoK0J7QmHbIRsNa1uSwMJsKCogqjhyaneO38U0wugGFOYlR8gJaqhjqqG zPRYJUg9KQOIZ/SLtsSO+EhKfynq7dZ5CllSKxhDZ+k111wJm8BuwFp9Afg/+hgFhcxH SLUzcoZlfU8xF7niEpLuq7Tj2TKCALU+AbAyouGs/7xVUen3o0Tc3MSpBNoX6VcifTFv CjWKGs1thJM4oML0xSDD6yVCpjUHpsKpf8g80M/pv9guXlXUTZXJEtD62m2sXH8S1TzE 1qUAHXWFrJluZs6uzJxt7PRWnGEZivjWE6O6u4DRPcvJo5Kfx9yNVEu6BqbaCEBUUBCE QkvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K2YlmC8O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb5-20020a1709071c8500b0070d8de4e431si18753381ejc.206.2022.06.28.01.01.22; Tue, 28 Jun 2022 01:01:49 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K2YlmC8O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245538AbiF1HuU (ORCPT + 99 others); Tue, 28 Jun 2022 03:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245504AbiF1HuN (ORCPT ); Tue, 28 Jun 2022 03:50:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D8010E9; Tue, 28 Jun 2022 00:50:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 63ABEB81D1A; Tue, 28 Jun 2022 07:50:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ADAFC341CB; Tue, 28 Jun 2022 07:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656402610; bh=aiD3eMLrH2Ct0Gn+1sj9Q8L9OK8u7ri0bzVNBJui2/g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K2YlmC8OHj3tZ17D96mYJnkccAezcnkshoerIQn1fiR0c78PH5mvlCTiEtc37AcIp LOoJ1sqeGgNecsBAvuV64L4FNuIh8ZhVeAFYYRFc3crhP8EWgbBfw88Rgr6x4K1PIL ZTReQbxfNkplNYqBkYgYdTGWSuFgdmQA0HMAnDo88Eln82O0N5jAAXMK15jgeIRLZe GGVEM0i24SwkkyjO4EW6T3f6cV7LzTiYuC2PNDA+l0UdHEiW7IArtdH/hf6Kmnx7Am MAGrb9lMEHzAb6UqBNGDqAODw6jXIDrCVw3WpK+7cLGq63iZWhotGVibhjOyKIqDWp 35IfsH4mrbEMQ== Received: by mail-lf1-f49.google.com with SMTP id z13so20722462lfj.13; Tue, 28 Jun 2022 00:50:10 -0700 (PDT) X-Gm-Message-State: AJIora9Uxot0yiNZOu7wXUhBQGKlfk93/ufH7s/tiB39SIwZK5bImJk1 pkIG5um0bcwtr63TUBD0mKQdSSex6WSsOU/xgJA= X-Received: by 2002:a05:6512:e83:b0:47f:635c:3369 with SMTP id bi3-20020a0565120e8300b0047f635c3369mr10406750lfb.659.1656402608055; Tue, 28 Jun 2022 00:50:08 -0700 (PDT) MIME-Version: 1.0 References: <20220520195028.1347426-1-gpiccoli@igalia.com> In-Reply-To: From: Ard Biesheuvel Date: Tue, 28 Jun 2022 09:49:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] UEFI panic notification mechanism To: "Guilherme G. Piccoli" Cc: Linux Kernel Mailing List , kernel-dev@igalia.com, kernel@gpiccoli.net, Anton Vorontsov , Colin Cross , Kees Cook , Matt Fleming , Matthew Garrett , Tony Luck , linux-efi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 2 Jun 2022 at 19:40, Guilherme G. Piccoli wrote: > > Hi Ard, apologies for annoying! > No worries, just very busy :-) > Just a friendly ping asking if you have any opinions about these patches. > Honestly, I'm not sure I see the value of this. You want to 'notify the UEFI firmware' but the firmware doesn't really care about these variables, only your bespoke tooling does. EFI pstore captures far more data, so if you just wipe /sys/fs/pstore after each clean boot, you already have all the data you need, no? Also, I'm in the process of removing the public efivar_entry_xxx() API - please look at the efi/next tree for a peek. This is related to your point 3), i.e., the efivar layer is a disaster in terms of consistency between different observers of the EFI variable store. Switching to efivar_set_variable() [the new API] should fix that.