Re: [PATCH 3/3] powerpc/mm/ Add proper pte access check helper

2018-08-19 Thread Christophe LEROY
Le 17/08/2018 à 17:12, Christophe LEROY a écrit : Le 04/12/2017 à 03:19, Aneesh Kumar K.V a écrit : pte_access_premitted get called in get_user_pages_fast path. If we have marked the pte PROT_NONE, we should not allow a read access on the address. With the current implementation we are not

Re: [PATCH 3/3] powerpc/mm/ Add proper pte access check helper

2018-08-17 Thread Christophe LEROY
Le 04/12/2017 à 03:19, Aneesh Kumar K.V a écrit : pte_access_premitted get called in get_user_pages_fast path. If we have marked the pte PROT_NONE, we should not allow a read access on the address. With the current implementation we are not checking the READ and only check for WRITE. This is n