# Re: \[PATCH v5 08/14\] mm/gup: do not allow zero page for pinned pages

- From: Jason Gunthorpe \<jgg@ziepe.ca\>
- Date: 2021-01-19 23:43:44 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/01/6240459
- Thread: https://ratatoskr.run/linux-mm/2021/01/6239458/t.md

```text
On Tue, Jan 19, 2021 at 03:14:04PM -0500, Pavel Tatashin wrote:

> I was thinking about a use case where userland would pin an address
> without FOLL_WRITE, because the PTE for that address is not going to
> be writable, but some device via DMA will write to it.

That would be a serious bug in the get_user_pages caller to write to a
page without using FOLL_WRITE

Jason

```
