Re: 2.6.23 regression: accessing invalid mmap'ed memory from gdb causes unkillable spinning

Linus Torvalds
2007-11-02T01:18:48Z

On Fri, 2 Nov 2007, Nick Piggin wrote:
>
> But we do want to allow forced COW faults for MAP_PRIVATE mappings. gdb
> uses this for inserting breakpoints (but fortunately, a COW page in a
> MAP_PRIVATE mapping is a much more natural thing for the VM).

Yes, I phrased that badly. I meant that I'd be happier if we got rid of
VM_MAYSHARE entirely, and just used VM_SHARED. I thought we already made
them always be the same (and any VM_MAYSHARE use is historical).

Linus