# Re: \[PATCH v1 06/11\] mm: support GUP-triggered unsharing via FAULT\_FLAG\_UNSHARE (!hugetlb)

- From: Jason Gunthorpe \<jgg@nvidia.com\>
- Date: 2021-12-21 23:59:24 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/12/1616134
- Thread: https://ratatoskr.run/linux-mm/2021/12/1612167/t/2.md

```text
On Tue, Dec 21, 2021 at 06:40:30PM +0100, David Hildenbrand wrote:

> What adds complexity to correctly maintain the "exclusive" state are at
> least:
> * KSM (might be harder, have to think about it)

I know little about it, but isn't KSM like fork where it is trying to
WP pages with the intention of copying them? Shouldn't KSM completely
reject WP'ing a page that is under any kind of writable GUP?

Jason
```
