Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2111780imc; Tue, 12 Mar 2019 07:18:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrYuk1P+TUomkqcTOWhG1HfufNUzU4uTC+bSIpmD2aY9mhz93iQIFKqvXj9MSqBJTMwIsF X-Received: by 2002:a63:1a12:: with SMTP id a18mr15047578pga.200.1552400311653; Tue, 12 Mar 2019 07:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552400311; cv=none; d=google.com; s=arc-20160816; b=DVsi3SlQArOgH/dli5SiFP932Zrg9zU0ebuxI9qjnBDmzKXCg5/U69I26j5CjTpGMa vH/KWoCQgmK5iZxVbYVCclYXzXrv4238vypnByzYvKqzzXnzAnqh2iYCwsntNgiwx7KI 8EaHogcsdoaOejwXjb0CacQYDN3Nfsos+EKLM/9GUZB2j0Z25FbuSVhFPtmUWWFhcUB0 EFk7GbanzeyprKgYgIizxdp0Ru0GzJPLNgXvVPilSSTgVySV79gJuOSp8myviPcE9MO1 cSnpHdr5wCFaZUrJpkRY/QSL2UC0QdZ+uGWSXV+V6UfgJVY2nZVgQtl4WIUA19zUbw0c 4mXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eJKFa3iQ9wzRhsBkVsOwREmdd6mCiC4+ZQKFPMYsXNA=; b=yZTYjWLb9uR6EnxeyaUvu3idq7faEthpCJWHyoE4mm5BYUh5qMvbTXAeHAcMJMzuWG xRFQvbtcmniRhjmdKr1JU6YIwJ5dJ/ABw4VjYGS0jDyqqfxg6b+wGP8iUi3eTmEtIe2Y AIPCxCYUMFDc6kNRRPWBqw5MpO5f76OofNOFLQdxE6AuIVfCbMa6g8t2B+rBxJcBhD84 Ww+sWmR5JZ4eCaRIsZCodLlo3FpMZ3AyrNblkLgcBLm/1YLLpI0iupIoqAXqr3XBum/a qJI5nwpcbIS+k/K3vZVL7Yxq8dX1AakCmBsU9A87wrtZnwxa/MdC8LYDJi80wYgiuGWq I+Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h34si8412779pld.358.2019.03.12.07.18.14; Tue, 12 Mar 2019 07:18:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbfCLORy (ORCPT + 99 others); Tue, 12 Mar 2019 10:17:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:57704 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726671AbfCLORy (ORCPT ); Tue, 12 Mar 2019 10:17:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A6765B642; Tue, 12 Mar 2019 14:17:52 +0000 (UTC) From: Vlastimil Babka 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 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> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130124420.1834-1-vbabka@suse.cz> References: <20190130124420.1834-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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