2012-08-08 07:46:44

by Richard Zhao

[permalink] [raw]
Subject: how to vm_munmap memory range for other processes?

Hi Al,

I saw two commits from you in git tree:
17d1587 unexport do_munmap()
bfce281 kill mm argument of vm_munmap()

They remove the mm arguments, so it look like impossible to unmap
memory of other processes except current.

I have a kernel module that needs to unmap memory for certain pid. Do
you have any idea how to do it?

Thanks
Richard


2012-08-08 07:49:46

by Richard Weinberger

[permalink] [raw]
Subject: Re: how to vm_munmap memory range for other processes?

On Wed, Aug 8, 2012 at 9:46 AM, Richard Zhao <[email protected]> wrote:
> Hi Al,
>
> I saw two commits from you in git tree:
> 17d1587 unexport do_munmap()
> bfce281 kill mm argument of vm_munmap()
>
> They remove the mm arguments, so it look like impossible to unmap
> memory of other processes except current.
>
> I have a kernel module that needs to unmap memory for certain pid. Do
> you have any idea how to do it?

AFAIK Al removed this because it's racy in many ways...

---
Thanks,
//richard