Re: [patch] mremap.2: Add description of old_size == 0 functionality

From: Florian Weimer
Date: Mon Sep 25 2017 - 10:54:50 EST


On 09/25/2017 04:52 PM, Michal Hocko wrote:
On Mon 25-09-17 15:16:09, Florian Weimer wrote:
On 09/25/2017 02:52 PM, Michal Hocko wrote:
So, how are you going to deal with the CoW and the implementation which
basically means that the newm mmap content is not the same as the
original one?

I don't understand why CoW would kick in.

So you can guarantee nobody is going to write to that memory?

It's mapped readable and executable, but not writable. So the only thing that could interfere would be a debugger.

Thanks,
Florian