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
Also in
linux-doc, linux-kselftest, lkml
Reply to
Pavel Tatashin, 2021-01-19
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
Thread (25 messages) 25 messages, 2 authors, last reply 2021-01-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help