Re: how to vm_munmap memory range for other processes?

From: richard -rw- weinberger
Date: Wed Aug 08 2012 - 03:49:39 EST


On Wed, Aug 8, 2012 at 9:46 AM, Richard Zhao <richard.zhao@xxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/