Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-05 Thread Ard Biesheuvel
> On 5 May 2017, at 15:55, Will Deacon wrote: > >> On Thu, May 04, 2017 at 07:40:50AM +0100, Ard Biesheuvel wrote: >>> On 3 May 2017 at 22:47, Goel, Sameer wrote: >>> >>> On 5/3/2017 2:18 PM, Leif Lindholm wrote: > On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: >>

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-05 Thread Will Deacon
On Thu, May 04, 2017 at 07:40:50AM +0100, Ard Biesheuvel wrote: > On 3 May 2017 at 22:47, Goel, Sameer wrote: > > > > > > On 5/3/2017 2:18 PM, Leif Lindholm wrote: > >> On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: > >>> On 5/3/2017 5:26 AM, Will Deacon wrote: > [adding some /

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-04 Thread Goel, Sameer
On 5/4/2017 12:40 AM, Ard Biesheuvel wrote: > On 3 May 2017 at 22:47, Goel, Sameer wrote: >> >> >> On 5/3/2017 2:18 PM, Leif Lindholm wrote: >>> On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: On 5/3/2017 5:26 AM, Will Deacon wrote: > [adding some /dev/mem fans to cc] >

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Ard Biesheuvel
On 3 May 2017 at 22:47, Goel, Sameer wrote: > > > On 5/3/2017 2:18 PM, Leif Lindholm wrote: >> On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: >>> On 5/3/2017 5:26 AM, Will Deacon wrote: [adding some /dev/mem fans to cc] On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Goel, Sameer
On 5/3/2017 2:18 PM, Leif Lindholm wrote: > On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: >> On 5/3/2017 5:26 AM, Will Deacon wrote: >>> [adding some /dev/mem fans to cc] >>> >>> On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer Goel wrote: Port architecture specific xlate and

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Leif Lindholm
On Wed, May 03, 2017 at 11:07:45AM -0600, Goel, Sameer wrote: > On 5/3/2017 5:26 AM, Will Deacon wrote: > > [adding some /dev/mem fans to cc] > > > > On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer Goel wrote: > >> Port architecture specific xlate and unxlate functions for /dev/mem > >> read/writ

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Goel, Sameer
On 5/3/2017 5:26 AM, Will Deacon wrote: > [adding some /dev/mem fans to cc] > > On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer Goel wrote: >> Port architecture specific xlate and unxlate functions for /dev/mem >> read/write. This sets up the mapping for a valid physical address if a >> kernel di

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Will Deacon
[adding some /dev/mem fans to cc] On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer Goel wrote: > Port architecture specific xlate and unxlate functions for /dev/mem > read/write. This sets up the mapping for a valid physical address if a > kernel direct mapping is not already present. > > This is

[PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-02 Thread Sameer Goel
Port architecture specific xlate and unxlate functions for /dev/mem read/write. This sets up the mapping for a valid physical address if a kernel direct mapping is not already present. This is a generic issue as a user space app should not be allowed to crash the kernel. This issue was observed wh