Re: [PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-04 Thread Michael Ellerman
Nanyong Sun writes: > On 2021/9/3 17:16, Christophe Leroy wrote: >> Le 03/09/2021 à 11:03, Nanyong Sun a écrit : >>> Some drivers who call ioremap_prot without setting base flags like >>> ioremap_prot(addr, len, 0) may work well before >>> commit 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL

Re: [PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-04 Thread Nanyong Sun
On 2021/9/3 17:16, Christophe Leroy wrote: Le 03/09/2021 à 11:03, Nanyong Sun a écrit : Some drivers who call ioremap_prot without setting base flags like ioremap_prot(addr, len, 0) may work well before commit 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL flags in ioremap()"), but now t

[PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-03 Thread Nanyong Sun
Some drivers who call ioremap_prot without setting base flags like ioremap_prot(addr, len, 0) may work well before commit 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL flags in ioremap()"), but now they will get a virtual address "successfully" from ioremap_prot and badly fault on memory acce

Re: [PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-03 Thread Christophe Leroy
Le 03/09/2021 à 11:03, Nanyong Sun a écrit : Some drivers who call ioremap_prot without setting base flags like ioremap_prot(addr, len, 0) may work well before commit 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL flags in ioremap()"), but now they will get a virtual address "successfully