Re: [PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-08-09 Thread Christophe Leroy
Le 02/05/2019 à 07:51, Russell Currey a écrit : + if (radix_enabled()) + st.start_address = PAGE_OFFSET; + else + st.start_address = KERN_VIRT_START; KERN_VIRT_START doesn't exist on PPC32. Christophe Thanks a lot for the review! Applied all your s

Re: [PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-05-01 Thread Russell Currey
> > > > + if (radix_enabled()) > > > > + st.start_address = PAGE_OFFSET; > > > > + else > > > + st.start_address = KERN_VIRT_START; > > > > > > KERN_VIRT_START doesn't exist on PPC32. > > > > > > Christophe > > > > > Thanks a lot for the review! Applied all you

Re: [PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-05-01 Thread Christophe Leroy
Le 01/05/2019 à 09:04, Russell Currey a écrit : On Wed, 2019-04-24 at 09:14 +0200, Christophe Leroy wrote: Le 24/04/2019 à 08:39, Russell Currey a écrit : Implement code to walk all pages and warn if any are found to be both writable and executable. Depends on STRICT_KERNEL_RWX enabled, an

Re: [PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-05-01 Thread Russell Currey
On Wed, 2019-04-24 at 09:14 +0200, Christophe Leroy wrote: > > Le 24/04/2019 à 08:39, Russell Currey a écrit : > > Implement code to walk all pages and warn if any are found to be > > both > > writable and executable. Depends on STRICT_KERNEL_RWX enabled, and > > is > > behind the DEBUG_WX config

Re: [PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot

2019-04-24 Thread Christophe Leroy
Le 24/04/2019 à 08:39, Russell Currey a écrit : Implement code to walk all pages and warn if any are found to be both writable and executable. Depends on STRICT_KERNEL_RWX enabled, and is behind the DEBUG_WX config option. This only runs on boot and has no runtime performance implications.