Re: [RFC v2 0/4] vmalloc_exec for modules and BPF programs
From: Christoph Hellwig
Date: Tue Oct 18 2022 - 10:50:36 EST
On Mon, Oct 17, 2022 at 04:23:52PM +0000, Song Liu wrote:
> > Well, nothing explains what the method is to avoid having memory
> > that is mapped writable and executable at the same time, which really
> > could use some explanation here (and in the main patch as well).
>
> Thanks for the feedback. I will add this.
>
> Does the code look good to you? I personally think patch 1, 2, 4 could
> ship with a little more work.
I only took a quick look and I'm not sure how the W^X actually works.
Yes, it alls into the text poke helpers, but how do these work on
less than page sized allocations?