From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: pageexec@freemail.hu
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: imer_setup() is not compatible with PaX's RAP
Date: Tue, 14 Nov 2017 10:29:14 +0100 [thread overview]
Message-ID: <CAHmME9prMg_RuEUaO1XNy4Aj6MH3Cu=16kp=F_B-kKbSwO+qdQ@mail.gmail.com> (raw)
In-Reply-To: <5A0A3587.25804.3AD10FF8@pageexec.freemail.hu>
On Tue, Nov 14, 2017 at 1:15 AM, PaX Team <pageexec@freemail.hu> wrote:
> oh boy, can't disagree with ugly ;)
The goal is the highest possible density of filth.
>
> --- WireGuard-0.0.20171111.orig/src/compat/compat.h 2017-11-11 04:35:06.000000000 +0100
> +++ WireGuard-0.0.20171111/src/compat/compat.h 2017-11-13 23:21:17.967716768 +0100
I fixed things up here:
https://git.zx2c4.com/WireGuard/commit/?id=df318d1f0526663a2d92439376379e32ebcfef1a
> the KERNEXEC block isn't needed as it was removing KERNEXEC's own define
Wait, but earlier you wrote:
> 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:
#ifdef CONFIG_PAX_KERNEXEC
#include <linux/cache.h>
#undef __ro_after_init
#define __ro_after_init
#endif
Or is there something else?
Jason
next prev parent reply other threads:[~2017-11-14 9:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-11 8:09 Tom Li
2017-11-11 8:16 ` Tom Li
2017-11-12 2:50 ` Jason A. Donenfeld
2017-11-12 3:13 ` Jason A. Donenfeld
2017-11-13 1:39 ` PaX Team
2017-11-13 19:34 ` Jason A. Donenfeld
2017-11-14 0:15 ` PaX Team
2017-11-14 9:29 ` Jason A. Donenfeld [this message]
2017-11-14 10:29 ` Jason A. Donenfeld
2017-11-14 11:12 ` PaX Team
2017-11-28 12:20 ` Jason A. Donenfeld
2017-11-28 12:32 ` PaX Team
2017-11-28 12:36 ` Jason A. Donenfeld
2017-11-28 12:50 ` PaX Team
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHmME9prMg_RuEUaO1XNy4Aj6MH3Cu=16kp=F_B-kKbSwO+qdQ@mail.gmail.com' \
--to=jason@zx2c4.com \
--cc=pageexec@freemail.hu \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).