[PATCH 2/2] powerpc/mm: Warn if W+X pages found on boot
Russell Currey
ruscur at russell.cc
Thu May 2 15:51:15 AEST 2019
> > > > + 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 suggestions. What
> > should I use on PPC32 instead?
>
> Indeed it looks like KERN_VIRT_START is defined as 0 for PPC32 at
> the
> top of ptdump.c, which look strange to me.
>
> I guess PAGE_OFFSET should be the good value for KERN_VIRT_START on
> PPC32.
>
> Christophe
git blame says you put it there :) I'll set it to PAGE_OFFSET instead
of zero. Cheers
- Russell
More information about the Linuxppc-dev
mailing list