On Mon, Aug 30, 2021 at 05:12:32PM +0800, Yafang Shao wrote: > > Which is not a valid way to call get_user_pages. What we need to do is > > to reject that case. > > Do you mean below change ? Sory of. I think once touching this we should do a few more cleanups including making many of the flags private to gup.c. I'll try to find some time to post a more complete series.