On Wed, 2010-03-31 at 18:33 -0700, Linus Torvalds wrote:
And what does that achieve? I've got plenty of other work I could be
doing where people are nice to me when asking me to fix bugs.
Yes, I was muddling the distinction between pinned in page cache and
pinned in the mm, and you've just now re-clarified it for me. So I'll
agree the current code is bogus.
That'd actually take us back to where it was when it hit mainline, which
would make a lot of people unhappy. I wouldn't be one of them as there
thankfully aren't any huge pages in my world. But I'm convinced
put_user() must go. In which case, get_user_pages() stays, and I've got
to switch things to direct physical page access into that array.
Even if I fix that, I believe San's original bug can still be triggered
though, as all the new callers to find_vma are run outside of the
target's mm_sem. Fixing that should be reasonably straight-forward.
--
http://selenic.com : development and support for Mercurial and Linux
--