Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1158629ybe; Fri, 6 Sep 2019 12:47:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfRtuGX6waAzHIjBpVQqWZVsEmOCIEYEfTwVjR9udvkcG8nyxINVwZx6IdmOOOgS0RDt5J X-Received: by 2002:a17:902:5ac3:: with SMTP id g3mr11619122plm.25.1567799266229; Fri, 06 Sep 2019 12:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567799266; cv=none; d=google.com; s=arc-20160816; b=1KE2EQBXAtUXEbJob3POqJZNjzSwbSH02ni/QGQbZRwuIULa//QgK0m0iXjzZq7KU9 DUsik198F+ol86MXC8/Jy48zWTMQMT0MK32l0l2qQKb8ejOIdL3QSBU7D1wo0ET6qKUm WJEyu0qIzM5i/aEqMZ8Y5k6rosehUDnuTnf7p1ROmiqE0PTMG+imlwurbqmGneSTv/8X F6CchNKeMIIGEB+OnZoGKnBsBmsHyijVoVbmEPFCPgH61UPNOB6FK0NX1a9T1LHikIh2 OX2dKj30c4DQrMsVmw0qAup8xoGpgp5w8x9TYQhscpKuV+38y7peJbMcLH6Rmvh+MwA0 3SIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=3iAxKF3JS+v4NbrOlO4B/YZMgg44vkR0nD3IPJwfFIE=; b=EV/eKE/QxoRCaV2wiZnsycfk3qykqvD1Jf7duYjcnzuU/u2YSAqKps8tG9zsklb33B x7Gjr2LakBOSMpc4wFeknyViFoIdWNN1EVObJwx1FHHOH/jvQ7Yj/OkRE/jUYeHbMLWW wpEEjlxnUX86xXmU1auWqJr1hoUXg0sHgxsaiHMmiEouUILug6OyDn6qK8sKC8W35otV PW4RardJdIB0s2KI7ifNQXNC4CjubVlc0wbGMlEN8gGsN0qc+7A5OBCk0Qdy/pvuwdtL aZWrWPV076/3q9rLyojo7vmIXqUZ7k5hZkAfQ4sPqIOdRql9P9KtVHEWqNn3JEyf8lp0 c/Rg== ARC-Authentication-Results: i=1; mx.google.com; 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 y12si6553628pfg.260.2019.09.06.12.47.30; Fri, 06 Sep 2019 12:47:46 -0700 (PDT) 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; 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 S2403817AbfIFPHa (ORCPT + 99 others); Fri, 6 Sep 2019 11:07:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:38120 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730480AbfIFPH3 (ORCPT ); Fri, 6 Sep 2019 11:07:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 59AACAC67; Fri, 6 Sep 2019 15:07:28 +0000 (UTC) Date: Fri, 6 Sep 2019 17:07:37 +0200 From: Jean Delvare To: Greg Kroah-Hartman Cc: Arnd Bergmann , Thomas , LKML Subject: Re: /dev/mem and secure boot Message-ID: <20190906170737.1a00178c@endymion> In-Reply-To: <20190906121510.GA17328@kroah.com> References: <20190906130221.0b47a565@endymion> <20190906121510.GA17328@kroah.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019 14:15:10 +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 06, 2019 at 01:02:21PM +0200, Jean Delvare wrote: > > I've been bitten recently by mcelog not working on machines started in > > secure boot mode. mcelog tries to read DMI information from /dev/mem > > and fails to open it. > > What do you mean by "secure boot"? Is this matthew's patchset that > restricts /dev/mem/ or something else? I mean that early in the kernel log is: Secure boot enabled and kernel locked down > > This made me wonder: if not even root can read /dev/mem (nor, I > > suppose, /dev/kmem and /dev/port) in secure boot mode, why are we > > creating these device nodes at all in the first place? Can't we detect > > that we are in secure boot mode and skip that step, and reap the rewards > > (faster boot, lower memory footprint and less confusion)? > > Sure, feel free to not register it at all if the mode is enabled. > > thanks, > > greg k-h -- Jean Delvare SUSE L3 Support