From: ebiederm@xmission.com (Eric W. Biederman) Subject: [PATCH 0/4] Safely removing mmaped files Date: Fri, 04 Sep 2009 12:24:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: , , , Alexey Dobriyan , Greg Kroah-Hartman , Tejun Heo To: Andrew Morton Return-path: Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org Currently when mmaped files are removed I have not found a single instance in the kernel where we handle it correctly. Frequently after a hot remove we will either leak a file (with weird ensuing consequences) or we will goof and not call vm_ops->close() which can cause leaks. It turns out this problem isn't too bad to actually fix and this patchset is my generic solution. Tested against 2.6.31-rc8 with a process that mmaped /sys/*/*/resource0 and /proc/bus/pci/*/*. I'm not certain what the best way to carry these patches is to get them merged. Andrew can you carry this patchset? Eric -- 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: email@kvack.org