From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [PATCH] Fix region lost in /proc/self/smaps Date: Fri, 9 Sep 2016 09:47:45 -0700 Message-ID: <57D2E7B1.40201@intel.com> References: <1473231111-38058-1-git-send-email-guangrong.xiao@linux.intel.com> <57D04192.5070704@intel.com> <8b800d72-9b28-237c-47a6-604d98a40315@linux.intel.com> <57D1703E.4070504@intel.com> <01bcbbe2-5560-ea42-4d75-6ab50c3060d4@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: gleb@kernel.org, mtosatti@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, stefanha@redhat.com, yuhuang@redhat.com, linux-mm@kvack.org, ross.zwisler@linux.intel.com To: Xiao Guangrong , pbonzini@redhat.com, akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com Return-path: In-Reply-To: <01bcbbe2-5560-ea42-4d75-6ab50c3060d4@linux.intel.com> Sender: owner-linux-mm@kvack.org List-Id: kvm.vger.kernel.org On 09/09/2016 01:19 AM, Xiao Guangrong wrote: > > Yes. I was talking the case as follows: > 1: read() #1: prints vma-A(0x1000 -> 0x2000) > 2: unmap vma-A(0x1000 -> 0x2000) > 3: create vma-B(0x80 -> 0x3000) on other file with different permission > (w, r, x) > 4: read #2: prints vma-B(0x2000 -> 0x3000) > > Then userspace will get just a portion of vma-B. well, maybe it is not > too bad. :) Yeah, I think this is the way to go. Feel free to add my ack. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbcIIQrs (ORCPT ); Fri, 9 Sep 2016 12:47:48 -0400 Received: from mga11.intel.com ([192.55.52.93]:47734 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750938AbcIIQrq (ORCPT ); Fri, 9 Sep 2016 12:47:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,305,1470726000"; d="scan'208";a="1047946258" Subject: Re: [PATCH] Fix region lost in /proc/self/smaps To: Xiao Guangrong , pbonzini@redhat.com, akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com References: <1473231111-38058-1-git-send-email-guangrong.xiao@linux.intel.com> <57D04192.5070704@intel.com> <8b800d72-9b28-237c-47a6-604d98a40315@linux.intel.com> <57D1703E.4070504@intel.com> <01bcbbe2-5560-ea42-4d75-6ab50c3060d4@linux.intel.com> Cc: gleb@kernel.org, mtosatti@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, stefanha@redhat.com, yuhuang@redhat.com, linux-mm@kvack.org, ross.zwisler@linux.intel.com From: Dave Hansen Message-ID: <57D2E7B1.40201@intel.com> Date: Fri, 9 Sep 2016 09:47:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <01bcbbe2-5560-ea42-4d75-6ab50c3060d4@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/09/2016 01:19 AM, Xiao Guangrong wrote: > > Yes. I was talking the case as follows: > 1: read() #1: prints vma-A(0x1000 -> 0x2000) > 2: unmap vma-A(0x1000 -> 0x2000) > 3: create vma-B(0x80 -> 0x3000) on other file with different permission > (w, r, x) > 4: read #2: prints vma-B(0x2000 -> 0x3000) > > Then userspace will get just a portion of vma-B. well, maybe it is not > too bad. :) Yeah, I think this is the way to go. Feel free to add my ack.