Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE659C433F5 for ; Fri, 12 Nov 2021 06:52:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 93F8060D07 for ; Fri, 12 Nov 2021 06:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232430AbhKLGzJ (ORCPT ); Fri, 12 Nov 2021 01:55:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:35964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbhKLGzH (ORCPT ); Fri, 12 Nov 2021 01:55:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27FD860D07; Fri, 12 Nov 2021 06:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636699937; bh=3z9fwfrXafXz1v0JMezNYLQv1XDhle64SZ4vD13dYAY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JtKSl+3dronxPT4t8UvjFUIjd+z6wD7/TiD3dhCrh/Kn6pQ5Wiqv86T7G7LIWmd8K GjkCW9Vxz3BDJZGztbw5tFQvmarIQQ4nvja65jtVrNUb8zLPciZejSx7VOrqLiVosD 4BuNspZdh8YeXpX7dwv32wa+XHJWeq93c7p7L+v4= Date: Fri, 12 Nov 2021 07:52:13 +0100 From: Greg KH To: Richard Hughes Cc: Andy Shevchenko , Ard Biesheuvel , Hans-Gert Dahmen , Mika Westerberg , Mauro Lima , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , Philipp Deppenwiese , "platform-driver-x86@vger.kernel.org" Subject: Re: [PATCH] firmware: export x86_64 platform flash bios region via sysfs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 11, 2021 at 09:07:42PM +0000, Richard Hughes wrote: > On Thu, 11 Nov 2021 at 15:50, Andy Shevchenko wrote: > > I was thinking about SHA256 hashes or so (as they tell about > > binaries). In any case the interface for this seems to be in the > > kernel. > > I'm quite sure you don't want to put those EFI format decoders in the > kernel; there is all kinds of weird compression schemes, volumes are > recursive, and vendors like to hide weird things in the undocumented > (or reserved) areas. Why don't we just export these areas to userspace and let the decoding of them happen there? That's a real "thing" that the kernel can easily detect is present and know to export properly as they are defined by the UEFI specification, right? Yes, that will not help for the non-UEFI x86 systems, but it's a start... thanks, greg k-h