Messages in this thread | | | From | Steven Cole <> | Subject | Re: 1352 NUL bytes at the end of a page? (was Re: Assertion `s && s->tree' failed: The saga continues.) | Date | Mon, 17 May 2004 05:58:03 -0600 |
| |
On Monday 17 May 2004 01:46 am, Andrew Morton wrote: > Andrew Morton <akpm@osdl.org> wrote: > > > > If an application does mmap(MAP_SHARED) of, say, a 2048 byte file and then > > extends it: > > > > p = mmap(..., fd, ...); > > ftructate(fd, 4096); > > p[3000] = 1; > > > > A racing block_write_full_page() could fail to notice the extended i_size > > and would decide to zap those 2048 bytes anyway. > > This should plug it.
I'll test this tonight when I get back to this home machine.
Thanks, and thanks to Bitmover for providing the resources to help chase this bug.
Steven - 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/
| |