On Sat, Jul 27, 2019 at 01:12:00AM +0530, Bharath Vedartham wrote:> + ret = get_user_pages_fast(vaddr, 1, write, &page);I think you want to pass "write ? FOLL_WRITE : 0" here, asget_user_pages_fast takes a gup_flags argument, not a booleanwrite flag.