From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C655C43461 for ; Tue, 1 Sep 2020 16:04:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B660206A5 for ; Tue, 1 Sep 2020 16:04:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731550AbgIAPmX (ORCPT ); Tue, 1 Sep 2020 11:42:23 -0400 Received: from foss.arm.com ([217.140.110.172]:44150 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730108AbgIAPmW (ORCPT ); Tue, 1 Sep 2020 11:42:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F1521045; Tue, 1 Sep 2020 08:42:21 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.10.252]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9E9E23F71F; Tue, 1 Sep 2020 08:42:19 -0700 (PDT) Date: Tue, 1 Sep 2020 16:42:17 +0100 From: Mark Rutland To: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= Cc: "Madhavan T. Venkataraman" , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, oleg@redhat.com, x86@kernel.org Subject: Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor Message-ID: <20200901154217.GD95447@C02TD0UTHF1T.local> References: <20200728131050.24443-1-madvenka@linux.microsoft.com> <20200731180955.GC67415@C02TD0UTHF1T.local> <6236adf7-4bed-534e-0956-fddab4fd96b6@linux.microsoft.com> <20200804143018.GB7440@C02TD0UTHF1T.local> <20200812100650.GB28154@C02TD0UTHF1T.local> <41c4de64-68d0-6fcb-e5c3-63ebd459262e@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41c4de64-68d0-6fcb-e5c3-63ebd459262e@digikod.net> Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On Wed, Aug 19, 2020 at 08:53:42PM +0200, Mickaël Salaün wrote: > On 12/08/2020 12:06, Mark Rutland wrote: > > Contemporary W^X means that a given virtual alias cannot be writeable > > and executeable simultaneously, permitting (a) and (b). If you read the > > references on the Wikipedia page for W^X you'll see the OpenBSD 3.3 > > release notes and related presentation make this clear, and further they > > expect (b) to occur with JITS flipping W/X with mprotect(). > > W^X (with "permanent" mprotect restrictions [1]) goes back to 2000 with > PaX [2] (which predates partial OpenBSD implementation from 2003). > > [1] https://pax.grsecurity.net/docs/mprotect.txt > [2] https://undeadly.org/cgi?action=article;sid=20030417082752 Thanks for the pointers! Mark.