Received: by 10.223.185.116 with SMTP id b49csp166639wrg; Tue, 20 Feb 2018 18:18:46 -0800 (PST) X-Google-Smtp-Source: AH8x2262Mljb7B+EqI8S7ETsoVtWWQ9zpikPuWcc4mSfsgd6umUDuzIY0qa5HD31Mx+XOKP4lcXX X-Received: by 10.99.97.68 with SMTP id v65mr1399395pgb.104.1519179526309; Tue, 20 Feb 2018 18:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519179526; cv=none; d=google.com; s=arc-20160816; b=P+y05KTGA+b1YBp23KM7aTF76JVz/8vDmm0uBrG07/HZKcYLuL0Bxdto/cEnA7cA4z z8qjLDowILmrNvva2hcSyrxIXJUrMtHHnBpaxVtZLMISW2jVgPi6asDwgfAUYXcqHItq rTZsX05U7YAMvY88MPNJUCZvQIids1ptI7AyrPkbSM0EmUxBhjbeZ3cTVj0H/p45pyU/ L7MHGgFO4ud+CMy8MTICjBpGPX0UKnT1giMxvi/DaEFWHVpXlnNJOh0t3Fh3DAgBc6zF N9yjt/p4zhUTjIDMeAJxbBck45dU5yGKTWDJN+R4VLEc0xv4mUXYZ4eF35s1qfZY9VFx cRYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QV5CXaqYI+X9/Lt1ICq481JOxw8R0sc+ndcAmFIA5e0=; b=fWBX0YsJoTvnWosMW0GcmAn7ZD5X3B87zUF+Akd2I9gKc92AzSwZssKTRUOW/po9KS j96c+9XuvcxZG0SQ9M4kB+kOQvl/X3larSihaleNz1t3MsyUWyyd+u2rd3+GCWjqocWy 23PVNpzEtSpO8CxkaDobjW2Z7Hzm8y2f4/+mllz4bSGNDRVr8dRPju9fuKwlswGmixLF JANE3+ScUqOX8EwSnXCc1XsVNXXtMY5I2oPP3NUk2KNO3sg14mAhzDzudd6KIxmk7Mk+ WLghYEhLI5x8VucD0a+M5S9lm2obFUG2gDtghjtaI2XocM6wDN8/M8Y3hdqiFqZryXfq vgKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I7Z8FRJ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si11673194pgv.79.2018.02.20.18.18.21; Tue, 20 Feb 2018 18:18:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I7Z8FRJ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751336AbeBUCQW (ORCPT + 99 others); Tue, 20 Feb 2018 21:16:22 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:52516 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbeBUCQV (ORCPT ); Tue, 20 Feb 2018 21:16:21 -0500 Received: by mail-it0-f41.google.com with SMTP id o13so510385ito.2; Tue, 20 Feb 2018 18:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QV5CXaqYI+X9/Lt1ICq481JOxw8R0sc+ndcAmFIA5e0=; b=I7Z8FRJ6JBVJve2n1RFPbCo54rue0P9ZfmqPIjVrUXfTuO9LMJ6oUIuQGZ1dFUDm1d qT9x7BNhrAcZ2cVXrAAR7HAmFgAESlRPLvNWcEcG5AnwEiIKqZUbec1n6PFE0Y6RJJEE v/G+B1OaqbBPT7VP2XjAbfGjZpogF/XVd97NfpZ+QCdlcXKhbj+vV6lD8RWawLkEM54F qFRFsdLM41VPfZ3kuBzgGI/JvVInRZNM4ZJiWsmx0it97Xm+R9ljReQbYY6SvDI/H0iR P/52+rE8jx3bw7U2IG0TtavGx8cwRijhO8YiSnXKSD9HymGeGC+SGptNb/TQxb+aZqU4 0zVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QV5CXaqYI+X9/Lt1ICq481JOxw8R0sc+ndcAmFIA5e0=; b=Wz8jlwJObTGEPX1g3Cr/KHFvO3KP1tlPZYv2y2CSk4gtjoy6SKlKbh9kZJCvCgIu+W T+PVzDvouawYWxUfHuMs6lsYS744KvtF+etbmR5LsslOSgTI0VpzIL+Rbk52KLDWn6Jo 3hitCVxfcN3POpeoXf1GprwX1Cozy7vddye3OvY1/6zl0hI3BIub2/LlQD+pBBxzlb69 Jrid5awK6LqVVbNgt0r0h2XnpoX2tgt0A+Bb8RcN0hTuh9ptgySj2o2Hs/00hH5GgMZ/ gzRKnRbbaUKlbLs3AXUBs5sgg9A8C7BNfc8RLkpDgSrBXRY8rPNLkD8BVEkAoyGMbRzJ TvZQ== X-Gm-Message-State: APf1xPCNi/TAyVwbxY8GlezKtBg/1YH4BhzfmafIOLPObyiZ2Pr/caH3 7loCZrr7F54KPW2qHDszBSIcV0HGtHB5zJ4MrAg= X-Received: by 10.36.95.72 with SMTP id r69mr1253255itb.113.1519179380199; Tue, 20 Feb 2018 18:16:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Tue, 20 Feb 2018 18:16:19 -0800 (PST) In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F7B37DE1B@ORSMSX110.amr.corp.intel.com> References: <20180215182208.35003-1-joe.konno@linux.intel.com> <20180215182208.35003-2-joe.konno@linux.intel.com> <6680a760-eb30-4daf-2dad-a9628f1c15a8@kernel.org> <20180220211849.fqjb6rdmypl6opir@agluck-desk> <20180220233008.55rfm7zw62hrao5p@agluck-desk> <3908561D78D1C84285E8C5FCA982C28F7B37DE1B@ORSMSX110.amr.corp.intel.com> From: Linus Torvalds Date: Tue, 20 Feb 2018 18:16:19 -0800 X-Google-Sender-Auth: hKcliz5w_28v3nvOv13_ZEw48VQ Message-ID: Subject: Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions To: "Luck, Tony" Cc: Joe Konno , "linux-efi@vger.kernel.org" , Linux Kernel Mailing List , Ard Biesheuvel , Matthew Garrett , Jeremy Kerr , Andi Kleen , Matthew Garrett , Peter Jones , Andy Lutomirski , James Bottomley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 5:05 PM, Luck, Tony wrote: >>> EFI[1] stinks. Reading any file in /sys/firmware/efi/efivars/ generates >>> 4 (yes FOUR!) SMIs. > >> Is that actualkly the normal implementation? > > I don't know if there are other implementations. This is what I see on my > lab system. Ok. I'm not a huge fan of EFI. Over-designed to the hilt. Happily at least the loadable drivers are a thing of the past. Do we have a list of things normal users care about? Because one thing that would solve it is caching of the values. We don't want to do that in general, but maybe we could just do it for the subset that we think are "user accessible". Although maybe just that "rate limit" thing would be simplest. I don't want to break existing users, although it's not entirely clear to me if there are any real use cases that matter to users. If tpmtotp is the main case, maybe that can be changed to work around it and just cache a value or something? So I could imagine just applying Joe's / Andy's patch to see if anybody even notices. But if somebody does, we'd have to go to the alternatives anyway. Linus