From owner-freebsd-security@freebsd.org Fri Jan 5 12:30:51 2018 Return-Path: Delivered-To: freebsd-security@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A75EEA5E8D for ; Fri, 5 Jan 2018 12:30:51 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::107]) by mx1.freebsd.org (Postfix) with ESMTP id 54486665DA for ; Fri, 5 Jan 2018 12:30:51 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [172.16.0.82] (unknown [172.16.0.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id 0A5E3884C; Fri, 5 Jan 2018 12:30:48 +0000 (UTC) Subject: Re: A more general possible meltdown/spectre countermeasure To: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= Cc: "freebsd-security@freebsd.org" References: <86efn4u3fv.fsf@desk.des.no> From: Eric McCorkle Message-ID: <4bad69c4-6fc7-6735-6b15-81baaee358f3@metricspace.net> Date: Fri, 5 Jan 2018 07:30:48 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <86efn4u3fv.fsf@desk.des.no> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 12:30:51 -0000 On 01/05/2018 03:15, Dag-Erling Smørgrav wrote: > Eric McCorkle writes: >> The obvious downside is that you take a performance hit storing things >> in non-cacheable locations, especially if you plan on doing heavy >> computation in that memory (say, encryption/decryption). However, this >> is almost certainly going to be less than the projected 30-50% >> performance hit from other mitigations. > > Where did you get those numbers? Because the worst documented case for > KPTI is ~20% for I/O-intensive workloads, and PCID is likely to bring > this down to single digits if used correctly. The KAISER paper claims a > slowdown of < 1%, but that may have been the result of undisclosed > features of the specific CPU they tested on. Those were numbers being thrown around. I'm not putting a lot of stake in them.