Re: [PATCH] Fix region lost in /proc/self/smaps

From: Dave Hansen
Date: Fri Sep 09 2016 - 12:47:57 EST


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.