On Wed, Nov 09, 2022 at 07:55:12AM +0100, Christoph Hellwig wrote: > On Tue, Nov 08, 2022 at 08:38:32PM +0800, Aaron Lu wrote: > > set_memory_nx/x() on a vmalloced range will not affect direct map but > > set_memory_ro/rw() will. > > Which seems a little odd. Is there any good reason to not also propagate > the NX bit? Less executable ranges more better. That is, the direct map is *always* NX.