Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fC6vm-0005N4-PZ for speck@linutronix.de; Fri, 27 Apr 2018 19:13:11 +0200 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A477406C75F for ; Fri, 27 Apr 2018 17:13:04 +0000 (UTC) Received: from washington.bos.jonmasters.org (ovpn-125-83.rdu2.redhat.com [10.10.125.83]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3A6711301CF for ; Fri, 27 Apr 2018 17:13:03 +0000 (UTC) Subject: [MODERATED] Re: [PATCH v2] Linux Patch 1/1 References: <92c45587-5eb3-2421-6fc1-42e74a715e30@linux.intel.com> <20180427164743.GA14180@pd.tnic> From: Jon Masters Message-ID: <6e2b14fc-3bf6-071d-6ce2-e518f2c4f069@redhat.com> Date: Fri, 27 Apr 2018 13:13:03 -0400 MIME-Version: 1.0 In-Reply-To: <20180427164743.GA14180@pd.tnic> Content-Type: multipart/mixed; boundary="a65a1caIALYFEgZjNEMzZ6jlUz6QMe2o1"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --a65a1caIALYFEgZjNEMzZ6jlUz6QMe2o1 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/27/2018 12:47 PM, speck for Borislav Petkov wrote: > On Fri, Apr 27, 2018 at 06:08:26PM +0200, speck for Thomas Gleixner wro= te: >> That said, the above might be acceptable when Linus does not veto the = whole >> thing in general. >=20 > Also, in another discussion we had, if *not* the task itself would call= > prctl() but root or admin would be able to do set_tsk_thread_flag(p, > TIF_RDS) once, I think we'll be better off wrt to breaking the task and= > tricking it into calling prctl() aspect. >=20 > I.e., do the marking from the outside and not have a prctl at all. >=20 > Regardless, the whole deal still feels like putting lipstick on a pig t= o > me. The problem is that the performance hit is up to 30% for worst case workloads. Typically it's a few percent, but clearly the silicon companies have a reasonable ask for us to preserve default leaving SSB enabled. The only way to do that is if we can easily disable it on a per-task basis for vulnerable code. My opinion is this needs to be a prctl that a vulnerable application can set. It can be a one-way thing that's set/inherited by children, etc. Jon. --=20 Computer Architect | Sent from my Fedora powered laptop --a65a1caIALYFEgZjNEMzZ6jlUz6QMe2o1--