lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aef4ff03-3a98-4425-2b01-203a88401370@intel.com>
Date:   Fri, 19 Jun 2020 07:48:55 -0700
From:   Dave Hansen <dave.hansen@...el.com>
To:     Richard Hughes <hughsient@...il.com>
Cc:     Daniel Gutson <daniel@...ypsium.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        x86@...nel.org, "H. Peter Anvin" <hpa@...or.com>,
        Arnd Bergmann <arnd@...db.de>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Peter Zijlstra <peterz@...radead.org>,
        "David S. Miller" <davem@...emloft.net>,
        Rob Herring <robh@...nel.org>, Tony Luck <tony.luck@...el.com>,
        Rahul Tanwar <rahul.tanwar@...ux.intel.com>,
        Xiaoyao Li <xiaoyao.li@...el.com>,
        Sean Christopherson <sean.j.christopherson@...el.com>,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Ability to read the MKTME status from userspace

On 6/19/20 7:36 AM, Richard Hughes wrote:
> On Fri, 19 Jun 2020 at 15:23, Dave Hansen <dave.hansen@...el.com> 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?

Of course!  Just like AVX-512 or VNNI or whatever, Intel will totally
tell you about the stuff baked into its silicon!  But, just like
AVX-512, there's a lot of work to do on top of mere presence in the
silicon to ensure it is providing benefit.

>>> 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.

You cut out the important part.  The "pretty sure" involves a bunch of
preconditions and knowing what your hardware configuration is in the
first place.

Let's take a step back.  We add read-only ABIs so that decisions can be
made.  What decision will somebody make from the ABI being proposed here?

Someone does 'cat /proc/mktme' (or whatever) and it says "1" or
whatever, which means yay, encryption is on.  What do they do?

What do they do differently when it says "0"?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ