Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753613AbbGUIfb (ORCPT ); Tue, 21 Jul 2015 04:35:31 -0400 Received: from TYO201.gate.nec.co.jp ([210.143.35.51]:42788 "EHLO tyo201.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbbGUIf1 convert rfc822-to-8bit (ORCPT ); Tue, 21 Jul 2015 04:35:27 -0400 From: Naoya Horiguchi To: Konstantin Khlebnikov CC: "linux-mm@kvack.org" , Andrew Morton , "Kirill A. Shutemov" , Mark Williamson , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" Subject: Re: [PATCH v4 1/5] pagemap: check permissions and capabilities at open time Thread-Topic: [PATCH v4 1/5] pagemap: check permissions and capabilities at open time Thread-Index: AQHQvksN7Hx3qbuHdEasQ9ThAZl9z53lBNIA Date: Tue, 21 Jul 2015 08:06:27 +0000 Message-ID: <20150721080626.GB4490@hori1.linux.bs1.fc.nec.co.jp> References: <20150714152516.29844.69929.stgit@buzz> <20150714153735.29844.38428.stgit@buzz> In-Reply-To: <20150714153735.29844.38428.stgit@buzz> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.29] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 14 On Tue, Jul 14, 2015 at 06:37:35PM +0300, Konstantin Khlebnikov wrote: > This patch moves permission checks from pagemap_read() into pagemap_open(). > > Pointer to mm is saved in file->private_data. This reference pins only > mm_struct itself. /proc/*/mem, maps, smaps already work in the same way. > > Signed-off-by: Konstantin Khlebnikov > Link: http://lkml.kernel.org/r/CA+55aFyKpWrt_Ajzh1rzp_GcwZ4=6Y=kOv8hBz172CFJp6L8Tg@mail.gmail.com Reviewed-by: Naoya Horiguchi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/