Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp533444ybt; Fri, 19 Jun 2020 07:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbffyYp3ll1S/yFdqS1BCXEi9ZowiQzjwq67KpRxUuO5/DMkp9JbUxTwZ9LGj7+7Izc2gb X-Received: by 2002:a50:d55c:: with SMTP id f28mr3542658edj.87.1592577590293; Fri, 19 Jun 2020 07:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592577590; cv=none; d=google.com; s=arc-20160816; b=dNjNIbWJlzGzZ7o4xNkpHbJT0dlebF8kH9iD6/Zy1bNf5o0cduCi/0pZg7w3djUI9a P8F0ZnvYxznIabGIfwYrb7TFy0MZCKsxrdKFXuLcD1LisnlCV1BgivUztlt+09u9EMu7 JPe8UVVPbfMqnF2f45eVlazq36XMEi6FKcXS7PtzMI/zldestvkqYyENPfS/XL2+KS9n trCKvJRDBQRFFqJq4lLJYnGiK2f8k+eWeNLK32Mu0XuecUxLonNzdL/I3j6zzwbUU5kA iaIj2lFUfdLrZlGLituS08GuvFhrBQg86mtxLJ0rP+2ci+Ixte0Ag/t9uVvMyRRPTdoZ orWA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=p64fS/M7iBclbiXTSpgx3EjtiGyRATOfe8ygdOBbL8k=; b=gozFqLKrLTUKxdc6siegu6+iXfYF04CeFSzaxz7uix+51QzmXhKWYfcaVWOHGJEz/s HTw2CLFiGZgrUrUC2ZxTd2cz5w2yyqjRC+5qnb763JLMH2kfs9kCJMrKwrz9byXOzGj8 h5GPzQE3W2k0oPg8Q9KEn8YEYYne8XZ67HeGpxh9onpo/aioV9yA9W+h+Nk13cwmcxFP c7axqwFzXuHx9dPPhLzzNVmSRNZTu/ARvxUiCIRdAUitYEbLwDYgWCsiGu7sr05q4qtR 6ubNRrWqanBayd8QMOsxjcV+ZXf/PWRmt8asyWvyUXjratgj+DD19IYYP+JXCRsSQrUO ooXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ic8WHFaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si3807954ejh.403.2020.06.19.07.39.27; Fri, 19 Jun 2020 07:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ic8WHFaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387620AbgFSOgy (ORCPT + 99 others); Fri, 19 Jun 2020 10:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387568AbgFSOgl (ORCPT ); Fri, 19 Jun 2020 10:36:41 -0400 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E4DBC06174E for ; Fri, 19 Jun 2020 07:36:41 -0700 (PDT) Received: by mail-vs1-xe41.google.com with SMTP id q2so5724245vsr.1 for ; Fri, 19 Jun 2020 07:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p64fS/M7iBclbiXTSpgx3EjtiGyRATOfe8ygdOBbL8k=; b=Ic8WHFaX1OgEjYWYHCaiPKgCONLHc18JvsQw7PDHNkGvuc4vqW3jWk5o/ob138BjEQ Zd229mEfPxOZ6iEbirc+I2meMJZTOwHcmZX/z0AfYOP8sFKP3qvqOMSVdoKmXKGjc5bZ MU/NuLF+0kRrF1hZUakchQh8oM3d9zkPkoBLEtS846kWCFIHrOs82affjmruJmcXLSmv tRc646pgixkWl7ooq5shgp9bqq4wjX15wOyWepOeZMrMSNXfSr3edJt7NlVEpwhn9B+H yY9hvHl6EwXt7zqiUlZlijpnOrTK7Py93/GxGHtgmaXVkJbkGzJT4YIBwmQnoupCpq9q 59Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p64fS/M7iBclbiXTSpgx3EjtiGyRATOfe8ygdOBbL8k=; b=fZARC2zLkGpOo47k6fA6zjafiswL1eagzrFtAY42/BwgI1602p4JbxjaYmKkS7M1w2 pbt/cShHlQAqHc2zkxIYFDZb6yzkkC9smMYRgdIabHxgyV06wcCZNYZFxj1JbUSMDB3d vDkRB97h+UsrkuUuF08H8RVXhiPm2LKHZ7XkFucPXWswxGKtuxIqgCV3ifJB9zSjPQH9 UD0Ei5cGeHVqmzcUEYMwNq4e+zYInXpxutc77VDeWUs/Oe7+qMha53eKHp5rYNhzECze 2Rz7LVttdr8pUEfDlLstNsiCPfZReT2e2MS7WQH2MJJlPo1mMEjIx15nNmGvpGNeVQal 5a5A== X-Gm-Message-State: AOAM531BkHfmFto10f2QnqTaZA9JMP+y47+N86i20PWuItg547V9x2Kd iLwQk9A5YZ5zY2sz95+85VrMc+d4plHKAu2iHeI= X-Received: by 2002:a67:f595:: with SMTP id i21mr7915748vso.3.1592577400075; Fri, 19 Jun 2020 07:36:40 -0700 (PDT) MIME-Version: 1.0 References: <20200618210215.23602-1-daniel.gutson@eclypsium.com> <589c89ae-620e-36f8-2be5-4afc727c2911@intel.com> <23babf62-00cb-cb47-bb19-da9508325934@intel.com> <80578b72-cb6f-8da9-1043-b4055c75d7f6@intel.com> <3d454068-fd4e-4399-4bf5-2d010bb2ba7d@intel.com> In-Reply-To: <3d454068-fd4e-4399-4bf5-2d010bb2ba7d@intel.com> From: Richard Hughes Date: Fri, 19 Jun 2020 15:36:28 +0100 Message-ID: Subject: Re: [PATCH] Ability to read the MKTME status from userspace To: Dave Hansen Cc: Daniel Gutson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Greg Kroah-Hartman , Peter Zijlstra , "David S. Miller" , Rob Herring , Tony Luck , Rahul Tanwar , Xiaoyao Li , Sean Christopherson , Dave Hansen , linux-kernel 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 Fri, 19 Jun 2020 at 15:23, Dave Hansen wrote: > Last night, I asked my kids if they brushed their teeth. They said: > "Dad, my toothbrush was available." They argued that mere availability > was a better situation than not *having* a toothbrush. They were > logically right, of course, but they still got cavities. I don't see how that's comparable, sorry. Surely Intel wants to sell hardware advertising TME as a security feature? > > So my take-away from that is that it's currently impossible to > > actually say if your system is *actually* using TME. > Not in a generic way, and it can't be derived from cpuid or MSRs alone. Well, it seems not in any way at the moment. > I'm pretty sure I'm using TME, but I didn't become sure from > poking at sysfs. How do you know that Lenovo didn't disable TME without looking at dmesg? I don't think "pretty sure" is good enough when TME is considered a security feature. Richard