From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006AbcEBPRm (ORCPT ); Mon, 2 May 2016 11:17:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44456 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753449AbcEBPRe (ORCPT ); Mon, 2 May 2016 11:17:34 -0400 Date: Mon, 2 May 2016 16:15:38 +0200 From: Oleg Nesterov To: "Kirill A. Shutemov" Cc: Jerome Glisse , Hugh Dickins , Linus Torvalds , Andrew Morton , Andrea Arcangeli , Alex Williamson , kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, "linux-mm@kvack.org" Subject: Re: GUP guarantees wrt to userspace mappings redesign Message-ID: <20160502141538.GA5961@redhat.com> References: <20160428181726.GA2847@node.shutemov.name> <20160428125808.29ad59e5@t450s.home> <20160428232127.GL11700@redhat.com> <20160429005106.GB2847@node.shutemov.name> <20160428204542.5f2053f7@ul30vt.home> <20160429070611.GA4990@node.shutemov.name> <20160429163444.GM11700@redhat.com> <20160502104119.GA23305@node.shutemov.name> <20160502111513.GA4079@gmail.com> <20160502121402.GB23305@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160502121402.GB23305@node.shutemov.name> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am sure I missed the problem, but... On 05/02, Kirill A. Shutemov wrote: > > Quick look around: > > - I don't see any check page_count() around __replace_page() in uprobes, > so it can easily replace pinned page. Why it should? even if it races with get_user_pages_fast()... this doesn't differ from the case when an application writes to MAP_PRIVATE non-anonymous region, no? Oleg.