On Thu, Dec 14, 2017 at 10:09:24PM -0800, Linus Torvalds wrote: > On Dec 14, 2017 21:04, "Dave Hansen" <dave.han...@intel.com> wrote: > Can we please just undo that broken crap instead of trying to "fix" it? > > It was wrong. We absolutely do not want to complicate the gup path. > > Let's fet rid of those broken p??_access_permited() things.
So we actually need the pte_access_permitted() stuff if we want to ensure we're not stepping on !PAGE_USER things.