On Fri, Dec 20, 2013 at 5:02 AM, Linus Torvalds wrote: > > Why not just get rid of the idiotic get_user_pages() crap then? > Something like the attached patch? > > Totally untested, but at least it makes *some* amount of sense. Ok, that can't work, since the ring_pages[] allocation happens later. So that part needs to be moved up, and it needs to initialize 'nr_pages'. So here's the same patch, but with stuff moved around a bit, and the "oops, couldn't create page" part fixed. Bit it's still totally and entirely untested. Linus