From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: pageexec@freemail.hu Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 69c9887e for ; Tue, 14 Nov 2017 11:08:30 +0000 (UTC) Received: from r00tworld.com (r00tworld.com [212.85.137.150]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 43c2d1f7 for ; Tue, 14 Nov 2017 11:08:29 +0000 (UTC) From: "PaX Team" To: "Jason A. Donenfeld" Date: Tue, 14 Nov 2017 12:12:24 +0100 MIME-Version: 1.0 Subject: Re: imer_setup() is not compatible with PaX's RAP Message-ID: <5A0ACF98.2734.3D2AE425@pageexec.freemail.hu> In-reply-to: References: <20171111080920.GA5705@localhost.localdomain>, <5A0A3587.25804.3AD10FF8@pageexec.freemail.hu>, Content-type: text/plain; charset=US-ASCII Cc: WireGuard mailing list Reply-To: pageexec@freemail.hu List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 14 Nov 2017 at 10:29, Jason A. Donenfeld wrote: > I fixed things up here: > https://git.zx2c4.com/WireGuard/commit/?id=df318d1f0526663a2d92439376379e32ebcfef1a works fine, thanks. > > speaking of PaX support, you recently added some __ro_after_init wrapper > > to wireguard which breaks under KERNEXEC when it's used on ops structs > > (my __read_only has different semantics) so i have to revert it here but > > it'd be nicer if you didn't define it when KERNEXEC is active. > > So what exactly should I be fixing? I think in that last patch I > forgot to redefine it to be empty. Would this do what you have in > mind: i said 'don't define it', not 'redefine it' ;). the difference is that the latter removes the definition provided under KERNEXEC.