Re: Race between vmtruncate and mapped areas?
From: Rik van Riel <hidden>
Date: 2003-05-14 18:59:22
Also in:
lkml
From: Rik van Riel <hidden>
Date: 2003-05-14 18:59:22
Also in:
lkml
On Wed, 14 May 2003, Dave McCracken wrote:
--On Wednesday, May 14, 2003 15:04:55 -0400 Rik van Riel [off-list ref] wrote:quoted
quoted
Not to mention they could end up being outside of any VMA, meaning there's no sane way to deal with them.I hate to follow up to my own email, but the fact that they're not in any VMA could mean we leak these pages at exit() time.Well, they are still inside the vma. Truncate doesn't shrink the vma. It just generates SIGBUS when the app tries to fault the pages in.
Right, I forgot about that. Forget the memory leak and security bug theory, then ;))) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>