Re: [Fwd: TASK_SIZE is variable.]

From: David Woodhouse
Date: Tue Jan 25 2005 - 18:08:35 EST


On Tue, 2005-01-25 at 22:46 +0000, Christoph Hellwig wrote:
> > Bad things can happen if a 32-bit process is the last user of a 64-bit
> > mm. TASK_SIZE isn't a constant, and we can end up clearing page tables
> > only up to the 32-bit TASK_SIZE instead of all the way. We should
> > probably double-check every instance of TASK_SIZE or USER_PTRS_PER_PGD
> > for this kind of problem.
>
> Or better get rid of TASK_SIZE completely. Having something that looks
> like a constant change depending on the user process is a bad idea.

Yeah, that's possibly a sane plan.

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/