From: Vlastimil Babka Subject: [PATCH v2 0/2] prevent mincore() page cache leaks Date: Tue, 12 Mar 2019 15:17:06 +0100 Message-ID: <20190312141708.6652-1-vbabka@suse.cz> References: <20190130124420.1834-1-vbabka@suse.cz> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190130124420.1834-1-vbabka@suse.cz> Sender: linux-kernel-owner@vger.kernel.org To: Andrew Morton Cc: Linus Torvalds , Jann Horn , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Vlastimil Babka , Andy Lutomirski , Cyril Hrubis , Daniel Gruss , Dave Chinner , Dominique Martinet , Jiri Kosina , Jiri Kosina , Josh Snyder , Kevin Easton , "Kirill A. Shutemov" , Matthew Wilcox , Michal Hocko , Tejun Heo List-Id: linux-api@vger.kernel.org Here's a new version of the mincore() patches, with feedback from Andrew Morton applied. The IOCB_NOWAIT patch was dropped since David Chinner pointed out it's incomplete. We definitely want the first patch, while for the second Linus said: I think that's fine, and probably the right thing to do, but I also suspect that nobody actually cares ;( Whether or not somebody cares, we should hear of no breakage. If somebody does care after all, without second patch we might hear of breakage, so I would suggest applying it. It's not that complicated after all (famous last words?) Jiri Kosina (1): mm/mincore: make mincore() more conservative Vlastimil Babka (1): mm/mincore: provide mapped status when cached status is not allowed mm/mincore.c | 80 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 68 insertions(+), 12 deletions(-) -- 2.20.1