On Mon, 23 Oct 2000, Alexander Viro wrote: > > On Mon, 23 Oct 2000, Linus Torvalds wrote: > > > > Nope, that just makes the race window smaller. We should check for i_size > > after we've gotten the page table lock and just before actually entering > > the page into the page tables. Otherwise we'll still race on SMP (a _very_ > > hard window to get into, admittedly). > > Umm... I would probably remove Uptodate upon truncate() and check _that_ > in the place you've mentioned. Works for me.. > > ClearPageDirty(page); > ClearPageUptodate(page); > > How about that? Makes sense. Note that I'd actually like to hear from Petr first _without_ any added code in the nopage() handler - the issue of having a page mapped after nopage() that we shouldn't have mapped is a separate one, and I'd first like to hear if the problem really goes away even if the mapping bug is still there.. And _then_ we fix the fact that we should not allow anybody to have a page mapped past i_size. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap... Alexander Viro
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:fil... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c... Alexander Viro
- Re: 2.4.0-test10-pre3:Oops in mm/file... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/... Alexander Viro
- Re: 2.4.0-test10-pre3:Oops in mm/... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_write_pa Petr Vandrovec
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap_wri... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:filemap... Linus Torvalds
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c:fil... Alexander Viro
- Re: 2.4.0-test10-pre3:Oops in mm/filemap.c... Alexander Viro