Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Wednesday, March 31, 2010 - 8:20 pm

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


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 10:54 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 6:33 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 7:10 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Matt Mackall, (Wed Mar 31, 8:20 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Wed Mar 31, 9:27 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 10:54 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 10:55 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Wed Mar 31, 11:05 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 11:09 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Wed Mar 31, 11:34 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KOSAKI Motohiro, (Thu Apr 1, 12:21 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, Linus Torvalds, (Thu Apr 1, 8:10 am)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Thu Apr 1, 5:11 pm)
Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk, KAMEZAWA Hiroyuki, (Mon Apr 5, 11:48 pm)