Messages in this thread | | | Date | Tue, 10 Jul 2001 16:15:33 +0200 | From | Andrea Arcangeli <> | Subject | Re: msync() bug |
| |
On Wed, Jul 11, 2001 at 12:03:11AM +1000, Andrew Morton wrote: > Linus included the test for non-null page->mapping > as well. I wonder why.
I think it is because if you try hard you can map a dma page via /dev/mem and then the driver can release the dma page (at rmmod for example) before you munmap /dev/mem, and then the page goes in the freelist and it is allocated as pagecache.
Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |