Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754313AbeAGSBm (ORCPT + 1 other); Sun, 7 Jan 2018 13:01:42 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46259 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754216AbeAGSBk (ORCPT ); Sun, 7 Jan 2018 13:01:40 -0500 X-Google-Smtp-Source: ACJfBou2xQXKox3APfP3QhXJzHI3mQoX/HwUO0LvwqcW9AefzxK1/FyesfgDRh2Ap+6Ma8fmLuPLkqIalfcxNrwPQlU= MIME-Version: 1.0 In-Reply-To: <20180107174714.GE9772@1wt.eu> References: <20180104015920.1ad7b9d3@alans-desktop> <1515054014.12987.75.camel@amazon.co.uk> <403e65be-cfd1-fd08-0401-2e26470b63d4@redhat.com> <4dde456c-fd15-e768-8876-5844c8b7c455@redhat.com> <20180107140138.08a7e8e3@alans-desktop> <20180107174714.GE9772@1wt.eu> From: Ivan Ivanov Date: Sun, 7 Jan 2018 21:01:38 +0300 Message-ID: Subject: Re: Avoid speculative indirect calls in kernel To: kah.listaddress@gmail.com, Dave Hansen , Thomas Gleixner , Jon Masters , "Woodhouse, David" , Paolo Bonzini , Alan Cox , Linus Torvalds , Andi Kleen , Greg Kroah-Hartman , Tim Chen , Linux Kernel Mailing List , Jeff Law , Nick Clifton , bp@alien8.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Make sure that your patches do not affect AMD CPU, because they are unaffected by Meltdown vulnerability for which this "30% slowdown Intel patch" is required All your security patches regarding Meltdown should be like: *) if its Intel, it is " cpu_insecure " ==> take a safe and slow route *) if its AMD, it is " secure cpu " ==> take a normal route AMD users should not suffer because of Intel screwups. if Intel is responsible they should accept the CPU returns Best regards Ivan Ivanov, coreboot developer and open source enthusiast

Без вирусов. www.avast.ru
2018-01-07 20:47 GMT+03:00 Willy Tarreau : > On Sun, Jan 07, 2018 at 02:01:38PM +0000, Alan Cox wrote: >> > I disagree. When there are patches that slow execution down up to 30%, >> > I want to be able to mark a binary as "trusted" so that I can run it >> >> It's not a binary that is trusted - it's a binary in a given use case. >> You could easily have the same binary being run in two situations on the >> same box at the same time and run just one of them 'trusted'. > > That's what I like with the prctl approach. This can end up as a config > option in the application itself. At least I'd see it like this in > haproxy. Basically : > - start it with enough privileges (always the case to warrant chroot() > then setuid()) > > - if config option "disable-kpti" is set, run prctl() to disable it. > > > It is sufficiently inconvenient to ensure that it's only done where > relevant and regardless of the executable itself (ie it should not be > an xattr on the FS for example). > > Willy