Re: Intel CPU design flaw - FreeBSD affected?

From: Cy Schubert <Cy.Schubert_at_komquats.com>
Date: Tue, 02 Jan 2018 17:11:54 -0800
On January 2, 2018 4:56:48 PM PST, Michael Butler <imb_at_protected-networks.net> wrote:
>On 01/02/18 19:20, Cy Schubert wrote:
>> This Linux commit gives us a hint.
>> 
>> https://lkml.org/lkml/2017/12//27/2
>
>Sadly, the articles I've read to date make no mention of which Intel
>silicon revs are vulnerable. However, the use of the PCID feature,
>which
>is only available on more recent CPUs, does seem to afford a slightly
>lesser performance hit when completely splitting the kernel and user
>address space mappings :-(
>
>	imb

Yes.

You can see if your cpu supports pcid using cpuinfo from ports. Then look at input line 0x07 in the hexdump.  Bit 0x0a of rbx will indicate if invpcid is available. We simply need to manipulate a copy of cr3 and reload it.

My amd gear in my basement isn't affected but my laptop is. It supports pcid but not invpcid.

There will be a performance hit. Looking at the Linux patch, looks like the workaround is optional. I would suspect not through a sysctl, that would be silly.


---
Cy Schubert
<Cy.Schubert_at_cschubeet.com> or <cy_at_freebsd.org>
-- small keyboard in use, apologies for typos and autocorrect --
Received on Wed Jan 03 2018 - 00:12:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC