|
Message-ID: <099c2aae-2915-5879-95da-13971d021e01@redhat.com> Date: Tue, 6 Jun 2017 09:24:21 -0700 From: Laura Abbott <labbott@...hat.com> To: Igor Stoppa <igor.stoppa@...wei.com>, Christoph Hellwig <hch@...radead.org>, Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp> Cc: keescook@...omium.org, mhocko@...nel.org, jmorris@...ei.org, paul@...l-moore.com, sds@...ho.nsa.gov, casey@...aufler-ca.com, linux-mm@...ck.org, linux-kernel@...r.kernel.org, kernel-hardening@...ts.openwall.com Subject: Re: [PATCH 2/5] Protectable Memory Allocator On 06/06/2017 04:34 AM, Igor Stoppa wrote: > On 06/06/17 09:25, Christoph Hellwig wrote: >> On Tue, Jun 06, 2017 at 01:44:32PM +0900, Tetsuo Handa wrote: > > [..] > >>> As far as I know, not all CONFIG_MMU=y architectures provide >>> set_memory_ro()/set_memory_rw(). You need to provide fallback for >>> architectures which do not provide set_memory_ro()/set_memory_rw() >>> or kernels built with CONFIG_MMU=n. >> >> I think we'll just need to generalize CONFIG_STRICT_MODULE_RWX and/or >> ARCH_HAS_STRICT_MODULE_RWX so there is a symbol to key this off. > > Would STRICT_KERNEL_RWX work? It's already present. > If both kernel text and rodata can be protected, so can pmalloc data. > > --- > igor > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@...ck.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: <a href=mailto:"dont@...ck.org"> email@...ck.org </a> > There's already ARCH_HAS_SET_MEMORY for this purpose. Thanks, Laura
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.