On Tue, Jun 09, 2015 at 11:00:15PM +0300, Konstantin Khlebnikov wrote: > From: Konstantin Khlebnikov <khlebni...@yandex-team.ru> > > 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 <khlebni...@yandex-team.ru> > Link: > http://lkml.kernel.org/r/CA+55aFyKpWrt_Ajzh1rzp_GcwZ4=6Y=kov8hbz172cfjp6l...@mail.gmail.com Reviewed-by: Naoya Horiguchi <n-horigu...@ah.jp.nec.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/