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 1fDCSd-0001Ur-2q for speck@linutronix.de; Mon, 30 Apr 2018 19:19:35 +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 DA1D9120B43 for ; Mon, 30 Apr 2018 17:19:28 +0000 (UTC) Received: from washington.bos.jonmasters.org (ovpn-122-245.rdu2.redhat.com [10.10.122.245]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B4DF8111AF09 for ; Mon, 30 Apr 2018 17:19:28 +0000 (UTC) From: Jon Masters Subject: [MODERATED] ENV variables for SSB Message-ID: <45868cf4-3d08-daf3-939f-4f3f4b9a5574@redhat.com> Date: Mon, 30 Apr 2018 13:19:28 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="4LDJNVjycZ6Bkq2KXPV5H38jP0vIlgBon"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --4LDJNVjycZ6Bkq2KXPV5H38jP0vIlgBon Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi all, [ this doesn't require kernel changes but impacts distros/userspace ] When applications use the prctl, some customers may want to disable use of the prctl even at the application level. One thing we're looking at is using an environment variable (set by sysadmin) to tell an application not to use the mitigation. This would enable e.g. a Java deployment to determine their code is trusted and disable mitigation. Ideally, this would be a standard environment variable, e.g.: SPEC_CTRL_ENABLE_STORE_BYPASS (or whatever) When seen by e.g. OpenJDK, it would /not/ make the mitigation prctl. Any chance we can agree on something to recommend apps use? Jon. P.S. I'm beginning to look at the SELinux angle as well. It might be that we can make setting that prctl conditional on policy, which would also give a sysadmin an override option (e.g. if execmem). --=20 Computer Architect | Sent from my Fedora powered laptop --4LDJNVjycZ6Bkq2KXPV5H38jP0vIlgBon--