Subject: Re: powerpc/mm: Allow user space to map rtas_rmo_buf

From: Michael Ellerman <[email-masked]>
Date: Fri, 29 Jan 2016 12:58:40 +1100 (AEDT)

On Thu, 2016-21-01 at 16:15:31 UTC, Vasant Hegde wrote:
> With commit 90a545e9 (restrict /dev/mem to idle io memory ranges) mapping
> rtas_rmo_buf from user space is failing. Hence we are not able to make
> RTAS syscall.
> 
> This patch calls page_is_rtas_user_buf before calling iomem_is_exclusive
> in  devmem_is_allowed(). This will allow user space to map rtas_rmo_buf
> and we are able to make RTAS syscall.
> 
> Reported-by: Bharata B Rao <[email-masked]>
> CC: Dan Williams <[email-masked]>
> CC: Nathan Fontenot <[email-masked]>
> CC: Michael Ellerman <[email-masked]>
> Signed-off-by: Vasant Hegde <[email-masked]>
> Acked-by: Dan Williams <[email-masked]>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/e256caa7d0515e301f8c8c6e7d

cheers