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 1f8YJA-00071M-Jp for speck@linutronix.de; Tue, 17 Apr 2018 23:38:37 +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 885447CBBA for ; Tue, 17 Apr 2018 21:38:30 +0000 (UTC) Received: from washington.bos.jonmasters.org (ovpn-125-161.rdu2.redhat.com [10.10.125.161]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5874910FFE6B for ; Tue, 17 Apr 2018 21:38:30 +0000 (UTC) Subject: [MODERATED] Re: GPZv4 References: <20180417193105.GD3890@pd.tnic> <476c3e0b-dde6-6e6b-2054-6e71fa2c396b@redhat.com> <20180417203717.GF3890@pd.tnic> <47b619bf-8d07-c465-9017-583cf5ac80ee@redhat.com> From: Jon Masters Message-ID: Date: Tue, 17 Apr 2018 17:38:29 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="dcFfwbllxwJxCTGz96rn4w5sxvdKGuSfi"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --dcFfwbllxwJxCTGz96rn4w5sxvdKGuSfi Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/17/2018 05:25 PM, speck for Jiri Kosina wrote: > On Tue, 17 Apr 2018, speck for Thomas Gleixner wrote: >=20 >> The prctl is an optimization which can be done afterwards and we first= =20 >> need to agree whether we want it at all. I'm not too fond of yet anoth= er=20 >> conditional branch in the entry/exit code. The code patching there is = >> already bad enough. If we keep up adding this crap at that rate then w= e=20 >> have sooner than later more NOOPs and conditionals than actual code. >=20 > Plus the prctl() aproach opens a potential hole for attacks that can fi= rst=20 > trick some vulnerable binary to call prctl() (ROP, return into libc ...= )=20 > on itself. The proposal would be that it only allows you to go one-way. You can say "I am vulnerable", turn off MD, but you can't say "I am not vulnerable". Jon. --=20 Computer Architect | Sent from my Fedora powered laptop --dcFfwbllxwJxCTGz96rn4w5sxvdKGuSfi--