Re: [PATCH] mm: Check we have the right vma in __access_remote_vm()

2011-04-11 Thread Michael Ellerman
On Mon, 2011-04-11 at 16:50 -0700, Andrew Morton wrote: > On Fri, 8 Apr 2011 17:24:01 +1000 (EST) > Michael Ellerman wrote: > > > In __access_remote_vm() we need to check that we have found the right > > vma, not the following vma, before we try to access it. Otherwise we > > might call the vma'

Re: [PATCH] mm: Check we have the right vma in __access_remote_vm()

2011-04-11 Thread Andrew Morton
On Fri, 8 Apr 2011 17:24:01 +1000 (EST) Michael Ellerman wrote: > In __access_remote_vm() we need to check that we have found the right > vma, not the following vma, before we try to access it. Otherwise we > might call the vma's access routine with an address which does not > fall inside the vm

Re: [PATCH] mm: Check we have the right vma in __access_remote_vm()

2011-04-08 Thread KOSAKI Motohiro
> In __access_remote_vm() we need to check that we have found the right > vma, not the following vma, before we try to access it. Otherwise we > might call the vma's access routine with an address which does not > fall inside the vma. > > Signed-off-by: Michael Ellerman > --- > mm/memory.c |

[PATCH] mm: Check we have the right vma in __access_remote_vm()

2011-04-08 Thread Michael Ellerman
In __access_remote_vm() we need to check that we have found the right vma, not the following vma, before we try to access it. Otherwise we might call the vma's access routine with an address which does not fall inside the vma. Signed-off-by: Michael Ellerman --- mm/memory.c |2 +- 1 files ch