Re: [PATCH v2] powerpc/mm: Fix missing KUAP disable in flush_coherent_icache()

2020-03-05 Thread Michael Ellerman
On Tue, 2020-03-03 at 23:57:08 UTC, Michael Ellerman wrote: > We received a report of strange kernel faults which turned out to be > due to a missing KUAP disable in flush_coherent_icache() called > from flush_icache_range(). > > The fault looks like: > > Kernel attempted to access user page

Re: [PATCH v2] powerpc/mm: Fix missing KUAP disable in flush_coherent_icache()

2020-03-05 Thread Russell Currey
On Wed, 2020-03-04 at 10:57 +1100, Michael Ellerman wrote: > We received a report of strange kernel faults which turned out to be > due to a missing KUAP disable in flush_coherent_icache() called > from flush_icache_range(). > > The fault looks like: > > Kernel attempted to access user page

Re: [PATCH v2] powerpc/mm: Fix missing KUAP disable in flush_coherent_icache()

2020-03-04 Thread Michael Ellerman
Andrew Donnellan writes: > On 4/3/20 10:57 am, Michael Ellerman wrote: >> diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c >> index ef7b1119b2e2..36a8c7b105ce 100644 >> --- a/arch/powerpc/mm/mem.c >> +++ b/arch/powerpc/mm/mem.c >> @@ -373,7 +373,9 @@ static inline bool

Re: [PATCH v2] powerpc/mm: Fix missing KUAP disable in flush_coherent_icache()

2020-03-04 Thread Andrew Donnellan
On 4/3/20 10:57 am, Michael Ellerman wrote: diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index ef7b1119b2e2..36a8c7b105ce 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -373,7 +373,9 @@ static inline bool flush_coherent_icache(unsigned long addr) */

[PATCH v2] powerpc/mm: Fix missing KUAP disable in flush_coherent_icache()

2020-03-03 Thread Michael Ellerman
We received a report of strange kernel faults which turned out to be due to a missing KUAP disable in flush_coherent_icache() called from flush_icache_range(). The fault looks like: Kernel attempted to access user page (7fffc30d9c00) - exploit attempt? (uid: 1009) BUG: Unable to handle