[PATCH] powerpc: Hande page faults for bad paste and bad AMO

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Jul 12 16:46:04 AEST 2017


On Wed, 2017-07-12 at 11:37 +0530, Aneesh Kumar K.V wrote:
> > So we need to test those errors early in do_page_fault(),
> > I chose to generate a SIGBUS which is more correct than a SIGSEGV.
> 
> This is true even for hash right ? If so do we want to update
> do_hash_page:
> #ifdef CONFIG_PPC_STD_MMU_64
>         andis.  r0,r4,0xa450            /* weird error? */
>         bne-    handle_page_fault       /* if not, try to insert a HPTE */
> 
> that 0xa450 such that we add these errors and call hand_page_fault in
> case of these DSISR values ?

Correct, I forgot about that one. I'll respin.

Cheers,
Ben.


More information about the Linuxppc-dev mailing list